simplifiedViscousStress< BasicMomentumTransportModel > Class Template Referenceabstract

Simplified linear viscous stress momentum transport model base class. More...

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

Public Types

typedef BasicMomentumTransportModel::alphaField alphaField
 
typedef BasicMomentumTransportModel::rhoField rhoField
 

Public Member Functions

 ClassName ("simplified")
 Runtime type information. More...
 
 simplifiedViscousStress (const word &modelName, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity)
 Construct from components. More...
 
virtual ~simplifiedViscousStress ()
 Destructor. More...
 
virtual bool read ()=0
 Re-read model coefficients if they have changed. More...
 
virtual tmp< surfaceVectorFielddevTau () const
 Return the effective surface stress. 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 ()=0
 Solve the turbulence equations and correct the turbulence viscosity. More...
 
template<class RhoFieldType >
Foam::tmp< Foam::fvVectorMatrixDivDevTau (const RhoFieldType &rho, volVectorField &U) const
 

Protected Member Functions

template<class RhoFieldType >
tmp< fvVectorMatrixDivDevTau (const RhoFieldType &rho, volVectorField &U) const
 Return the source term for the momentum equation. More...
 

Detailed Description

template<class BasicMomentumTransportModel>
class Foam::simplifiedViscousStress< BasicMomentumTransportModel >

Simplified linear viscous stress momentum transport model base class.

For incompressible uniform viscosity flow in which the transpose and dilatation terms in the linear stress model are formally zero.

This model can also be useful for complex surface film cases in which the transpose and dilatation terms are relatively very small compared to the wall surface stress and can safely be ignored avoiding potentially large numerical errors around sharp corners.

Source files

Definition at line 55 of file simplifiedViscousStress.H.

Member Typedef Documentation

◆ alphaField

typedef BasicMomentumTransportModel::alphaField alphaField

Definition at line 74 of file simplifiedViscousStress.H.

◆ rhoField

typedef BasicMomentumTransportModel::rhoField rhoField

Definition at line 75 of file simplifiedViscousStress.H.

Constructor & Destructor Documentation

◆ simplifiedViscousStress()

simplifiedViscousStress ( const word modelName,
const alphaField alpha,
const rhoField rho,
const volVectorField U,
const surfaceScalarField alphaRhoPhi,
const surfaceScalarField phi,
const viscosity viscosity 
)

Construct from components.

Definition at line 33 of file simplifiedViscousStress.C.

◆ ~simplifiedViscousStress()

virtual ~simplifiedViscousStress ( )
inlinevirtual

Destructor.

Definition at line 98 of file simplifiedViscousStress.H.

Member Function Documentation

◆ DivDevTau() [1/2]

tmp<fvVectorMatrix> DivDevTau ( const RhoFieldType &  rho,
volVectorField U 
) const
protected

Return the source term for the momentum equation.

◆ ClassName()

ClassName ( "simplified"  )

Runtime type information.

◆ read()

bool read
pure virtual

Re-read model coefficients if they have changed.

Definition at line 61 of file simplifiedViscousStress.C.

References Foam::blockMeshTools::read().

Here is the call graph for this function:

◆ devTau()

Return the effective surface stress.

Definition at line 69 of file simplifiedViscousStress.C.

References Foam::fvc::interpolate(), GeometricField< Type, GeoMesh, PrimitiveField >::New(), nuEff, and Foam::fvc::snGrad().

Here is the call graph for this function:

◆ divDevTau() [1/2]

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

Return the source term for the momentum equation.

Definition at line 104 of file simplifiedViscousStress.C.

References U.

◆ divDevTau() [2/2]

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

Return the source term for the momentum equation.

Definition at line 115 of file simplifiedViscousStress.C.

References rho, and U.

◆ correct()

void correct
pure virtual

Solve the turbulence equations and correct the turbulence viscosity.

Definition at line 126 of file simplifiedViscousStress.C.

References Foam::MULES::correct().

Here is the call graph for this function:

◆ DivDevTau() [2/2]

Foam::tmp<Foam::fvVectorMatrix> DivDevTau ( const RhoFieldType &  rho,
volVectorField U 
) const

Definition at line 87 of file simplifiedViscousStress.C.

References Foam::fvc::interpolate(), Foam::fvm::laplacian(), nuEff, rho, and U.

Here is the call graph for this function:

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