CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   How to specify a timevarying nonuniform gradient of p at a patch (

thomas October 4, 2007 10:08

Hello everyone, I want to a
Hello everyone,

I want to apply calculated values onto the gradient of p at a boundary patch. There are new values in every time step and they are non-uniform.

Apllying some values to p is quite simple, but how to specify values for the gradient at the boundary of a field?

Does anyone have a suggestion? Any help appreciated!

Many Thanks

gschaider October 4, 2007 16:00

Hi Thomas! If you need it a
Hi Thomas!

If you need it at every time-step, you propably will have to program a boundary condition.

Have a look at $FOAM_SRC/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure (that boundary condition sets a pressure gradient, so it might give you an idea how to do it)


thomas October 5, 2007 02:02

Thanks very much Bernhard!
Thanks very much Bernhard!

I will try it.


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