0
PostProcess for OpenFOAM1606+

Hi everyone,

i am a student at Heriot watt university and i study the Rarefied gaz flows... I have already launch some simulations on OpenFoam 6 and OpenFoam 1606+.

I need to calculate a grad of p (pressure). For OpenFoam 6 i used : RNSrFoam -postProcess -funcs ‘grad(rho)’ -time x. RNSrFoam is my solver. But this line doesn't work with OpenFoam 1606+ and it is an other solver so i can't use this one in OpenFoam 6... Have you an equivalent of my line or perhars an other way to calculate grad(p) and plot it ?

Thank you

Regards,

Thomas SAUGEY

tgs4@hw.ac.uk


OpenFOAM 16-06-20, 6:07 p.m. Tgs4HW
0

Hi Thomas,

You could try adding the following code snippet in your controlDict file:

functions
{

pressureGradient
{
type grad(p);
libs ("libfieldFunctionObjects.so");
executeControl timeStep;
writeControl writeTime;
}

}

Again, it worked for OpenFOAM 7. I'm not sure about its compatibility in 1606+.

Regards,
Ashley Melvin

17-06-20, 2:26 p.m. ashleymelvin

No it doesn't work.... But thanks for your answer !

 

Regards,

 

Thomas SAUGEY


22-06-20, 12:55 p.m. Tgs4HW

Hi Thomas,

As a last resort, you could try the 'Gradient of Unstructured DataSet' filter on ParaView.

Regards,
Ashley


22-06-20, 6:51 p.m. ashleymelvin

Login to add comment


Log-in to answer to this question.