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.

Cylindrical coordinates

Please login with a confirmed email address before reporting spam

Hi,
How do you input the components of gradient operator in cylindrical coordiantes?
I understasnd in Cartesian coordinates the variables ux, uy, and uz are the components of the gradient u. How about in cylindrical coordinates?

Thanks,
Lu

2 Replies Last Post Jan 26, 2011, 2:51 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 Jan 21, 2011, 1:36 a.m. EST
Hi
If you are in 3D you must write them out yourself, but you can use a cylindrical coordinate system (see also the KB) to help.
in 2D-axi you are already in cylindrical coordinates in some way

--
Good luck
Ivar
Hi If you are in 3D you must write them out yourself, but you can use a cylindrical coordinate system (see also the KB) to help. in 2D-axi you are already in cylindrical coordinates in some way -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jan 26, 2011, 2:51 p.m. EST
I am using the PDE module with 2D axial-symmetric. Specifically, how would you write the gradient or divergence of a vector in COMSOL?
For instance, say I want to take the gradient of vector f, it would be:
diff(f,r)+1/r*diff(f,theta) + diff(f,z)

and if I want to take the difference of vector g, it would be:
diff(g,r) + g/r + 1/r*diff(g,theta) + diff(g,z)

(abiding vector calculus of course)

Is that what you were pointing at?

Thank you for your help
I am using the PDE module with 2D axial-symmetric. Specifically, how would you write the gradient or divergence of a vector in COMSOL? For instance, say I want to take the gradient of vector f, it would be: diff(f,r)+1/r*diff(f,theta) + diff(f,z) and if I want to take the difference of vector g, it would be: diff(g,r) + g/r + 1/r*diff(g,theta) + diff(g,z) (abiding vector calculus of course) Is that what you were pointing at? Thank you for your help

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.