ITHACA-FV
2023.1
Loading...
Searching...
No Matches
tutorials
inverseHeatTransfer
IHTP01inverseLaplacian
solveTrue.H
Go to the documentation of this file.
1
volScalarField&
T
=
_T
();
2
fvMesh&
mesh
= _mesh();
3
Foam::Time&
runTime
= _runTime();
4
simpleControl
simple
(
mesh
);
5
Info <<
"DT = "
<< DT << endl;
6
assignDirectBC();
7
8
#if defined(OFVER) && (OFVER == 6)
9
10
while
(
simple
.loop(
runTime
))
11
#else
12
while
(
simple
.loop())
13
#endif
14
{
15
while
(
simple
.correctNonOrthogonal())
16
{
17
fvScalarMatrix
TEqn
18
(
19
fvm::laplacian(DT,
T
)
20
);
21
TEqn
.solve();
22
}
23
}
24
25
Info <<
"Exporting"
<< endl;
26
ITHACAstream::exportSolution
(
T
,
"1"
, outputFolder,
T
.name());
27
//Reinitializing runTime
28
instantList Times =
runTime
.times();
29
runTime
.setTime(Times[1], 1);
_T
_T
Definition
createT.H:30
TEqn
fvScalarMatrix & TEqn
Definition
TEqn.H:15
ITHACAstream::exportSolution
void exportSolution(GeometricField< Type, PatchField, GeoMesh > &s, fileName subfolder, fileName folder, word fieldName)
Export a field to file in a certain folder and subfolder.
Definition
ITHACAstream.C:849
runTime
Foam::Time & runTime
Definition
solveTrue.H:3
simple
simpleControl simple(mesh)
mesh
fvMesh & mesh
Definition
solveTrue.H:2
T
volScalarField & T
Definition
solveTrue.H:1
Generated by
1.11.0