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/)
-   -   Fixed pressure gradient (https://www.cfd-online.com/Forums/openfoam-solving/209591-fixed-pressure-gradient.html)

gu1 October 21, 2018 16:19

Fixed pressure gradient
 
Hi,

I'm using OpenFOAM version 5.0 and would like to know, how I define a fixed pressure gradient for a periodic domain? Unfortunately fvOption - meanVelocityForce is not interesting as it varies the gradient over the simulation.

pete20r2 October 21, 2018 20:22

You could try jumpCyclic at the patches. It doesn't apply to the field like you asked but hopefully problem will allow the pressure gradient to develop.

Santiago October 22, 2018 02:16

Quote:

Originally Posted by gu1 (Post 711779)
Hi,

I'm using OpenFOAM version 5.0 and would like to know, how I define a fixed pressure gradient for a periodic domain? Unfortunately fvOption - meanVelocityForce is not interesting as it varies the gradient over the simulation.

Just add a bodyforce to the momentum predictor of piso, like fvOptions

gu1 October 22, 2018 07:31

Quote:

Originally Posted by Santiago (Post 711809)
Just add a bodyforce to the momentum predictor of piso, like fvOptions

Thanks for your response.

Unfortunately I am a beginner in programming (C++). Could you help me with that?

Yesterday I tried this issue:

Quote:

fvVectorMatrix UEqn
(
fvm::ddt(U)
+ fvm::div(phi, U)
+ MRF.DDt(U)
+ turbulence->divDevReff(U)
==
fvOptions(U) + beta
);
...but in my head it did not make much sense.


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