54 SRFModel(typeName,
U),
55 rpm_(SRFModelCoeffs_.
get<scalar>(
"rpm"))
68 SRFModelCoeffs_.readEntry(
"rpm", rpm_);
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
const Type & value() const noexcept
Return const reference to value.
defineTypeNameAndDebug(rpm, 0)
addToRunTimeSelectionTable(SRFModel, rpm, dictionary)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
constexpr scalar rpmToRads(const scalar rpm) noexcept
Conversion from revolutions/minute to radians/sec.
Unit conversion functions.
Macros for easy insertion into run-time selection tables.
dimensionedVector omega_
Angular velocity of the frame (rad/s)
bool read()
Read coefficients.
virtual bool read()
Read radiationProperties dictionary.
Basic SRF model whereby angular velocity is specified in terms of a (global) axis and revolutions-per...
vector axis_
Axis of rotation, a direction vector which passes through the origin.
Info<< "Reading field p\"<< endl;volScalarField p(IOobject("p", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field Urel\"<< endl;volVectorField Urel(IOobject("Urel", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading/calculating face flux field phi\"<< endl;surfaceScalarField phi(IOobject("phi", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), linearInterpolate(Urel) &mesh.Sf());label pRefCell=0;scalar pRefValue=0.0;setRefCell(p, pimple.dict(), pRefCell, pRefValue);mesh.setFluxRequired(p.name());Info<< "Creating SRF model\"<< endl;autoPtr< SRF::SRFModel > SRF(SRF::SRFModel::New(Urel))
Top level model for single rotating frame.