Go to the documentation of this file.
42 incompressiblePrimalSolver,
60 Foam::RASTurbulenceModel::RASTurbulenceModel
63 const word& managerType,
69 incoVars_(allocateVars())
74 solverControl_().dict(),
75 solverControl_().pRefCell(),
76 solverControl_().pRefValue()
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_
Solver control.
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))
virtual void solveIter()
Execute one iteration of the solution algorithm.
Find the reference cell nearest (in index) to the given cell but which is not on a cyclic,...
fvMesh & mesh_
Reference to the mesh database.
static word timeName(const scalar t, const int precision=precision_)
incompressibleVars & allocateVars()
Protected Member Functions.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & printExecutionTime(OSstream &os) const
Print the elapsed ExecutionTime (cpu-time), ClockTime.
messageStream Info
Information stream (stdout output on master, null elsewhere)
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.
virtual bool loop()
Looper (advances iters, time step)
virtual void solve()
Main control loop.
Base class for primal incompressible solvers.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
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)
Return a reference to the selected turbulence model.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
autoPtr< variablesSet > vars_
Base variableSet pointer.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const incompressibleVars & getIncoVars() const
Access to the incompressible variables set.
defineTypeNameAndDebug(combustionModel, 0)
const Time & time() const noexcept
Return time registry.
Base class for solution control classes.
virtual bool writeData(Ostream &os) const
Read average iteration.