42 incompressiblePrimalSolver,
60 Foam::RASTurbulenceModel::RASTurbulenceModel
63 const word& managerType,
65 const word& solverName
76 incoVars_(allocateVars())
97 incoVars_.turbulence();
100 solverControl_().write();
103 incoVars_.computeMeanFields();
115 while (solverControl_().loop())
125 return solverControl_().loop();
131 os.
writeEntry(
"averageIter", solverControl_().averageIter());
const volScalarField & pInst() const
Return const reference to pressure.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
autoPtr< variablesSet > vars_
Base variableSet pointer.
incompressibleVars & incoVars_
Reference to incompressibleVars.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Find the reference cell nearest (in index) to the given cell but which is not on a cyclic...
Macros for easy insertion into run-time selection tables.
Base class for solution control classes.
virtual void solve()
Main control loop.
A class for handling words, derived from Foam::string.
const Time & time() const noexcept
Return time registry.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
static word timeName(const scalar t, const int precision=precision_)
Return a time name for the given scalar time value formatted with the given precision.
OBJstream os(runTime.globalPath()/outputName)
Info<< "Reading field U\"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);volScalarField rho(IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), thermo.rho());volVectorField rhoU(IOobject("rhoU", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *U);volScalarField rhoE(IOobject("rhoE", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *(e+0.5 *magSqr(U)));surfaceScalarField pos(IOobject("pos", runTime.timeName(), mesh), mesh, dimensionedScalar("pos", dimless, 1.0));surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh, dimensionedScalar("neg", dimless, -1.0));surfaceScalarField phi("phi", fvc::flux(rhoU));Info<< "Creating turbulence model\"<< endl;autoPtr< compressible::turbulenceModel > turbulence(compressible::turbulenceModel::New(rho, U, phi, thermo))
defineTypeNameAndDebug(combustionModel, 0)
Ostream & printExecutionTime(OSstream &os) const
Print the elapsed ExecutionTime (cpu-time), ClockTime.
virtual bool loop()
Looper (advances iters, time step)
virtual void solveIter()
Execute one iteration of the solution algorithm.
Mesh data needed to do the Finite Volume discretisation.
incompressibleVars & allocateVars()
Protected Member Functions.
SIMPLE control class to supply convergence information/checks for the SIMPLE loop.
messageStream Info
Information stream (stdout output on master, null elsewhere)
const incompressibleVars & getIncoVars() const
Access to the incompressible variables set.
fvMesh & mesh_
Reference to the mesh database.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Base class for primal incompressible solvers.
virtual bool writeData(Ostream &os) const
Read average iteration.
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.
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)
autoPtr< SIMPLEControl > solverControl_
Solver control.