CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Plot pressure with FuntionObjects (http://www.cfd-online.com/Forums/openfoam-post-processing/112196-plot-pressure-funtionobjects.html)

ynos January 23, 2013 15:09

Plot pressure with FuntionObjects
 
Hi Foamers
I have run my cases, but I have a lot of cases and i would like plot the pressures maps with FuntionObjects. I wrote in my controldict the next:

functions
(
forces
{
type forces;
functionObjectLibs ("libforces.so"); //Lib to load
outputControl timeStep;
outputInterval 1;
patches (hull); // change to your patch name
rhoInf 1000; //Reference density for fluid
nuInf 1e-6; //Reference kinetic viscosity for fluid
CofR (0 0 0); //Origin for moment calculations
}

interface
{
type surfaces;
functionObjectLibs
(
"libsampling.so"
);
outputControl outputTime;
outputInterval 2;
surfaceFormat vtk;
fields
(
alpha1


);
surfaces
(
freeSurface
{
type isoSurfaceCell;
isoField alpha1;
isoValue 0.5;
interpolate true;
regularise true;
}
);
interpolationScheme cell;
}

);

but I would like to get the pressure on the hull and the p_rgh on the freesurface.
Thanks in advanced


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