69 namespace laminarModels
76 template<
class BasicMomentumTransportModel>
84 template<
class RhoFieldType>
87 const RhoFieldType&
rho,
158 typedef typename BasicMomentumTransportModel::alphaField
alphaField;
159 typedef typename BasicMomentumTransportModel::rhoField
rhoField;
Generic GeometricField class.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Dimension set for the base types.
Templated abstract base class for laminar transport models.
BasicMomentumTransportModel::alphaField alphaField
BasicMomentumTransportModel::rhoField rhoField
Generalised Maxwell model for viscoelasticity using the upper-convected time derivative of the stress...
BasicMomentumTransportModel::alphaField alphaField
volSymmTensorField sigma_
Single or mode sum viscoelastic stress.
dictionary modeCoefficients_
Mode coefficients dictionary.
PtrList< dimensionedScalar > nuM_
Mode non-Newtonian viscosities.
virtual tmp< fvSymmTensorMatrix > sigmaSource(const label modei, volSymmTensorField &sigma) const
TypeName("Maxwell")
Runtime type information.
virtual void correct()
Correct the Maxwell stress.
label nModes_
Number of modes.
PtrList< dimensionedScalar > lambdas_
Mode time-scales.
dimensionedScalar nuMSum_
Sum of mode non-Newtonian viscosities.
virtual void predict()
The Maxwell stress is not predicted.
virtual tmp< volScalarField > nuEff() const
Return the effective viscosity, i.e. the laminar viscosity.
virtual tmp< fvVectorMatrix > divDevTau(volVectorField &U) const
Return the source term for the momentum equation.
virtual tmp< surfaceVectorField > devTau() const
Return the effective surface stress.
PtrList< volSymmTensorField > sigmas_
Mode viscoelastic stresses.
dimensionedScalar sumNuM(const PtrList< dimensionedScalar > &nuM) const
Return the sum of the given list of mode viscosities.
Maxwell(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity, const word &type=typeName)
Construct from components.
PtrList< dimensionedScalar > readModeCoefficients(const word &name, const dimensionSet &dims) const
Read a coefficient for all modes and return as a list.
virtual ~Maxwell()
Destructor.
tmp< volScalarField > nu0() const
Return the effective viscosity.
virtual bool read()
Read model coefficients if they have changed.
BasicMomentumTransportModel::rhoField rhoField
A class for managing temporary objects.
Template function which returns the un-mangled name of a given type. Useful for types which do not ha...
Abstract base class for all fluid physical properties.
A class for handling words, derived from string.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m^2/K^4].
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.