37 void Foam::solidDisplacementThermo::readProperty(
volScalarField& prop)
const 39 const dictionary& propDict(subDict(prop.name()));
40 const word propType(propDict.lookup(
"type"));
42 if (propType ==
"uniform")
48 propDict.lookup<scalar>(
"value")
51 else if (propType ==
"field")
58 prop.mesh().time().timeName(0),
70 <<
"Valid type entries are uniform or field for " << prop.name()
84 solidThermo(mesh, phaseName),
85 planeStress_(
lookup(
"planeStress")),
86 thermalStress_(
lookup(
"thermalStress")),
91 phasePropertyName(
"Cp"),
104 phasePropertyName(
"kappa"),
111 Cp_.dimensions()*dimensionSet(1, -1, -1, 0, 0)
117 phasePropertyName(
"E"),
130 phasePropertyName(
"nu"),
143 phasePropertyName(
"alphav"),
155 readProperty(kappa_);
158 readProperty(alphav_);
251 return tmp<scalarField>(
nullptr);
261 return tmp<volScalarField>(
nullptr);
272 return tmp<scalarField>(
nullptr);
279 return tmp<volScalarField>(
nullptr);
290 return tmp<volScalarField>(
nullptr);
301 return tmp<scalarField>(
nullptr);
312 return tmp<scalarField>(
nullptr);
319 return tmp<volScalarField>(
nullptr);
330 return tmp<volScalarField>(
nullptr);
341 return tmp<scalarField>(
nullptr);
352 return tmp<scalarField>(
nullptr);
359 return tmp<volScalarField>(
nullptr);
371 return tmp<scalarField>(
nullptr);
383 return tmp<scalarField>(
nullptr);
438 return tmp<volScalarField>(
nullptr);
449 return tmp<scalarField>(
nullptr);
472 return tmp<volScalarField>(
nullptr);
482 return tmp<scalarField>(
nullptr);
492 return tmp<volScalarField>(
nullptr);
503 return tmp<scalarField>(
nullptr);
513 return tmp<volScalarField>(
nullptr);
524 return tmp<scalarField>(
nullptr);
531 return tmp<volVectorField>(
nullptr);
541 return tmp<vectorField>(
nullptr);
virtual tmp< volScalarField > hs() const
Sensible enthalpy [J/kg].
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< volScalarField > CpByCpv() const
Heat capacity ratio [].
virtual tmp< volScalarField > rho() const
Density [kg/m^3].
virtual volScalarField & he()
Enthalpy/Internal energy [J/kg].
virtual bool read()
Read object.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual ~solidDisplacementThermo()
Destructor.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
virtual tmp< scalarField > THE(const scalarField &he, const scalarField &T0, const labelList &cells) const
Temperature from enthalpy/internal energy for cell-set.
virtual tmp< volScalarField > kappa() const
Thermal diffusivity for temperature of mixture [W/m/K].
GeometricField< scalar, fvPatchField, volMesh > volScalarField
stressControl lookup("compactNormalStress") >> compactNormalStress
solidDisplacementThermo(const fvMesh &, const word &phaseName=word::null)
Construct from mesh and phase name.
virtual tmp< volScalarField > hc() const
Enthalpy of formation [J/kg].
volScalarField rho_
Density field [kg/m^3].
virtual tmp< volScalarField > Cpv() const
Heat capacity at constant pressure/volume [J/kg/K].
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
virtual tmp< volScalarField > ha() const
Absolute enthalpy [J/kg/K].
virtual tmp< volScalarField > Cv() const
Heat capacity at constant volume [J/kg/K].
List< label > labelList
A List of labels.
const dimensionSet dimPressure
errorManip< error > abort(error &err)
virtual tmp< volScalarField > alphahe() const
Thermal diffusivity for energy of mixture [kg/m/s].
virtual tmp< volScalarField > alphaEff(const volScalarField &alphat) const
Effective thermal turbulent diffusivity of mixture [kg/m/s].
virtual const volScalarField & alphav() const
Volumetric thermal expansion coefficient [1/T].
virtual tmp< volVectorField > Kappa() const
Anisotropic thermal conductivity [W/m/K].
defineTypeNameAndDebug(combustionModel, 0)
virtual const volScalarField & E() const
Youngs modulus [Pa].
const dimensionSet dimEnergy
virtual const volScalarField & nu() const
Poisson's ratio [].
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
virtual tmp< volScalarField > Cp() const
Heat capacity at constant pressure [J/kg/K].
virtual void correct()
Update properties.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
A class for managing temporary objects.
virtual bool read()
Read thermophysicalProperties dictionary.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
virtual tmp< volScalarField > kappaEff(const volScalarField &) const
Effective thermal turbulent diffusivity for temperature.