35 namespace extrudeModels
50 RTbyg_(coeffDict_.
get<scalar>(
"RTbyg")),
51 pRef_(coeffDict_.
get<scalar>(
"pRef")),
52 pStrat_(coeffDict_.
get<scalar>(
"pStrat"))
57 <<
"Ignoring expansionRatio setting." <<
endl;
64 point sigmaRadial::operator()
66 const point& surfacePoint,
67 const vector& surfaceNormal,
72 scalar rs =
mag(surfacePoint);
73 vector rsHat = surfacePoint/rs;
75 scalar
p = pRef_ - layer*(pRef_ - pStrat_)/nLayers_;
76 scalar r = rs - RTbyg_*
log(
p/pRef_);
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
dimensionedScalar log(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Ostream & endl(Ostream &os)
Add newline and flush stream.
sigmaRadial(const dictionary &dict)
Construct from dictionary.
defineTypeNameAndDebug(cyclicSector, 0)
Macros for easy insertion into run-time selection tables.
Top level extrusion model class.
Extrudes into sphere with grading according to pressure (atmospherics)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
addToRunTimeSelectionTable(extrudeModel, cyclicSector, dictionary)
#define WarningInFunction
Report a warning using Foam::Warning.
scalar expansionRatio() const
Return the expansion ratio.