CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   How to read pressure from a designated path (http://www.cfd-online.com/Forums/openfoam-solving/58254-how-read-pressure-designated-path.html)

jennyrui2008 December 4, 2008 05:48

Generally, OpenFOAM uses the f
 
Generally, OpenFOAM uses the following codes to read the initial pressure field as follows:

volScalarField p
(
IOobject
(
"p",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);

The program will look for p from case/0/p, but now if I need to find p from case/Re/0/p, how should I write the codes?

Thanks a lot!


All times are GMT -4. The time now is 18:37.