45Foam::SRF::SRFModel::SRFModel
85 readEntry(
"origin", origin_);
88 readEntry(
"axis", axis_);
92 SRFModelCoeffs_ = optionalSubDict(
type() +
"Coeffs");
180 omega_ ^ (relPos() - axis_*(axis_ & relPos()))
199 auto& Uabs = tUabs.ref();
202 Uabs.primitiveFieldRef() += Urel_.primitiveField();
218 Uabsbf[i] += Urel_.boundaryField()[i];
223 Uabsbf[i] += Urel_.boundaryField()[i];
static int localBoundaryConsistency() noexcept
Get flag for local boundary consistency checks.
static tmp< GeometricField< vector, fvPatchField, volMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const word &patchFieldType=fvPatchField< vector >::calculatedType())
GeometricBoundaryField< vector, fvPatchField, volMesh > Boundary
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
IOdictionary(const IOobject &io, const dictionary *fallback=nullptr)
Construct given an IOobject and optional fallback dictionary content.
@ NO_REGISTER
Do not request registration (bool: false).
@ REGISTER
Request registration (bool: true).
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const Time & time() const noexcept
Return Time associated with the objectRegistry.
const objectRegistry & db() const noexcept
Return the local objectRegistry.
Velocity condition to be used in conjunction with the single rotating frame (SRF) model (see: SRFMode...
bool relative() const
Is supplied inlet value relative to the SRF?
Top level model for single rotating frame.
tmp< volVectorField::Internal > Fcentrifugal() const
Return the centrifugal force.
tmp< volVectorField > Uabs() const
Return absolute velocity for complete mesh.
dimensionedVector omega_
Angular velocity of the frame (rad/s).
const fvMesh & mesh_
Reference to the mesh.
tmp< volVectorField::Internal > Su() const
Source term component for momentum equation.
vector axis_
Axis of rotation, a direction vector which passes through the origin.
dictionary SRFModelCoeffs_
SRF model coefficients dictionary.
const dimensionedVector & origin() const
Return the origin of rotation.
vectorField velocity(const vectorField &positions) const
Return velocity vector from positions.
tmp< volVectorField::Internal > Fcoriolis() const
Return the coriolis force.
tmp< volVectorField > U() const
Return velocity of SRF for complete mesh.
dimensionedVector origin_
Origin of the axis.
const vector & axis() const
Return the axis of rotation.
const dimensionedVector & omega() const
Return the angular velocity field [rad/s].
const volVectorField & Urel_
Reference to the relative velocity field.
virtual ~SRFModel()
Destructor.
virtual bool read()
Read radiationProperties dictionary.
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.
const dictionary & optionalSubDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary, otherwise return this dictionary.
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, IOobjectOption::readOption readOpt=IOobjectOption::MUST_READ) const
Find entry and assign to T val. FatalIOError if it is found and the number of tokens is incorrect,...
dictionary()
Default construct, a top-level empty dictionary.
virtual bool read()
Read object.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Namespace for single rotating frame (SRF) models.
Different types of constants.
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
GeometricField< vector, fvPatchField, volMesh > volVectorField
const dimensionSet dimless
Dimensionless.
quaternion normalised(const quaternion &q)
Return the normalised (unit) quaternion of the given quaternion.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
const Type * isA(const U &obj)
Attempt dynamic_cast to Type.
Field< vector > vectorField
Specialisation of Field<T> for vector.
static constexpr const zero Zero
Global zero (0).
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.
#define forAll(list, i)
Loop across all elements in list.