CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Add the constant pressure gradient to the momentum equation (https://www.cfd-online.com/Forums/openfoam-solving/142645-add-constant-pressure-gradient-momentum-equation.html)

tzqfly October 6, 2014 04:56

Add the constant pressure gradient to the momentum equation
 
4 Attachment(s)
Hello, everybody,
I want to add a constant pressure gradient to the momentum equation, say, 7.915e-3, and I use the icoFoam to transform my own solver. I saw the solution in this forum, imitating in the channelFoam, but when I run it, It appear the following errors:
Attachment 34219
and the added part in the .C file is following:
Attachment 34222
and the transportProperties file is following:
Attachment 34221
and the gradP file is following:
Attachment 34220
I really don't know how to do, someone can help me? thank you very much!


All times are GMT -4. The time now is 18:50.