44 solidEquilibriumEnergySource,
45 "solidEquilibriumEnergySource"
53 void Foam::fv::solidThermalEquilibrium::readCoeffs(
const dictionary&
dict)
57 solidPhaseName_ =
dict.lookup<word>(
"solidPhase");
62 Foam::fv::solidThermalEquilibrium::solidAlpha()
const
66 if (!
mesh().foundObject<volScalarField>(alphaName))
74 mesh().time().constant(),
90 Foam::fv::solidThermalEquilibrium::solidThermo()
const
92 const word thermoName =
95 if (!
mesh().foundObject<Foam::solidThermo>(thermoName))
112 const word& modelType,
118 phaseName_(
word::null),
119 solidPhaseName_(
word::null)
169 "laplacian(" + alphahe.
name() +
"," + eqn.
psi().name() +
")"
197 "laplacian(" + alphahe.
name() +
"," + eqn.
psi().name() +
")"
230 readCoeffs(coeffs(
dict));
Macros for easy insertion into run-time selection tables.
Generic GeometricField class.
const word & name() const
Return name.
static word groupName(Name name, const word &group)
Base-class for fluid and solid thermodynamic properties.
virtual const IOdictionary & properties() const =0
Properties dictionary.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Mesh data needed to do the Finite Volume discretisation.
Finite volume model abstract base class.
virtual bool read(const dictionary &dict)
Read source dictionary.
This fvModel adds the thermal inertia of a solid phase into the energy equation. It assumes that the ...
virtual bool movePoints()
Update for mesh motion.
virtual wordList addSupFields() const
Return the list of fields for which the fvModel adds source term.
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
virtual bool read(const dictionary &dict)
Read dictionary.
virtual void addSup(const volScalarField &rho, const volScalarField &he, fvMatrix< scalar > &eqn) const
Explicit and implicit sources for compressible equations.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
solidThermalEquilibrium(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from components.
virtual ~solidThermalEquilibrium()
Destructor.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type and name.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
void store()
Transfer ownership of this object to its registry.
Base-class for solid thermodynamic properties.
static autoPtr< solidThermo > New(const fvMesh &, const word &phaseName=word::null)
Standard selection based on fvMesh.
A class for handling words, derived from string.
static const word null
An empty word.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
Calculate the matrix for the first temporal derivative.
Calculate the matrix for the laplacian of the field.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
addToRunTimeSelectionTable(fvConstraint, bound, dictionary)
defineTypeNameAndDebug(bound, 0)
addBackwardCompatibleToRunTimeSelectionTable(fvConstraint, fixedTemperature, dictionary, fixedTemperatureConstraint, "fixedTemperatureConstraint")
tmp< fvMatrix< Type > > laplacian(const VolField< Type > &vf, const word &name)
tmp< fvMatrix< Type > > ddt(const VolField< Type > &vf)
static const coefficient B("B", dimless, 18.678)
static const coefficient A("A", dimPressure, 611.21)
List< word > wordList
A List of words.
VolField< scalar > volScalarField
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
fluidMulticomponentThermo & thermo