Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

choosing between dimensions in a variable

Please login with a confirmed email address before reporting spam

hi,

i have a 2d model (r, z).
i want to create a function depands on the 'r' dimension in one point, and the 'z' dimension in other point.

for example: if ill take point 5, and point 7. i want to plot r[5]+z[7].
if ill make a variable (f=r+z) with an entity selection of the two points (5 and 7) ill get two results: r[5]+z[5] and r[7]+z[7]

how can i combine between the two points values ?
i checked at the docs but i couldnt find any mention for this.

thank you all,
ofir

2 Replies Last Post Nov 24, 2011, 12:24 p.m. EST
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Nov 24, 2011, 10:51 a.m. EST
Hi

if the points are predefined , i.e. 5 & 7 are fixed you can make a intop1_5() and select Point 5 and an intop2_7() and select Point 7 then write
f=intop1_5(r)+intop1_7(z)

but it works only for the point "5" and "7" defined in the two respective intop() operators POINT selection list

--
Good luck
Ivar
Hi if the points are predefined , i.e. 5 & 7 are fixed you can make a intop1_5() and select Point 5 and an intop2_7() and select Point 7 then write f=intop1_5(r)+intop1_7(z) but it works only for the point "5" and "7" defined in the two respective intop() operators POINT selection list -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Nov 24, 2011, 12:24 p.m. EST
thank's Ivar for your quick answer.

my point are not fixed, is there anything else i can do ?

thanks,
ofir
thank's Ivar for your quick answer. my point are not fixed, is there anything else i can do ? thanks, ofir

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.