47 _args = autoPtr<argList>
49 new argList(argc, argv)
52 if (!
_args->checkRootCase())
54 Foam::FatalError.exit();
57 argList& args =
_args();
58#include "createTime.H"
59#include "createMesh.H"
60 _simple = autoPtr<simpleControl>
67 simpleControl& simple =
_simple();
68#include "createFields.H"
69#include "createFvOptions.H"
111 fvMesh& mesh =
_mesh();
112 volScalarField& T =
_T();
113 surfaceScalarField& phi =
_phi();
115 simpleControl& simple =
_simple();
116 dimensionedScalar& nu = _nu();
125 Info <<
"Time = " <<
_runTime().timeName() << nl << endl;
127 while (simple.correctNonOrthogonal())
133 - fvm::laplacian(nu, T)
136 fvOptions.constrain(TEqn);
138 fvOptions.correct(T);
160 _transportProperties.clear();
161 argList& args =
_args();
163 runTime.setTime(0, 1);
164 Foam::fvMesh& mesh =
_mesh();
165#include "createFields.H"
166#include "createFvOptions.H"
Header file of the Burgers class.
static ITHACAparameters * getInstance()
Gets an instance of ITHACAparameters, to be used if the instance is already existing.
autoPtr< surfaceScalarField > _phi
Flux.
autoPtr< Time > _runTime
Time.
autoPtr< volVectorField > _U
Velocity field.
autoPtr< fvMesh > _mesh
Mesh.
PtrList< volScalarField > Tfield
List of pointers used to form the T snapshots matrix.
void restart()
Function to restart the fields of the Burgers problem.
ScalarTransport()
Null constructor.
autoPtr< fv::options > _fvOptions
fvOptions
autoPtr< simpleControl > _simple
simpleControl
autoPtr< volScalarField > _T
Temperature field.
bool checkWrite(Time &timeObject)
Function to check if the solution must be exported.
scalar startTime
Start Time (initial time to start storing the snapshots).
scalar writeEvery
Time step of the writing procedure.
scalar nextWrite
Auxiliary variable to store the next writing instant.
label counter
Counter used for the output of the full order solutions.
bool offline
Boolean variable, it is 1 if the Offline phase has already been computed, else 0.
IOdictionary * ITHACAdict
dictionary to store input output infos
autoPtr< argList > _args
argList
bool podex
Boolean variable, it is 1 if the POD has already been computed, else 0.
void truthSolve()
Perform a TruthSolve.
void exportSolution(GeometricField< Type, PatchField, GeoMesh > &s, fileName subfolder, fileName folder, word fieldName)
Export a field to file in a certain folder and subfolder.
bool check_pod()
Check if the POD data folder "./ITHACAoutput/POD" exists.
bool check_off()
Check if the offline data folder "./ITHACAoutput/Offline" exists.