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