69 namespace laminarModels
76 template<
class BasicMomentumTransportModel>
117 return this->nu() +
nuM_;
129 typedef typename BasicMomentumTransportModel::alphaField
alphaField;
130 typedef typename BasicMomentumTransportModel::rhoField
rhoField;
131 typedef typename BasicMomentumTransportModel::transportModel
transportModel;
143 const alphaField&
alpha,
148 const transportModel& transport,
Templated abstract base class for laminar transport models.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual tmp< volSymmTensorField > devTau() const
Return the effective stress tensor.
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.
Generalised Maxwell model for viscoelasticity using the upper-convected time derivative of the stress...
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
PtrList< dimensionedScalar > readModeCoefficients(const word &name, const dimensionSet &dims) const
virtual ~Maxwell()
Destructor.
virtual tmp< volScalarField > nuEff() const
Return the effective viscosity, i.e. the laminar viscosity.
BasicMomentumTransportModel::alphaField alphaField
Dimension set for the base types.
BasicMomentumTransportModel::rhoField rhoField
virtual tmp< fvSymmTensorMatrix > sigmaSource(const label modei, volSymmTensorField &sigma) const
A class for handling words, derived from string.
virtual tmp< fvVectorMatrix > divDevTau(volVectorField &U) const
Return the source term for the momentum equation.
volSymmTensorField sigma_
Single or mode sum viscoelastic stress.
BasicMomentumTransportModel::transportModel transportModel
virtual tmp< volSymmTensorField > sigma() const
Return the stress tensor [m^2/s^2].
virtual bool read()
Read model coefficients if they have changed.
word name(const complex &)
Return a string representation of a complex.
virtual void correct()
Solve the turbulence equations and correct eddy-Viscosity and.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
PtrList< volSymmTensorField > sigmas_
Mode viscoelastic stresses.
PtrList< dimensionedScalar > lambdas_
TypeName("Maxwell")
Runtime type information.
A class for managing temporary objects.
tmp< volScalarField > nu0() const
Return the turbulence viscosity.
PtrList< dictionary > modeCoefficients_