rhoEqn.H
Go to the documentation of this file.
1 {
2  fvScalarMatrix rhoEqn
3  (
5  + fvm::div(phi, rho)
6  );
7 
8  rhoEqn.solve();
9 
10  rhoPhi = rhoEqn.flux();
11 
12  Info<< "max-min rho: " << max(rho).value()
13  << " " << min(rho).value() << endl;
14 
15  rho == max(rho, rhoMin);
16 }
rhoPhi
rhoPhi
Definition: rhoEqn.H:10
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:369
Foam::fac::div
tmp< GeometricField< Type, faPatchField, areaMesh > > div(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Definition: facDiv.C:50
rho
rho
Definition: readInitialConditions.H:88
Foam::min
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
Definition: hashSets.C:33
Foam::fvScalarMatrix
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:44
Foam::Info
messageStream Info
Information stream (stdout output on master, null elsewhere)
rhoMin
const dimensionedScalar rhoMin
Definition: setRegionFluidFields.H:67
phi
surfaceScalarField & phi
Definition: setRegionFluidFields.H:8
Foam::max
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Definition: hashSets.C:47
Foam::fac::ddt
tmp< GeometricField< Type, faPatchField, areaMesh > > ddt(const dimensioned< Type > dt, const faMesh &mesh)
Definition: facDdt.C:47