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 }
surfaceScalarField & phi
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:42
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcDiv.C:47
PtrList< dimensionedScalar > rhoMin(fluidRegions.size())
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:253
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
Definition: fvcDdt.C:45
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
rhoPhi
Definition: rhoEqn.H:10
messageStream Info