Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
RASModelVariables Class Reference

Abstract base class for objective functions. No point in making this runTime selectable since its children will have different constructors. More...

Inheritance diagram for RASModelVariables:
Inheritance graph
[legend]
Collaboration diagram for RASModelVariables:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("RASModelVariables")
 
 declareRunTimeSelectionTable (autoPtr, RASModelVariables, dictionary,(const fvMesh &mesh, const solverControl &SolverControl),(mesh, SolverControl))
 
 RASModelVariables (const fvMesh &mesh, const solverControl &SolverControl)
 
 RASModelVariables (const RASModelVariables &rmv)
 
autoPtr< RASModelVariablesclone () const
 
virtual ~RASModelVariables ()=default
 
const wordTMVar1BaseName () const
 
const wordTMVar2BaseName () const
 
const wordnutBaseName () const
 
bool hasTMVar1 () const
 
bool hasTMVar2 () const
 
bool hasNut () const
 
bool hasDist () const
 
const volScalarFieldTMVar1 () const
 
volScalarFieldTMVar1 ()
 
const volScalarFieldTMVar2 () const
 
volScalarFieldTMVar2 ()
 
const volScalarFieldnutRef () const
 
volScalarFieldnutRef ()
 
const volScalarFieldd () const
 
volScalarFieldd ()
 
const volScalarFieldTMVar1Inst () const
 
volScalarFieldTMVar1Inst ()
 
const volScalarFieldTMVar2Inst () const
 
volScalarFieldTMVar2Inst ()
 
const volScalarFieldnutRefInst () const
 
volScalarFieldnutRefInst ()
 
virtual tmp< volScalarFieldnutJacobianVar1 (const singlePhaseTransportModel &laminarTransport) const
 
virtual tmp< volScalarFieldnutJacobianVar2 (const singlePhaseTransportModel &laminarTransport) const
 
void restoreInitValues ()
 
void resetMeanFields ()
 
void computeMeanFields ()
 
tmp< volSymmTensorFielddevReff (const singlePhaseTransportModel &laminarTransport, const volVectorField &U) const
 
virtual void correctBoundaryConditions (const incompressible::turbulenceModel &turbulence)
 
virtual void transfer (RASModelVariables &rmv)
 

Static Public Member Functions

static autoPtr< RASModelVariablesNew (const fvMesh &mesh, const solverControl &SolverControl)
 

Protected Member Functions

void allocateInitValues ()
 
void allocateMeanFields ()
 
refPtr< volScalarFieldcloneRefPtr (const refPtr< volScalarField > &obj) const
 
void copyAndRename (volScalarField &f1, volScalarField &f2)
 
void operator= (const RASModelVariables &)=delete
 

Protected Attributes

const fvMeshmesh_
 
const solverControlsolverControl_
 
word TMVar1BaseName_
 
word TMVar2BaseName_
 
word nutBaseName_
 
refPtr< volScalarFieldTMVar1Ptr_
 
refPtr< volScalarFieldTMVar2Ptr_
 
refPtr< volScalarFieldnutPtr_
 
refPtr< volScalarFielddistPtr_
 
refPtr< volScalarFieldTMVar1InitPtr_
 
refPtr< volScalarFieldTMVar2InitPtr_
 
refPtr< volScalarFieldnutInitPtr_
 
refPtr< volScalarFieldTMVar1MeanPtr_
 
refPtr< volScalarFieldTMVar2MeanPtr_
 
refPtr< volScalarFieldnutMeanPtr_
 

Detailed Description

Abstract base class for objective functions. No point in making this runTime selectable since its children will have different constructors.

Source files

Definition at line 55 of file RASModelVariables.H.

Constructor & Destructor Documentation

◆ RASModelVariables() [1/2]

RASModelVariables ( const fvMesh mesh,
const solverControl SolverControl 
)

Definition at line 176 of file RASModelVariables.C.

◆ RASModelVariables() [2/2]

Definition at line 204 of file RASModelVariables.C.

◆ ~RASModelVariables()

virtual ~RASModelVariables ( )
virtualdefault

Member Function Documentation

◆ allocateInitValues()

void allocateInitValues ( )
protected

◆ allocateMeanFields()

void allocateMeanFields ( )
protected

◆ cloneRefPtr()

Foam::refPtr< Foam::volScalarField > cloneRefPtr ( const refPtr< volScalarField > &  obj) const
protected

Definition at line 141 of file RASModelVariables.C.

References RASModelVariables::mesh_, refPtr::New(), fvMesh::time(), timeName, and Time::timeName().

Here is the call graph for this function:

◆ copyAndRename()

void copyAndRename ( volScalarField f1,
volScalarField f2 
)
protected

Definition at line 157 of file RASModelVariables.C.

Referenced by RASModelVariables::transfer().

Here is the caller graph for this function:

◆ operator=()

void operator= ( const RASModelVariables )
protecteddelete

◆ TypeName()

TypeName ( "RASModelVariables"  )

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
RASModelVariables  ,
dictionary  ,
(const fvMesh &mesh, const solverControl &SolverControl)  ,
(mesh, SolverControl)   
)

◆ clone()

autoPtr< RASModelVariables > clone ( ) const

Definition at line 230 of file RASModelVariables.C.

References autoPtr::New().

Here is the call graph for this function:

◆ New()

autoPtr< RASModelVariables > New ( const fvMesh mesh,
const solverControl SolverControl 
)
static

◆ TMVar1BaseName()

const word & TMVar1BaseName ( ) const
inline

Definition at line 31 of file RASModelVariablesI.H.

References RASModelVariables::TMVar1BaseName_.

◆ TMVar2BaseName()

const word & TMVar2BaseName ( ) const
inline

Definition at line 37 of file RASModelVariablesI.H.

