DAFoam
v3.0.6
Discrete Adjoint with OpenFOAM
dafoam
src
adjoint
DASolver
DAPimpleFoam
UEqnPimple.H
Go to the documentation of this file.
1
// Solve the Momentum equation
2
3
if
(hasFvSource_)
4
{
5
// update the actuator source term
6
daFvSourcePtr_->calcFvSource(
fvSource
);
7
}
8
9
tmp<fvVectorMatrix>
tUEqn
(
10
fvm::ddt(
U
)
11
+ fvm::div(
phi
,
U
)
12
+ turbulencePtr_->divDevReff(
U
)
13
-
fvSource
);
14
15
fvVectorMatrix&
UEqn
=
tUEqn
.ref();
16
17
UEqn
.relax();
18
19
if
(
pimple
.momentumPredictor())
20
{
21
// get the solver performance info such as initial
22
// and final residuals
23
SolverPerformance<vector>
solverU
=
solve
(
UEqn
== -fvc::grad(
p
));
24
25
this->
primalResidualControl<vector>
(solverU, printToScreen, printInterval,
"U"
);
26
}
U
U
Definition:
pEqnPimpleDyM.H:60
fvSource
volScalarField & fvSource
Definition:
createRefsHeatTransfer.H:7
p
volScalarField & p
Definition:
createRefsPimple.H:6
pimple
pimpleControlDF & pimple
Definition:
createRefsPimple.H:5
tUEqn
tmp< fvVectorMatrix > tUEqn(fvm::ddt(U)+fvm::div(phi, U)+turbulencePtr_->divDevReff(U) - fvSource)
phi
surfaceScalarField & phi
Definition:
createRefsPimple.H:8
primalResidualControl< vector >
this primalResidualControl< vector >(solverU, printToScreen, printInterval, "U")
UEqn
fvVectorMatrix & UEqn
Definition:
UEqnPimple.H:15
solve
pseudoPEqn solve(solverDictP_)
solverU
SolverPerformance< vector > solverU
Definition:
UEqnRhoSimpleC.H:12
Generated by
1.8.17