On 5/26/21 10:53 PM, David Montiel Taboada wrote:

I would like to solve a PDE using cylindrical coordinates (instead of cartesian) but my equations are rotationally symmetric (do not depend on theta). Therefore, I only need to solve the problem in a 2D domain with coordinates r (radius) and z (direction along the axis).

Can I just do that by employing a cylindrical mesh with dim=2, for example using the function GridGenerator::cylinder, or do I need to pick a specific finite element function and/or modify the weak form of the equations?

If you want to solve a rotationally symmetric PDE in a cylinder, then the r-z domain will just be a rectangle r=0...R, z=0...L. There are functions in GridGenerator for that.

To describe the weak form of the PDE in that case, you need to use a modified form of the PDE that accounts for the change of coordinates from x,y,z to r,z. You might want to search the mailing list archives, where there are several threads on that topic.

Best
 W.


--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 [email protected]
                           www: http://www.math.colostate.edu/~bangerth/

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/84d0543b-2b85-db43-f94a-2b395d8b4e17%40colostate.edu.

Reply via email to