OpenFOAM: API Guide
v2112
The open source CFD toolbox
rhoEqn.H
Go to the documentation of this file.
1
{
2
fvScalarMatrix
rhoEqn
3
(
4
fvm::ddt(
rho
)
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
}
max
Y[inertIndex] max(0.0)
rhoPhi
rhoPhi
Definition:
rhoEqn.H:10
phi
surfaceScalarField & phi
Definition:
setRegionFluidFields.H:8
rhoMin
const dimensionedScalar rhoMin
Definition:
setRegionFluidFields.H:67
Foam::fvScalarMatrix
fvMatrix< scalar > fvScalarMatrix
Definition:
fvMatricesFwd.H:45
rho
rho
Definition:
readInitialConditions.H:88
applications
solvers
multiphase
cavitatingFoam
rhoEqn.H
Generated by
1.9.5
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.