Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Maxwell< BasicTurbulenceModel > Class Template Reference

Maxwell model for viscoelasticity using the upper-convected time derivative of the stress tensor. See http://en.wikipedia.org/wiki/Upper-convected_Maxwell_model. More...

Inheritance diagram for Maxwell< BasicTurbulenceModel >:
Inheritance graph
[legend]
Collaboration diagram for Maxwell< BasicTurbulenceModel >:
Collaboration graph
[legend]

Public Types

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

Public Member Functions

 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 &propertiesName=turbulenceModel::propertiesName, const word &type=typeName)
 Construct from components. More...
 
virtual ~Maxwell ()
 Destructor. More...
 
virtual bool read ()
 Read model coefficients if they have changed. More...
 
virtual tmp< volSymmTensorFieldR () const
 Return the Reynolds stress tensor. More...
 
virtual tmp< volSymmTensorFielddevRhoReff () const
 Return the effective stress tensor. More...
 
virtual tmp< fvVectorMatrixdivDevRhoReff (volVectorField &U) const
 Return the source term for the momentum equation. More...
 
virtual tmp< fvVectorMatrixdivDevRhoReff (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< BasicTurbulenceModel >
 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, const word &propertiesName),(alpha, rho, U, alphaRhoPhi, phi, transport, propertiesName))
 
 laminarModel (const word &type, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName)
 Construct from components. 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< 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< 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...
 

Protected Member Functions

tmp< volScalarFieldnu0 () const
 Return the turbulence viscosity. More...
 
- Protected Member Functions inherited from laminarModel< BasicTurbulenceModel >
virtual void printCoeffs (const word &type)
 Print model coefficients. More...
 

Protected Attributes

dimensionedScalar nuM_
 
dimensionedScalar lambda_
 
volSymmTensorField sigma_
 
- Protected Attributes inherited from laminarModel< BasicTurbulenceModel >
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< BasicTurbulenceModel >
static autoPtr< laminarModelNew (const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName=turbulenceModel::propertiesName)
 Return a reference to the selected laminar model. More...
 

Detailed Description

template<class BasicTurbulenceModel>
class Foam::laminarModels::Maxwell< BasicTurbulenceModel >

Maxwell model for viscoelasticity using the upper-convected time derivative of the stress tensor. See http://en.wikipedia.org/wiki/Upper-convected_Maxwell_model.

The model includes an additional viscosity (nu) from the transport model from which it is instantiated, which makes it equivalent to the Oldroyd-B model for the case of an incompressible transport model (where nu is non-zero). See https://en.wikipedia.org/wiki/Oldroyd-B_model

Reference:

    Amoreira, L. J., & Oliveira, P. J. (2010).
    Comparison of different formulations for the numerical calculation
    of unsteady incompressible viscoelastic fluid flow.
    Adv. Appl. Math. Mech, 4, 483-502.
Source files

Definition at line 67 of file Maxwell.H.

Member Typedef Documentation

◆ alphaField

typedef BasicTurbulenceModel::alphaField alphaField

Definition at line 98 of file Maxwell.H.

◆ rhoField

typedef BasicTurbulenceModel::rhoField rhoField

Definition at line 99 of file Maxwell.H.

◆ transportModel

typedef BasicTurbulenceModel::transportModel transportModel

Definition at line 100 of file Maxwell.H.

Constructor & Destructor Documentation

◆ Maxwell()

Maxwell ( const alphaField alpha,
const rhoField rho,
const volVectorField U,
const surfaceScalarField alphaRhoPhi,
const surfaceScalarField phi,
const transportModel transport,
const word propertiesName = turbulenceModel::propertiesName,
const word type = typeName 
)

Construct from components.

Definition at line 41 of file Maxwell.C.

◆ ~Maxwell()

virtual ~Maxwell ( )
inlinevirtual

Member Function Documentation

◆ nu0()

tmp<volScalarField> nu0 ( ) const
inlineprotected

Return the turbulence viscosity.

Definition at line 90 of file Maxwell.H.

References nu, and Maxwell< BasicTurbulenceModel >::nuM_.

◆ TypeName()

TypeName ( "Maxwell< BasicTurbulenceModel >"  )

Runtime type information.

◆ read()

bool read ( )
virtual

Read model coefficients if they have changed.

Reimplemented from laminarModel< BasicTurbulenceModel >.

Definition at line 107 of file Maxwell.C.

Referenced by Maxwell< BasicTurbulenceModel >::~Maxwell().

Here is the caller graph for this function:

◆ R()

tmp< Foam::volSymmTensorField > R ( ) const
virtual

Return the Reynolds stress tensor.

Reimplemented from laminarModel< BasicTurbulenceModel >.

Definition at line 124 of file Maxwell.C.

Referenced by Maxwell< BasicTurbulenceModel >::~Maxwell().

Here is the caller graph for this function:

◆ devRhoReff()

tmp< Foam::volSymmTensorField > devRhoReff ( ) const
virtual

Return the effective stress tensor.

Definition at line 131 of file Maxwell.C.

References Foam::dev(), Maxwell< BasicTurbulenceModel >::divDevRhoReff(), Foam::fvc::grad(), IOobject::groupName(), IOobject::NO_READ, IOobject::NO_WRITE, nu, and Foam::twoSymm().

Referenced by Maxwell< BasicTurbulenceModel >::~Maxwell().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ divDevRhoReff() [1/2]

tmp< Foam::fvVectorMatrix > divDevRhoReff ( volVectorField U) const
virtual

Return the source term for the momentum equation.

Definition at line 156 of file Maxwell.C.

References Foam::dev2(), Foam::fvc::div(), Foam::fvc::grad(), Foam::fvm::laplacian(), nu, and Foam::T().

Referenced by Maxwell< BasicTurbulenceModel >::devRhoReff(), and Maxwell< BasicTurbulenceModel >::~Maxwell().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ divDevRhoReff() [2/2]

tmp< Foam::fvVectorMatrix > divDevRhoReff ( const volScalarField rho,
volVectorField U 
) const
virtual

Return the source term for the momentum equation.

Definition at line 176 of file Maxwell.C.

References Foam::dev2(), Foam::fvc::div(), Foam::fvc::grad(), Foam::fvm::laplacian(), nu, and Foam::T().

Here is the call graph for this function:

◆ correct()

void correct ( )
virtual

Solve the turbulence equations and correct eddy-Viscosity and.

related properties

Reimplemented from laminarModel< BasicTurbulenceModel >.

Definition at line 195 of file Maxwell.C.

References optionList::constrain(), laminarModel< BasicTurbulenceModel >::correct(), optionList::correct(), Foam::fvm::ddt(), Foam::fvm::div(), fvOptions, Foam::fvc::grad(), IOobject::groupName(), options::New(), tmp< T >::ref(), Foam::constant::physicoChemical::sigma, Foam::solve(), Foam::fvm::Sp(), and Foam::twoSymm().

Referenced by Maxwell< BasicTurbulenceModel >::~Maxwell().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ nuM_

dimensionedScalar nuM_
protected

Definition at line 78 of file Maxwell.H.

Referenced by Maxwell< BasicTurbulenceModel >::nu0().

◆ lambda_

dimensionedScalar lambda_
protected

Definition at line 79 of file Maxwell.H.

◆ sigma_

volSymmTensorField sigma_
protected

Definition at line 84 of file Maxwell.H.


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