PTT< BasicMomentumTransportModel > Class Template Reference

PTT model for viscoelasticity using the upper-convected time derivative of the stress tensor with support for multiple modes. More...

Inheritance diagram for PTT< BasicMomentumTransportModel >:
Collaboration diagram for PTT< BasicMomentumTransportModel >:

Public Types

typedef BasicMomentumTransportModel::alphaField alphaField
 
typedef BasicMomentumTransportModel::rhoField rhoField
 
typedef BasicMomentumTransportModel::transportModel transportModel
 
- Public Types inherited from Maxwell< BasicMomentumTransportModel >
typedef BasicMomentumTransportModel::alphaField alphaField
 
typedef BasicMomentumTransportModel::rhoField rhoField
 
typedef BasicMomentumTransportModel::transportModel transportModel
 
- Public Types inherited from laminarModel< BasicMomentumTransportModel >
typedef BasicMomentumTransportModel::alphaField alphaField
 
typedef BasicMomentumTransportModel::rhoField rhoField
 
typedef BasicMomentumTransportModel::transportModel transportModel
 

Public Member Functions

 TypeName ("PTT")
 Runtime type information. More...
 
 PTT (const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &type=typeName)
 Construct from components. More...
 
 PTT (const PTT &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~PTT ()
 Destructor. More...
 
virtual bool read ()
 Re-read model coefficients if they have changed. More...
 
void operator= (const PTT &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from Maxwell< BasicMomentumTransportModel >
 TypeName ("Maxwell")
 Runtime type information. More...
 
 Maxwell (const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &type=typeName)
 Construct from components. More...
 
virtual ~Maxwell ()
 Destructor. More...
 
virtual tmp< volScalarFieldnuEff () const
 Return the effective viscosity, i.e. the laminar viscosity. More...
 
virtual tmp< scalarFieldnuEff (const label patchi) const
 Return the effective viscosity on patch. More...
 
virtual tmp< volSymmTensorFieldsigma () const
 Return the stress tensor [m^2/s^2]. More...
 
virtual tmp< volSymmTensorFielddevTau () const
 Return the effective stress tensor. More...
 
virtual tmp< fvVectorMatrixdivDevTau (volVectorField &U) const
 Return the source term for the momentum equation. More...
 
virtual tmp< fvVectorMatrixdivDevTau (const volScalarField &rho, volVectorField &U) const
 Return the source term for the momentum equation. More...
 
virtual void correct ()
 Solve the turbulence equations and correct eddy-Viscosity and. More...
 
- Public Member Functions inherited from laminarModel< BasicMomentumTransportModel >
 TypeName ("laminar")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, laminarModel, dictionary,(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport),(alpha, rho, U, alphaRhoPhi, phi, transport))
 
 laminarModel (const word &type, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport)
 Construct from components. More...
 
 laminarModel (const laminarModel &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~laminarModel ()
 Destructor. More...
 
virtual const dictionarycoeffDict () const
 Const access to the coefficients dictionary. More...
 
virtual tmp< volScalarFieldnut () const
 Return the turbulence viscosity, i.e. 0 for laminar flow. More...
 
virtual tmp< scalarFieldnut (const label patchi) const
 Return the turbulence viscosity on patch. More...
 
virtual tmp< volScalarFieldk () const
 Return the turbulence kinetic energy, i.e. 0 for laminar flow. More...
 
virtual tmp< volScalarFieldepsilon () const
 Return the turbulence kinetic energy dissipation rate,. More...
 
void operator= (const laminarModel &)=delete
 Disallow default bitwise assignment. More...
 

Protected Member Functions

virtual tmp< fvSymmTensorMatrixsigmaSource (const label modei, volSymmTensorField &sigma) const
 
- Protected Member Functions inherited from Maxwell< BasicMomentumTransportModel >
PtrList< dimensionedScalarreadModeCoefficients (const word &name, const dimensionSet &dims) const
 
tmp< volScalarFieldnu0 () const
 Return the turbulence viscosity. More...
 
- Protected Member Functions inherited from laminarModel< BasicMomentumTransportModel >
virtual void printCoeffs (const word &type)
 Print model coefficients. More...
 

Protected Attributes

PtrList< dimensionedScalarepsilons_
 
- Protected Attributes inherited from Maxwell< BasicMomentumTransportModel >
PtrList< dictionarymodeCoefficients_
 
label nModes_
 
dimensionedScalar nuM_
 
PtrList< dimensionedScalarlambdas_
 
volSymmTensorField sigma_
 Single or mode sum viscoelastic stress. More...
 
PtrList< volSymmTensorFieldsigmas_
 Mode viscoelastic stresses. More...
 
- Protected Attributes inherited from laminarModel< BasicMomentumTransportModel >
dictionary laminarDict_
 laminar coefficients dictionary More...
 
Switch printCoeffs_
 Flag to print the model coeffs at run-time. More...
 
dictionary coeffDict_
 Model coefficients dictionary. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from laminarModel< BasicMomentumTransportModel >
static autoPtr< laminarModelNew (const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport)
 Return a reference to the selected laminar model. More...
 

Detailed Description

template<class BasicMomentumTransportModel>
class Foam::laminarModels::PTT< BasicMomentumTransportModel >

PTT model for viscoelasticity using the upper-convected time derivative of the stress tensor with support for multiple modes.

Reference:

    Thien, N. P., & Tanner, R. I. (1977).
    A new constitutive equation derived from network theory.
    Journal of Non-Newtonian Fluid Mechanics, 2(4), 353-365.
See also
Foam::laminarModels::Maxwell Foam::laminarModels::Giesekus
Source files

Definition at line 63 of file PTT.H.

Member Typedef Documentation

◆ alphaField

typedef BasicMomentumTransportModel::alphaField alphaField

Definition at line 87 of file PTT.H.

◆ rhoField

typedef BasicMomentumTransportModel::rhoField rhoField

Definition at line 88 of file PTT.H.

◆ transportModel

typedef BasicMomentumTransportModel::transportModel transportModel

Definition at line 89 of file PTT.H.

Constructor & Destructor Documentation

◆ PTT() [1/2]

PTT ( const alphaField alpha,
const rhoField rho,
const volVectorField U,
const surfaceScalarField alphaRhoPhi,
const surfaceScalarField phi,
const transportModel transport,
const word type = typeName 
)

Construct from components.

Definition at line 60 of file PTT.C.

Referenced by PTT< BasicMomentumTransportModel >::sigmaSource().

Here is the caller graph for this function:

◆ PTT() [2/2]

PTT ( const PTT< BasicMomentumTransportModel > &  )
delete

Disallow default bitwise copy construction.

◆ ~PTT()

virtual ~PTT ( )
inlinevirtual

Destructor.

Definition at line 116 of file PTT.H.

References PTT< BasicMomentumTransportModel >::operator=(), and PTT< BasicMomentumTransportModel >::read().

Here is the call graph for this function:

Member Function Documentation

◆ sigmaSource()

tmp< fvSymmTensorMatrix > sigmaSource ( const label  modei,
volSymmTensorField sigma 
) const
protectedvirtual

Reimplemented from Maxwell< BasicMomentumTransportModel >.

Definition at line 41 of file PTT.C.

References Foam::exp(), PTT< BasicMomentumTransportModel >::PTT(), Foam::fvm::Sp(), and Foam::tr().

Here is the call graph for this function:

◆ TypeName()

TypeName ( "PTT< BasicMomentumTransportModel >"  )

Runtime type information.

◆ read()

bool read ( )
virtual

Re-read model coefficients if they have changed.

Reimplemented from Maxwell< BasicMomentumTransportModel >.

Definition at line 93 of file PTT.C.

References Foam::dimless.

Referenced by PTT< BasicMomentumTransportModel >::~PTT().

Here is the caller graph for this function:

◆ operator=()

void operator= ( const PTT< BasicMomentumTransportModel > &  )
delete

Disallow default bitwise assignment.

Referenced by PTT< BasicMomentumTransportModel >::~PTT().

Here is the caller graph for this function:

Member Data Documentation

◆ epsilons_

PtrList<dimensionedScalar> epsilons_
protected

Definition at line 73 of file PTT.H.


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