--
You received this message because you are subscribed to the Google Groups "fenics-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fenics-suppor...@googlegroups.com.
To post to this group, send email to fenics-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fenics-support/46f4499b-d047-48f5-8206-79a094686e0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
In cylindrical coordinates with d/dtheta = d/dz = 0, you have-div(grad(u)) = -1/r d/dr (r du/dr)Integrate against test function v and measure 2pi*r*dr (factor 2pi goes away):-int 1/r*d/dr(r du/dr) v r dr = -int d/dr(r du/dr) v dr = int u' v' r dr where u' = du/dr and v' = v/dr.You also get a boundary term at r = R which you need to handle differently depending on what boundary conditions you have. Note that the boundary term at r = 0 goes away.Note that your physical domain (a disc with radius R) is different from the computational domain (the square [0, 2pi] x [0, R] or just [0, R]).--Anders
mån 6 feb. 2017 kl 22:13 skrev Åsmund Hjulstad <asmund....@gmail.com>:
I am trying to solve fluid flow between concentric cylinders, driven by the rotation of the outer cylinder. Flow is incompressible, stationary and axi-symmetric, so I wanted to solve it in 1D.
This might be me not understanding FEM, only, but perhaps someone has an easy pointer on how to do cylindrical coordinates.
The PDE
- mu * div (grad( u ) ) == 0
multiply with test function and integrate
- mu * Integral [ div (grad(u)) * v r dr dtheta ] == 0 (I multiply with r as it is polar coordinates)
It does not vary with theta, so I get a 2*pi factor that goes away (as rhs==0)
Integration by parts gives
- mu * Integral [ (u - r u') * v' dr ] == 0
I cannot get it to match an exact solution, though.
Help most appreciated.
--
You received this message because you are subscribed to the Google Groups "fenics-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fenics-suppor...@googlegroups.com.
To post to this group, send email to fenics...@googlegroups.com.
If you use mshr to generate the mesh, you should know that the mesh is a polygon with 16 (I think) sides as default, but this can be increased.
To post to this group, send email to fenics-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fenics-support/f71f6934-d8de-43dc-8ddd-b89ffc72975c%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to fenics-support+unsubscribe@googlegroups.com.
To post to this group, send email to fenics-support@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fenics-support/f71f6934-d8de-43dc-8ddd-b89ffc72975c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To post to this group, send email to fenics-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fenics-support/f71f6934-d8de-43dc-8ddd-b89ffc72975c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
mvh,
Åsmund Hjulstad