63 const word& managerType,
69 incoVars_(allocateVars())
90 incoVars_.turbulence();
93 solverControl_().write();
96 incoVars_.computeMeanFields();
108 while (solverControl_().loop())
118 return solverControl_().loop();
124 os.
writeEntry(
"averageIter", solverControl_().averageIter());
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
Solves for a RAS turbulence model, with constant U and phi values.
autoPtr< SIMPLEControl > solverControl_
Solver control.
virtual bool writeData(Ostream &os) const
Read average iteration.
incompressibleVars & allocateVars()
Protected Member Functions.
incompressibleVars & incoVars_
Reference to incompressibleVars.
virtual bool loop()
Looper (advances iters, time step)
virtual void solveIter()
Execute one iteration of the solution algorithm.
virtual void solve()
Main control loop.
SIMPLE control class to supply convergence information/checks for the SIMPLE loop.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static word timeName(const scalar t, const int precision=precision_)
Ostream & printExecutionTime(OSstream &os) const
Print the elapsed ExecutionTime (cpu-time), ClockTime.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
Base class for primal incompressible solvers.
const incompressibleVars & getIncoVars() const
Access to the incompressible variables set.
Base class for solution control classes.
const volScalarField & pInst() const
Return const reference to pressure.
const Time & time() const noexcept
Return time registry.
autoPtr< variablesSet > vars_
Base variableSet pointer.
virtual const dictionary & dict() const
Return the solver dictionary.
fvMesh & mesh_
Reference to the mesh database.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
OBJstream os(runTime.globalPath()/outputName)
Find the reference cell nearest (in index) to the given cell but which is not on a cyclic,...
compressible::turbulenceModel & turbulence
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
bool setRefCell(const volScalarField &field, const volScalarField &fieldRef, const dictionary &dict, label &refCelli, scalar &refValue, const bool forceReference=false)
If the field fieldRef needs referencing find the reference cell nearest.