Info<< "Reading field p\n"<< endl;volScalarField p(IOobject("p", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field Urel\n"<< endl;volVectorField Urel(IOobject("Urel", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading/calculating face flux field phi\n"<< 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, simple.dict(), pRefCell, pRefValue);mesh.setFluxRequired(p.name());Info<< "Creating SRF model\n"<< endl;autoPtr< SRF::SRFModel > SRF(SRF::SRFModel::New(Urel))
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
A class for handling words, derived from string.
static autoPtr< SRFModel > New(const volVectorField &Urel)
Return a reference to the selected SRF model.
A class for managing temporary objects.
dictionary SRFModelCoeffs_
SRF model coeficients dictionary.
virtual ~SRFModel()
Destructor.
tmp< volVectorField > Uabs() const
Return absolute velocity for complete mesh.
void operator=(const SRFModel &)
Disallow default bitwise assignment.
SRFModel(const SRFModel &)
Disallow default bitwise copy construct.
vectorField velocity(const vectorField &positions) const
Return velocity vector from positions.
tmp< DimensionedField< vector, volMesh > > Fcoriolis() const
Return the coriolis force.
Top level model for single rotating frame.
const fvMesh & mesh_
Reference to the mesh.
Pre-declare SubField and related Field type.
const vector & axis() const
Return the axis of rotation.
virtual bool read()
Read radiationProperties dictionary.
tmp< DimensionedField< vector, volMesh > > Su() const
Source term component for momentum equation.
A list of keyword definitions, which are a keyword followed by any number of values (e....
const dimensionedVector & omega() const
Return the angular velocity field [rad/s].
Generic dimensioned Type class.
Mesh data needed to do the Finite Volume discretisation.
dimensionedVector omega_
Angular velocity of the frame (rad/s)
declareRunTimeSelectionTable(autoPtr, SRFModel, dictionary,(const volVectorField &Urel),(Urel))
const dimensionedVector & origin() const
Return the origin of rotation.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
dimensionedVector origin_
Origin of the axis.
TypeName("SRFModel")
Runtime type information.
Macros to ease declaration of run-time selection tables.
const volVectorField & Urel_
Reference to the relative velocity field.
vector axis_
Axis of rotation, a direction vector which passes through the origin.
tmp< DimensionedField< vector, volMesh > > Fcentrifugal() const
Return the centrifugal force.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
Generic GeometricField class.
tmp< volVectorField > U() const
Return velocity of SRF for complete mesh.