CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Boundary conditions (https://www.cfd-online.com/Forums/main/67526-boundary-conditions.html)

minnymoony August 18, 2009 05:25

Boundary conditions
 
Hi,
I'm taking a CFD class at university and have to write a code (in matlab) to solve the flow in a 2-D nozzle.The nozzle is symmetric so i'm solving only halve.

What i'm not sure of now is how exactly to write the boundary conditions
on the symmetry plane. is it enough to say that the pressure (and u,v,rho)
on the symmetry plane are the same as on one 'line' above? rho(i_max,:)=rho(i_max-1,:)?

Does any one know of a code that I can look at and compare (i'm using Beam & Warming method)?

Thanks.

otd August 18, 2009 14:22

It would seem that the symmetry condition requires no mass flow across the symmetry boundary (velocity normal to boundary = 0). In some algorithms that may imply the pressure gradient = 0, very similar to making the pressure the same on either side of the symmetry plane.


All times are GMT -4. The time now is 12:42.