CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   how to add pressureGradientExplicitSource in the PISO algorithm? (https://www.cfd-online.com/Forums/openfoam-programming-development/102913-how-add-pressuregradientexplicitsource-piso-algorithm.html)

hewei June 6, 2012 06:02

how to add pressureGradientExplicitSource in the PISO algorithm?
 
Hello Everyone,

I am simulating the laminar steady pipe flow, the flow is driven by pressure gradient. Firstly,I add a constant of dp/dx in the UEqn Matrix, the velocity seems right but the pressure is wrong. Even after changing the varies BCs, the solution still wrong.
I find there is pressureGradientExplicitSource codes in the OF, but do somebody could tell me how to add it into the icoFoam solver? Thanks in advance.

W.


All times are GMT -4. The time now is 00:01.