DAFoam
v3.0.6
Discrete Adjoint with OpenFOAM
dafoam
src
adjoint
DASolver
DATurboFoam
UEqnTurbo.H
Go to the documentation of this file.
1
// Solve the Momentum equation
2
3
MRF
.correctBoundaryVelocity(
U
);
4
5
tmp<fvVectorMatrix>
tUEqn
(
6
fvm::div(
phi
,
U
)
7
+
MRF
.DDt(
rho
,
U
)
8
+ turbulencePtr_->divDevRhoReff(
U
));
9
fvVectorMatrix&
UEqn
=
tUEqn
.ref();
10
11
UEqn
.relax();
12
13
// get the solver performance info such as initial
14
// and final residuals
15
SolverPerformance<vector>
solverU
=
solve
(
UEqn
== -fvc::grad(
p
));
16
17
this->
primalResidualControl<vector>
(solverU, printToScreen, printInterval,
"U"
);
18
19
// bound U
20
DAUtility::boundVar(
allOptions
,
U
, printToScreen);
21
U
.correctBoundaryConditions();
allOptions
const dictionary & allOptions
Definition:
createRefsRhoSimpleC.H:15
U
U
Definition:
pEqnPimpleDyM.H:60
UEqn
fvVectorMatrix & UEqn
Definition:
UEqnTurbo.H:9
solverU
SolverPerformance< vector > solverU
Definition:
UEqnTurbo.H:15
primalResidualControl< vector >
this primalResidualControl< vector >(solverU, printToScreen, printInterval, "U")
MRF
IOMRFZoneListDF & MRF
Definition:
createRefsRhoSimple.H:18
p
volScalarField & p
Definition:
createRefsPimple.H:6
phi
surfaceScalarField & phi
Definition:
createRefsPimple.H:8
solve
pseudoPEqn solve(solverDictP_)
tUEqn
tmp< fvVectorMatrix > tUEqn(fvm::div(phi, U)+MRF.DDt(rho, U)+turbulencePtr_->divDevRhoReff(U))
rho
volScalarField & rho
Definition:
createRefsRhoSimpleC.H:8
Generated by
1.8.17