OpenFOAM: API Guide
v2112
The open source CFD toolbox
UEqn.H
Go to the documentation of this file.
1
// Solve the Momentum equation
2
MRF
.correctBoundaryVelocity(
U
);
3
4
tmp<fvVectorMatrix>
tUEqn
5
(
6
fvm::div(
phi
,
U
)
7
+
MRF
.DDt(
rho
,
U
)
8
+
turbulence
->divDevRhoReff(
U
)
9
==
10
fvOptions
(
rho
,
U
)
11
);
12
fvVectorMatrix&
UEqn
=
tUEqn
.ref();
13
14
UEqn
.relax();
15
16
fvOptions
.constrain(
UEqn
);
17
18
if
(
simple
.momentumPredictor())
19
{
20
solve
(
UEqn
== -cellMask*fvc::grad(
p
));
21
}
22
23
fvOptions
.correct(
U
);
fvOptions
fv::options & fvOptions
Definition:
setRegionFluidFields.H:23
phi
surfaceScalarField & phi
Definition:
setRegionFluidFields.H:8
MRF
IOMRFZoneList & MRF
Definition:
setRegionFluidFields.H:22
U
U
Definition:
pEqn.H:72
p
volScalarField & p
Definition:
createFieldRefs.H:8
tUEqn
tmp< fvVectorMatrix > tUEqn(fvm::ddt(rho, U)+fvm::div(phi, U)+MRF.DDt(rho, U)+turbulence->divDevRhoReff(U)==fvOptions(rho, U))
UEqn
fvVectorMatrix & UEqn
Definition:
UEqn.H:13
turbulence
compressible::turbulenceModel & turbulence
Definition:
setRegionFluidFields.H:30
simple
const dictionary & simple
Definition:
readFluidMultiRegionSIMPLEControls.H:1
rho
rho
Definition:
readInitialConditions.H:88
solve
CEqn solve()
applications
solvers
compressible
rhoSimpleFoam
overRhoSimpleFoam
UEqn.H
Generated by
1.9.5
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.