CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 (https://www.cfd-online.com/Forums/su2/)
-   -   Zero pressure gradient boundary condition (https://www.cfd-online.com/Forums/su2/158140-zero-pressure-gradient-boundary-condition.html)

AGN August 16, 2015 22:39

Zero pressure gradient boundary condition
 
Hi,
I want to run one SU2 simulation where I want to use zero pressure gradient boundary condition at outlet. Can somebody please help me out

hlk September 15, 2015 16:22

Quote:

Originally Posted by AGN (Post 559791)
Hi,
I want to run one SU2 simulation where I want to use zero pressure gradient boundary condition at outlet. Can somebody please help me out

Hello
In order to apply a pressure gradient rather than the static pressure at an outlet, you will need to modify the code.

Fortunately this should be relatively simple - you will need to modify SU2/SU2_CFD/src/solver_direct_mean.cpp :
CEulerSolver::BC_Outlet

In this function, you can for example replace the outlet pressure specified in the config file with the pressure from the first interior point to apply a zero gradient.

More formally, you would need to add an additional config file option and make sure not to interfere with existing behavior, but if you want the fastest solution you can overwrite existing functionality on your local copy of the code.


All times are GMT -4. The time now is 14:15.