38 #ifndef solidProperties_H 39 #define solidProperties_H 154 inline scalar
rho()
const;
157 inline scalar
Cp()
const;
160 inline scalar
kappa()
const;
163 inline scalar
Hf()
const;
166 inline scalar
Hs(
const scalar
T)
const;
172 inline scalar
W()
const;
175 inline scalar
nu()
const;
178 inline scalar
E()
const;
scalar E() const
Young modulus [N/m2].
scalar Cp() const
Specific heat capacity [J/(kg.K)].
scalar rho() const
Density [kg/m3].
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual ~solidProperties()=default
Destructor.
solidProperties(scalar rho, scalar Cp, scalar kappa, scalar Hf, scalar emissivity, scalar W, scalar nu, scalar E)
Construct from components.
scalar emissivity() const
Emissivity [].
virtual void writeData(Ostream &os) const
Write the solidProperties properties.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
scalar Hf() const
Heat of formation [J/kg].
void readIfPresent(const dictionary &dict)
Read and set the properties if present in the given dictionary.
friend Ostream & operator<<(Ostream &os, const solidProperties &s)
Ostream Operator.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual autoPtr< solidProperties > clone() const
Construct and return clone.
OBJstream os(runTime.globalPath()/outputName)
scalar nu() const
Poissons.
scalar W() const
Molar weight [Kg/Kmol].
scalar kappa() const
Thermal conductivity [W/(m.K)].
scalar Hs(const scalar T) const
Sensible enthalpy - reference to Tstd [J/kg].
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
TypeName("solid")
Runtime type information.
declareRunTimeSelectionTable(autoPtr, solidProperties,,(),())
The thermophysical properties of a solid.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Macros to ease declaration of run-time selection tables.
static autoPtr< T > New(Args &&... args)
Construct autoPtr with forwarding arguments.
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))
static autoPtr< solidProperties > New(const word &name)
Return a pointer to a new solidProperties created from name.