Loading...
Searching...
No Matches
solveTrue.H
Go to the documentation of this file.
1volScalarField& T = _T();
2fvMesh& mesh = _mesh();
3Foam::Time& runTime = _runTime();
4simpleControl simple(mesh);
5Info << "DT = " << DT << endl;
6assignDirectBC();
7
8#if defined(OFVER) && (OFVER == 6)
9
10while (simple.loop(runTime))
11#else
12while (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
25Info << "Exporting" << endl;
26ITHACAstream::exportSolution(T, "1", outputFolder, T.name());
27//Reinitializing runTime
28instantList Times = runTime.times();
29runTime.setTime(Times[1], 1);
_T
Definition createT.H:30
fvScalarMatrix & TEqn
Definition TEqn.H:15
void exportSolution(GeometricField< Type, PatchField, GeoMesh > &s, fileName subfolder, fileName folder, word fieldName)
Export a field to file in a certain folder and subfolder.
Foam::Time & runTime
Definition solveTrue.H:3
simpleControl simple(mesh)
fvMesh & mesh
Definition solveTrue.H:2
volScalarField & T
Definition solveTrue.H:1