

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


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
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