DAFoam
v3.0.6
Discrete Adjoint with OpenFOAM
Main Page
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Typedefs
Related Functions
Files
File List
File Members
All
a
c
d
e
f
g
h
i
k
l
m
n
p
r
s
t
u
v
w
Functions
a
c
d
e
f
h
i
l
m
p
r
s
t
u
v
w
Variables
a
c
d
e
f
g
h
i
k
l
m
n
p
r
s
t
u
Macros
a
c
m
n
p
s
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Friends
Macros
dafoam
src
adjoint
DASolver
DAPisoFoam
UEqnPiso.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
fvVectorMatrix
UEqn
(
10
fvm::ddt(
U
)
11
+ fvm::div(
phi
,
U
)
12
+ turbulencePtr_->divDevReff(
U
)
13
-
fvSource
);
14
15
UEqn
.relax();
16
17
if
(
piso
.momentumPredictor())
18
{
19
// get the solver performance info such as initial
20
// and final residuals
21
SolverPerformance<vector>
solverU
=
solve
(
UEqn
== -fvc::grad(
p
));
22
23
this->
primalResidualControl<vector>
(solverU, printToScreen, printInterval,
"U"
);
24
}
U
U
Definition:
pEqnPimpleDyM.H:60
UEqn
fvVectorMatrix UEqn(fvm::ddt(U)+fvm::div(phi, U)+turbulencePtr_->divDevReff(U) - fvSource)
fvSource
volScalarField & fvSource
Definition:
createRefsHeatTransfer.H:7
piso
pisoControl & piso
Definition:
createRefsPiso.H:5
p
volScalarField & p
Definition:
createRefsPimple.H:6
phi
surfaceScalarField & phi
Definition:
createRefsPimple.H:8
primalResidualControl< vector >
this primalResidualControl< vector >(solverU, printToScreen, printInterval, "U")
solve
pseudoPEqn solve(solverDictP_)
solverU
SolverPerformance< vector > solverU
Definition:
UEqnRhoSimpleC.H:12
Generated by
1.8.17