82 taqr.ref().primitiveFieldRef()
122 const word& modelType,
128 hName_(
dict.getOrDefault<
word>(
"h", suffixed(
"h"))),
129 qsName_(
dict.getOrDefault<
word>(
"qs", suffixed(
"qs"))),
130 qrName_(
dict.getOrDefault<
word>(
"qr",
"none")),
140 regionMesh().thisDb(),
152 regionMesh().thisDb(),
159 thickness_(
dict.getOrDefault<scalar>(
"thickness", 0))
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
static tmp< GeometricField< scalar, faPatchField, areaMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const word &patchFieldType=faPatchField< scalar >::calculatedType())
Internal & ref(const bool updateAccessTime=true)
Same as internalFieldRef().
@ NO_REGISTER
Do not request registration (bool: false).
@ READ_IF_PRESENT
Reading is optional [identical to LAZY_READ].
@ MUST_READ
Reading required.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
@ AUTO_WRITE
Automatically write from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const word & name() const noexcept
Return the object name.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T. FatalIOError if not found, or if the number of tokens is incorrect.
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, IOobjectOption::readOption readOpt=IOobjectOption::MUST_READ) const
Find entry and assign to T val. FatalIOError if it is found and the number of tokens is incorrect,...
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T, or return the given default value. FatalIOError if it is found and the number of...
static const word & zeroGradientType() noexcept
The type name for zeroGradient patch fields.
void correct(GeometricField< Type, faPatchField, areaMesh > &field)
Apply correction to field.
void constrain(faMatrix< Type > &eqn)
Apply constraints to equation.
Mesh data needed to do the Finite Volume discretisation.
const Type & lookupObject(const word &name, const bool recursive=false) const
Lookup and return const reference to the object of the given Type. Fatal if not found or the wrong ty...
const dictionary & solution() const
Return the solution dictionary.
word suffixed(const char *base) const
Return the concatenation of base and the suffix hint.
const Time & time() const noexcept
Return the reference to the time database.
const volSurfaceMapping & vsm() const
Return mapping between surface and volume fields.
const faMesh & regionMesh() const
Return the region mesh database.
const fvMesh & primaryMesh() const noexcept
Return the reference to the primary mesh database.
Intermediate class for thermal-shell finite-area models.
thermalShellModel(const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from type name and mesh and dict.
areaScalarField T_
Shell temperature.
Foam::fa::options & faOptions() noexcept
Return faOptions.
thermalShell(const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from components and dict.
areaScalarField h_
Shell thickness field [m].
const tmp< areaScalarField > rho() const
Return density [kg/m3].
scalar thickness_
Uniform shell thickness [m].
const word qsName_
Name of surface energy source (default: "qs" + suffix).
void solveEnergy()
Solve energy equation.
areaScalarField qs_
External surface energy source [J/m2/s].
const word qrName_
Name of (volume) radiative flux field (default: none).
virtual void preEvolveRegion()
Pre-evolve thermal baffle.
solidProperties thermo_
Solid properties.
const tmp< areaScalarField > Cp() const
Return the shell specific heat capacity [J/kg/K].
const word hName_
Name of shell thickness [height] field (default: "hs" + suffix).
virtual void info()
Provide some feedback.
label nNonOrthCorr_
Number of non orthogonal correctors.
const tmp< areaScalarField > kappa() const
Return thermal conductivity [W/m/K].
virtual void evolveRegion()
Evolve the thermal baffle.
The thermophysical, mechanical properties of a solid.
A class for managing temporary objects.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
void mapToSurface(const GeometricBoundaryField< Type, fvPatchField, volMesh > &, Field< Type > &result) const
Map volume boundary fields as area field.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Namespace of functions to calculate implicit derivatives returning a matrix. Time derivatives are cal...
fvScalarMatrix TEqn(fvm::ddt(T)+fvm::div(phi, T) - fvm::laplacian(alphaEff, T)==radiation->ST(rhoCpRef, T)+fvOptions(T))
#define DebugInFunction
Report an information message using Foam::Info.
tmp< faMatrix< Type > > laplacian(const GeometricField< Type, faPatchField, areaMesh > &vf)
tmp< faMatrix< Type > > ddt(const GeometricField< Type, faPatchField, areaMesh > &vf)
const dimensionSet dimPower
const dimensionSet dimEnergy
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const dimensionSet dimArea(sqr(dimLength))
faMatrix< scalar > faScalarMatrix
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
GeometricField< scalar, faPatchField, areaMesh > areaScalarField
MinMax< Type > gMinMax(const FieldField< Field, Type > &f)
static constexpr const zero Zero
Global zero (0).
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet dimDensity
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)