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
tmp<fvVectorMatrix>
tUEqn
6
(
7
fvm::div(
phi
,
U
)
8
+
MRF
.DDt(
rho
,
U
)
9
+
turbulence
->divDevRhoReff(
U
)
10
==
11
fvOptions
(
rho
,
U
)
12
);
13
fvVectorMatrix&
UEqn
=
tUEqn
.ref();
14
15
UEqn
.relax();
16
17
fvOptions
.constrain(
UEqn
);
18
19
if
(
simple
.momentumPredictor())
20
{
21
solve
22
(
23
UEqn
24
==
25
fvc::reconstruct
26
(
27
(
28
-
ghf
*fvc::snGrad(
rho
)
29
- fvc::snGrad(
p_rgh
)
30
)*
mesh
.magSf()
31
)
32
);
33
34
fvOptions
.correct(
U
);
35
}
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
U
U
Definition:
pEqn.H:72
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
mesh
dynamicFvMesh & mesh
Definition:
createDynamicFvMesh.H:6
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
heatTransfer
buoyantSimpleFoam
UEqn.H
Generated by
1.9.5
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.