References RASModelVariables::TMVar2BaseName_.

◆ nutBaseName()

const word & nutBaseName ( ) const
inline

Definition at line 43 of file RASModelVariablesI.H.

References RASModelVariables::nutBaseName_.

◆ hasTMVar1()

bool hasTMVar1 ( ) const
inline

◆ hasTMVar2()

bool hasTMVar2 ( ) const
inline

◆ hasNut()

bool hasNut ( ) const
inline

◆ hasDist()

bool hasDist ( ) const
inline

Definition at line 67 of file RASModelVariablesI.H.

References bool, and RASModelVariables::distPtr_.

Referenced by RASModelVariables::transfer().

Here is the caller graph for this function:

◆ TMVar1() [1/2]

volScalarField & TMVar1 ( ) const
inline

◆ TMVar1() [2/2]

volScalarField& TMVar1 ( )
inline

◆ TMVar2() [1/2]

volScalarField & TMVar2 ( ) const
inline

◆ TMVar2() [2/2]

volScalarField& TMVar2 ( )
inline

◆ nutRef() [1/2]

volScalarField & nutRef ( ) const
inline

◆ nutRef() [2/2]

volScalarField& nutRef ( )
inline

◆ d() [1/2]

volScalarField & d ( ) const
inline

Definition at line 137 of file RASModelVariablesI.H.

References RASModelVariables::distPtr_.

Referenced by RASModelVariables::transfer().

Here is the caller graph for this function:

◆ d() [2/2]

volScalarField& d ( )
inline

◆ TMVar1Inst() [1/2]

volScalarField & TMVar1Inst ( ) const
inline

◆ TMVar1Inst() [2/2]

volScalarField& TMVar1Inst ( )
inline

◆ TMVar2Inst() [1/2]

volScalarField & TMVar2Inst ( ) const
inline

◆ TMVar2Inst() [2/2]

volScalarField& TMVar2Inst ( )
inline

◆ nutRefInst() [1/2]

volScalarField & nutRefInst ( ) const
inline

◆ nutRefInst() [2/2]

volScalarField& nutRefInst ( )
inline

◆ nutJacobianVar1()

tmp< volScalarField > nutJacobianVar1 ( const singlePhaseTransportModel laminarTransport) const
virtual

Reimplemented in SpalartAllmaras.

Definition at line 293 of file RASModelVariables.C.

References Foam::dimless, Foam::endl(), tmp::New(), IOobject::NO_READ, IOobject::NO_WRITE, WarningInFunction, and Foam::Zero.

Here is the call graph for this function:

◆ nutJacobianVar2()

tmp< volScalarField > nutJacobianVar2 ( const singlePhaseTransportModel laminarTransport) const
virtual

Definition at line 318 of file RASModelVariables.C.

References Foam::dimless, Foam::endl(), tmp::New(), IOobject::NO_READ, IOobject::NO_WRITE, WarningInFunction, and Foam::Zero.

Here is the call graph for this function:

◆ restoreInitValues()

void restoreInitValues ( )

◆ resetMeanFields()

void resetMeanFields ( )

◆ computeMeanFields()

void computeMeanFields ( )

◆ devReff()

tmp< volSymmTensorField > devReff ( const singlePhaseTransportModel laminarTransport,
const volVectorField U 
) const

Definition at line 417 of file RASModelVariables.C.

References Foam::dev(), Foam::fvc::grad(), laminarTransport(), tmp::New(), IOobject::NO_READ, IOobject::NO_WRITE, Foam::twoSymm(), and U.

Here is the call graph for this function:

◆ correctBoundaryConditions()

void correctBoundaryConditions ( const incompressible::turbulenceModel turbulence)
virtual

Reimplemented in kOmegaSST.

Definition at line 438 of file RASModelVariables.C.

Referenced by kOmegaSST::correctBoundaryConditions().

Here is the caller graph for this function:

◆ transfer()

void transfer ( RASModelVariables rmv)
virtual

Member Data Documentation

◆ mesh_

const fvMesh& mesh_
protected

◆ solverControl_

const solverControl& solverControl_
protected

◆ TMVar1BaseName_

word TMVar1BaseName_
protected

Definition at line 65 of file RASModelVariables.H.

Referenced by RASModelVariables::TMVar1BaseName().

◆ TMVar2BaseName_

word TMVar2BaseName_
protected

Definition at line 66 of file RASModelVariables.H.

Referenced by RASModelVariables::TMVar2BaseName().

◆ nutBaseName_

word nutBaseName_
protected

Definition at line 67 of file RASModelVariables.H.

Referenced by RASModelVariables::nutBaseName().

◆ TMVar1Ptr_

refPtr<volScalarField> TMVar1Ptr_
protected

◆ TMVar2Ptr_

refPtr<volScalarField> TMVar2Ptr_
protected

◆ nutPtr_

refPtr<volScalarField> nutPtr_
protected

◆ distPtr_

refPtr<volScalarField> distPtr_
protected

Definition at line 72 of file RASModelVariables.H.

Referenced by RASModelVariables::d(), and RASModelVariables::hasDist().

◆ TMVar1InitPtr_

refPtr<volScalarField> TMVar1InitPtr_
protected

◆ TMVar2InitPtr_

refPtr<volScalarField> TMVar2InitPtr_
protected

◆ nutInitPtr_

refPtr<volScalarField> nutInitPtr_
protected

◆ TMVar1MeanPtr_

refPtr<volScalarField> TMVar1MeanPtr_
protected

◆ TMVar2MeanPtr_

refPtr<volScalarField> TMVar2MeanPtr_
protected

◆ nutMeanPtr_

refPtr<volScalarField> nutMeanPtr_
protected

The documentation for this class was generated from the following files: