OpenFOAM: API Guide
v2112
The open source CFD toolbox
UEqn.H
Go to the documentation of this file.
1
// Solve the momentum equation
2
3
MRF
.correctBoundaryVelocity(
U
);
4
5
fvVectorMatrix
UEqn
6
(
7
fvm::ddt(
U
) + fvm::div(
phi
,
U
)
8
+
MRF
.DDt(
U
)
9
+
turbulence
->divDevReff(
U
)
10
==
11
fvOptions
(
U
)
12
);
13
14
UEqn
.relax();
15
16
fvOptions
.constrain(
UEqn
);
17
18
if
(
pimple
.momentumPredictor())
19
{
20
solve
21
(
22
UEqn
23
==
24
fvc::reconstruct
25
(
26
(
27
-
ghf
*fvc::snGrad(
rhok
)
28
- fvc::snGrad(
p_rgh
)
29
)*
mesh
.magSf()
30
)
31
);
32
33
fvOptions
.correct(
U
);
34
}
p_rgh
volScalarField & p_rgh
Definition:
setRegionFluidFields.H:15
fvOptions
fv::options & fvOptions
Definition:
setRegionFluidFields.H:23
phi
surfaceScalarField & phi
Definition:
setRegionFluidFields.H:8
ghf
const surfaceScalarField & ghf
Definition:
setRegionFluidFields.H:18
MRF
IOMRFZoneList & MRF
Definition:
setRegionFluidFields.H:22
pimple
pimpleControl & pimple
Definition:
setRegionFluidFields.H:56
U
U
Definition:
pEqn.H:72
UEqn
fvVectorMatrix & UEqn
Definition:
UEqn.H:13
mesh
dynamicFvMesh & mesh
Definition:
createDynamicFvMesh.H:6
turbulence
compressible::turbulenceModel & turbulence
Definition:
setRegionFluidFields.H:30
rhok
rhok
Definition:
TEqn.H:27
solve
CEqn solve()
applications
solvers
heatTransfer
buoyantBoussinesqPimpleFoam
UEqn.H
Generated by
1.9.5
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.