36 #ifndef incompressibleVars_H 37 #define incompressibleVars_H autoPtr< singlePhaseTransportModel > laminarTransportPtr_
autoPtr< volVectorField > UPtr_
const volScalarField & pInst() const
Return const reference to pressure.
void operator=(const incompressibleVars &)
No copy assignment.
*virtual void transfer(variablesSet &vars)
Transfer the fields of another variablesSet to this.
autoPtr< volScalarField > pMeanPtr_
Manage mean fields. Turbulent mean fields are managed in RASModelVariables.
void resetMeanFields()
Reset mean fields to zero.
const surfaceScalarField & phiInst() const
Return const reference to volume flux.
void setMeanFields()
Set mean fields if necessary.
incompressibleVars(fvMesh &mesh, solverControl &SolverControl)
Construct from mesh.
void correctNonTurbulentBoundaryConditions()
Update boundary conditions of mean-flow.
void setInitFields()
Set initial fields if necessary.
void correctTurbulentBoundaryConditions()
Update boundary conditions of turbulent fields.
autoPtr< surfaceScalarField > phiInitPtr_
autoPtr< volScalarField > pPtr_
Fields involved in the solution of the incompressible NS equations.
virtual autoPtr< variablesSet > clone() const
Clone the incompressibleVars.
const surfaceScalarField & phi() const
Return const reference to volume flux.
Base class for solution control classes.
const singlePhaseTransportModel & laminarTransport() const
Return const reference to transport model.
autoPtr< surfaceScalarField > phiMeanPtr_
const volScalarField & p() const
Return const reference to pressure.
Base class for solver control classes.
void setFields()
Read fields and set turbulence.
autoPtr< incompressible::RASModelVariables > RASModelVariables_
autoPtr< volVectorField > UMeanPtr_
solverControl & solverControl_
Reference to the solverControl of the solver allocating the fields.
const volVectorField & U() const
Return const reference to velocity.
bool storeInitValues() const
Return storeInitValues bool.
void renameTurbulenceFields()
Rename turbulence fields if necessary.
autoPtr< surfaceScalarField > phiPtr_
autoPtr< volVectorField > UInitPtr_
const autoPtr< incompressible::RASModelVariables > & RASModelVariables() const
Return const reference to the turbulence model variables.
void computeMeanFields()
Compute mean fields on the fly.
void restoreInitValues()
Restore field values to the initial ones.
Base class for creating a set of variables.
bool correctBoundaryConditions_
Update boundary conditions upon construction.
TypeName("incompressibleVars")
Run-time type information.
virtual ~incompressibleVars()=default
Destructor.
Mesh data needed to do the Finite Volume discretisation.
void correctBoundaryConditions()
correct boundaryconditions for all volFields
autoPtr< volScalarField > pInitPtr_
Keep a copy of the initial field values if necessary.
const autoPtr< incompressible::turbulenceModel > & turbulence() const
Return const reference to the turbulence model.
autoPtr< incompressible::turbulenceModel > turbulence_
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
bool write() const
Write dummy turbulent fields to allow for continuation in multi-point, turbulent runs.
const volVectorField & UInst() const
Return const reference to velocity.
A simple single-phase transport model based on viscosityModel.