CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Check field into domain (http://www.cfd-online.com/Forums/openfoam/71551-check-field-into-domain.html)

andrea.pasquali January 7, 2010 06:34

Check field into domain
 
Hello,
How can I check a field (like U or p) on a surface into my domain?
Is there a command like patchAverage or patchIntegrate for surfaces?

Thank in advance for any reply

Andrea

santoo_cfd January 7, 2010 10:36

check out this link

http://openfoamwiki.net/index.php/Co...unctionObjects

andrea.pasquali January 8, 2010 09:33

Thank you very much santhosh!
I compiled it and it works fine.
I would like to check the U field onto a surface in my domain.
I wrote in my controlDict
Quote:

functions
(
surface
{
type surfaces;
functionObjectLibs
(
"libsimpleFunctionObjects.so"
);
verbose true;
// outputControl outputTime;
outputControl timeStep;
outputInterval $writeInterval;
fields
(
U
p
);
checkSurface
(
constantPlane
{
type plane; // always triangulated
basePoint (0.0 -0.11 0.0);
normalVector (0 -1 0);
}
);
}
);
The solver creates a new directory "checkSurface" whit in the sub-directory for each $writeInterval.
The problem is these sub-directory are empty!
Where did I make mistake?

Thanks


All times are GMT -4. The time now is 17:11.