CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Main CFD Forum (http://www.cfd-online.com/Forums/main/)
-   -   ghost cells in axisymmetric problems (http://www.cfd-online.com/Forums/main/7551-ghost-cells-axisymmetric-problems.html)

 ma May 15, 2004 16:44

ghost cells in axisymmetric problems

Ghost cells are used in many CFD codes for boundary-condition handling.

However, for axisymmetric problems, in certan situation, the y of the center of a ghost cell may equal to 0 (see the example), which leads to singularity. How to avoid this?

Thanks a lot.

example: -----------------------

bounday cell: y=dy

boundary line: y=dy/2

ghost cell: y=0

 Jim_Park May 15, 2004 20:31

Re: ghost cells in axisymmetric problems

If you use the staggered mesh scheme, the axial and angular velocities (for a rotational flow) are located at y = dy/2, just above the y = 0 axis. The radial velocity is located on the edge of the cell, y = y_0, y_1, etc.

If your problem goes to the axis (y_0 = 0), the radial velocity must be 0 at the axis and is set AT the boundary - the boundary condition replaces the difference equation and is coded directly in you boundary condition routine. The axial velocity w is determined by dw/dz = 0 (symmetry) on the axis. Even with y = 0, your ghost cell setting of w(ghost) = w(first real cell) will set the shear correctly. Same thing applies to the angular (rotational) velocity.

 ma May 17, 2004 13:52

Re: ghost cells in axisymmetric problems

Thanks.

 All times are GMT -4. The time now is 20:04.