SolidThermoPhaseModel< BasePhaseModel, ThermoModel > Class Template Reference

Class which represents a solid phase with a thermodynamic model. Provides access to the thermodynamic variables. Note that the thermo model itself is not returned as this class could be substituted in the hierarchy for one which mirrors the functionality, but does not include a thermo model; an incompressible phase model, for example. More...

Inheritance diagram for SolidThermoPhaseModel< BasePhaseModel, ThermoModel >:
Collaboration diagram for SolidThermoPhaseModel< BasePhaseModel, ThermoModel >:

Public Types

typedef ThermoModel thermoModel
 

Public Member Functions

 SolidThermoPhaseModel (const phaseSystem &fluid, const word &phaseName, const bool referencePhase, const label index)
 
virtual ~SolidThermoPhaseModel ()
 Destructor. More...
 
virtual bool incompressible () const
 Return whether the phase is incompressible. More...
 
virtual bool isochoric () const
 Return whether the phase is constant density. More...
 
virtual const rhoThermothermo () const
 Return the thermophysical model. More...
 
virtual rhoThermothermo ()
 Access the thermophysical model. More...
 
virtual const rhoFluidThermofluidThermo () const
 Return the thermophysical model. More...
 
virtual rhoFluidThermofluidThermo ()
 Access the thermophysical model. More...
 
virtual const volScalarFieldrho () const
 Return the density field. More...
 
virtual volScalarFieldrho ()
 Access the the density field. More...
 
virtual tmp< volScalarFieldmu () const
 Return the laminar dynamic viscosity. More...
 
virtual tmp< scalarFieldmu (const label patchi) const
 Return the laminar dynamic viscosity on a patch. More...
 
virtual tmp< volScalarFieldnu () const
 Return the laminar kinematic viscosity. More...
 
virtual tmp< scalarFieldnu (const label patchi) const
 Return the laminar kinematic viscosity on a patch. More...
 
- Public Member Functions inherited from viscosity
 TypeName ("viscosity")
 Runtime type information. More...
 
 viscosity ()
 Construct. More...
 
 viscosity (const viscosity &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~viscosity ()
 Destructor. More...
 
void operator= (const viscosity &)=delete
 Disallow default bitwise assignment. More...
 

Protected Attributes

autoPtr< ThermoModel > thermo_
 Thermophysical model. More...
 

Detailed Description

template<class BasePhaseModel, class ThermoModel>
class Foam::SolidThermoPhaseModel< BasePhaseModel, ThermoModel >

Class which represents a solid phase with a thermodynamic model. Provides access to the thermodynamic variables. Note that the thermo model itself is not returned as this class could be substituted in the hierarchy for one which mirrors the functionality, but does not include a thermo model; an incompressible phase model, for example.

Source files

Definition at line 56 of file SolidThermoPhaseModel.H.

Member Typedef Documentation

◆ thermoModel

typedef ThermoModel thermoModel

Definition at line 71 of file SolidThermoPhaseModel.H.

Constructor & Destructor Documentation

◆ SolidThermoPhaseModel()

SolidThermoPhaseModel ( const phaseSystem fluid,
const word phaseName,
const bool  referencePhase,
const label  index 
)

Definition at line 32 of file SolidThermoPhaseModel.C.

References IOobject::groupName(), Foam::name(), SolidThermoPhaseModel< BasePhaseModel, ThermoModel >::thermo_, and Field< Type >::typeName.

Here is the call graph for this function:

◆ ~SolidThermoPhaseModel()

Destructor.

Definition at line 56 of file SolidThermoPhaseModel.C.

Member Function Documentation

◆ incompressible()

bool incompressible
virtual

Return whether the phase is incompressible.

Definition at line 65 of file SolidThermoPhaseModel.C.

◆ isochoric()

bool isochoric
virtual

Return whether the phase is constant density.

Definition at line 72 of file SolidThermoPhaseModel.C.

◆ thermo() [1/2]

const Foam::rhoThermo & thermo
virtual

Return the thermophysical model.

Definition at line 80 of file SolidThermoPhaseModel.C.

◆ thermo() [2/2]

Foam::rhoThermo & thermo
virtual

Access the thermophysical model.

Definition at line 88 of file SolidThermoPhaseModel.C.

◆ fluidThermo() [1/2]

Return the thermophysical model.

Definition at line 96 of file SolidThermoPhaseModel.C.

References NotImplemented.

◆ fluidThermo() [2/2]

Access the thermophysical model.

Definition at line 105 of file SolidThermoPhaseModel.C.

References NotImplemented.

◆ rho() [1/2]

const Foam::volScalarField & rho
virtual

Return the density field.

Definition at line 114 of file SolidThermoPhaseModel.C.

◆ rho() [2/2]

Foam::volScalarField & rho
virtual

Access the the density field.

Definition at line 122 of file SolidThermoPhaseModel.C.

◆ mu() [1/2]

Return the laminar dynamic viscosity.

Definition at line 130 of file SolidThermoPhaseModel.C.

References NotImplemented.

◆ mu() [2/2]

Foam::tmp< Foam::scalarField > mu ( const label  patchi) const
virtual

Return the laminar dynamic viscosity on a patch.

Definition at line 139 of file SolidThermoPhaseModel.C.

References NotImplemented.

◆ nu() [1/2]

Return the laminar kinematic viscosity.

Implements viscosity.

Definition at line 151 of file SolidThermoPhaseModel.C.

References NotImplemented.

◆ nu() [2/2]

Foam::tmp< Foam::scalarField > nu ( const label  patchi) const
virtual

Return the laminar kinematic viscosity on a patch.

Implements viscosity.

Definition at line 160 of file SolidThermoPhaseModel.C.

References NotImplemented.

Member Data Documentation

◆ thermo_

autoPtr<ThermoModel> thermo_
protected

Thermophysical model.

Definition at line 66 of file SolidThermoPhaseModel.H.

Referenced by SolidThermoPhaseModel< BasePhaseModel, ThermoModel >::SolidThermoPhaseModel().


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