Go to the documentation of this file.
42 incompressiblePrimalSolver,
60 Foam::RASTurbulenceModel::RASTurbulenceModel
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());
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
autoPtr< SIMPLEControl > solverControl_
Info<< "Reading field U\n"<< 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\n"<< endl;autoPtr< compressible::turbulenceModel > turbulence(compressible::turbulenceModel::New(rho, U, phi, thermo))
Find the reference cell nearest (in index) to the given cell but which is not on a cyclic,...
static word timeName(const scalar t, const int precision=precision_)
const incompressibleVars & getIncoVars() const
incompressibleVars & allocateVars()
Ostream & endl(Ostream &os)
const volScalarField & pInst() const
Ostream & printExecutionTime(OSstream &os) const
bool setRefCell(const volScalarField &field, const volScalarField &fieldRef, const dictionary &dict, label &refCelli, scalar &refValue, const bool forceReference=false)
Base class for primal incompressible solvers.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
incompressibleVars & incoVars_
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
Mesh data needed to do the Finite Volume discretisation.
static autoPtr< SIMPLEControl > New(fvMesh &mesh, const word &managerType, const solver &solver)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
autoPtr< variablesSet > vars_
Ostream & writeEntry(const keyType &key, const T &value)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
defineTypeNameAndDebug(combustionModel, 0)
const Time & time() const noexcept
virtual const dictionary & dict() const
Base class for solution control classes.
SIMPLE control class to supply convergence information/checks for the SIMPLE loop.
virtual bool writeData(Ostream &os) const