CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Other] very basic question about createPhi.H (https://www.cfd-online.com/Forums/openfoam-meshing/94641-very-basic-question-about-createphi-h.html)

feldy77 November 22, 2011 00:05

very basic question about createPhi.H
 
Hi Foamers,
I have a very basic question about createPhi.H definition

ifndef createPhi_H
#define createPhi_H
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Info<< "Reading/calculating face flux field phi\n" << endl;
surfaceScalarField phi
(
IOobject
(
"phi",
runTime.timeName(),
mesh,
IOobject::READ_IF_PRESENT,
IOobject::AUTO_WRITE
),
linearInterpolate(hU) & mesh.Sf()
);

Everething is clear except hU field. What is it and where it is defined?
Many thanks, Yuri

Bernhard November 22, 2011 05:01

My version of createPhi.H (OpenFOAM-2.0.x/src/finiteVolume/cfdTools/incompressible) just has U there, which makes sense. Which version are you refering to?

feldy77 November 22, 2011 08:16

Hi Bernhard,
Thaks for your reply,
I a working with 1.7. Now follwoing the path you
mentioned I also found that the flux is computed using U.
Before I was looking at the file related to the ShallowWaterFoam solver.
I think that was the reason for confusion


All times are GMT -4. The time now is 23:52.