81 rho_(
dict.get<scalar>(
"rho")),
82 Cp_(
dict.get<scalar>(
"Cp")),
83 kappa_(
dict.getCompat<scalar>(
"kappa", {{
"K", 1612}})),
85 emissivity_(
dict.
get<scalar>(
"emissivity")),
91 dict.readIfPresent(
"nu", nu_);
92 dict.readIfPresent(
"E", E_);
105 rho_ =
dict.get<scalar>(
"rho");
110 Hf_ =
dict.get<scalar>(
"Hf");
111 W_ =
dict.get<scalar>(
"W");
116 dict.readIfPresent(
"Hf", Hf_);
117 dict.readIfPresent(
"W", W_);
127 Cp_ =
dict.get<scalar>(
"Cp");
128 kappa_ =
dict.getCompat<scalar>(
"kappa", {{
"K", 1612}});
131 emissivity_ =
dict.get<scalar>(
"emissivity");
136 dict.readIfPresent(
"Cp", Cp_);
137 dict.readIfPresentCompat(
"kappa", {{
"K", 1612}}, kappa_);
138 dict.readIfPresent(
"emissivity", emissivity_);
148 nu_ =
dict.get<scalar>(
"nu");
149 E_ =
dict.get<scalar>(
"E");
153 dict.readIfPresent(
"nu", nu_);
163 dict.readIfPresent(
"rho", rho_);
164 dict.readIfPresent(
"Cp", Cp_);
165 dict.readIfPresentCompat(
"kappa", {{
"K", 1612}}, kappa_);
167 dict.readIfPresent(
"emissivity", emissivity_);
168 dict.readIfPresent(
"W", W_);
169 dict.readIfPresent(
"nu", nu_);
170 dict.readIfPresent(
"E", E_);
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
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.
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry if present, and assign to T val. FatalIOError if it is found and the number of tokens i...
The thermophysical, mechanical properties of a solid.
solidProperties() noexcept
Default construct.
virtual void writeData(Ostream &os) const
Write the solidProperties properties.
scalar kappa() const noexcept
Thermal conductivity [W/(m.K)].
scalar E() const noexcept
Young modulus [N/m2].
categories
Simple categories of solid properties.
@ MECHANICAL
Needs mechanical only [E, nu].
@ THERMAL
Needs thermal only [Cp, kappa, emissivity?].
@ REGULAR
thermal: mandatory, mechanical: optional
scalar Cp() const
Specific heat capacity [J/(kg.K)].
scalar W() const noexcept
Molar weight [Kg/Kmol].
scalar nu() const noexcept
Poisson ratio.
scalar rho() const noexcept
Density [kg/m3].
scalar emissivity() const noexcept
Emissivity [].
scalar Hf() const noexcept
Heat of formation [J/kg].
void readIfPresent(const dictionary &dict)
Read and set the properties if present in the given dictionary.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
const volScalarField & Cp
OBJstream os(runTime.globalPath()/outputName)
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.