45 sixDoFAccelerationSource,
46 "sixDoFAccelerationSource"
54 void Foam::fv::sixDoFAcceleration::readCoeffs(
const dictionary&
dict)
56 UName_ =
dict.lookupOrDefault<word>(
"U",
"U");
63 mesh().time().userUnits(),
69 angularVelocity_.reset
74 mesh().time().userUnits(),
80 angularAcceleration_.reset
84 "angularAcceleration",
85 mesh().time().userUnits(),
93 template<
class AlphaFieldType,
class RhoFieldType>
94 void Foam::fv::sixDoFAcceleration::addForce
96 const AlphaFieldType&
alpha,
97 const RhoFieldType&
rho,
106 acceleration_->value(
mesh().time().value())
110 if (
mesh().foundObject<uniformDimensionedVectorField>(
"g"))
125 (g &
mesh().
Cf()) - ghRef;
137 angularVelocity_->value(
mesh().time().value())
144 angularAcceleration_->value(
mesh().time().value())
161 const word& modelType,
167 UName_(
dict.lookupOrDefault<
word>(
"U",
"U")),
168 acceleration_(nullptr),
169 angularVelocity_(nullptr),
170 angularAcceleration_(nullptr),
245 readCoeffs(coeffs(
dict));
Macros for easy insertion into run-time selection tables.
static autoPtr< Function1< Type > > New(const word &name, const Function1s::unitConversions &units, const dictionary &dict)
Select from dictionary.
Generic GeometricField class.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Mesh data needed to do the Finite Volume discretisation.
const volVectorField & C() const
Return cell centres.
const surfaceVectorField & Cf() const
Return face centres.
Finite volume model abstract base class.
static const dictionary & coeffs(const word &modelType, const dictionary &)
Return the coefficients sub-dictionary for a given model type.
virtual bool read(const dictionary &dict)
Read source dictionary.
const fvMesh & mesh() const
Return const access to the mesh database.
Solid-body 6-DoF acceleration source.
virtual bool movePoints()
Update for mesh motion.
virtual void addSup(const volVectorField &U, fvMatrix< vector > &eqn) const
Source term to momentum equation.
virtual wordList addSupFields() const
Return the list of fields for which the fvModel adds source term.
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
virtual bool read(const dictionary &dict)
Read dictionary.
sixDoFAcceleration(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from components.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
A class representing the concept of a GeometricField of 1 used to avoid unnecessary manipulations for...
Type & lookupObjectRef(const word &name) const
Lookup and return the object reference of the given Type.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type and name.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
A special matrix type and solver, designed for finite volume solutions of scalar equations.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
addToRunTimeSelectionTable(fvConstraint, bound, dictionary)
defineTypeNameAndDebug(bound, 0)
addBackwardCompatibleToRunTimeSelectionTable(fvConstraint, fixedTemperature, dictionary, fixedTemperatureConstraint, "fixedTemperatureConstraint")
static const coefficient C("C", dimTemperature, 234.5)
List< word > wordList
A List of words.
VolField< vector > volVectorField
UniformDimensionedField< scalar > uniformDimensionedScalarField
const dimensionSet dimless
SurfaceField< scalar > surfaceScalarField
const dimensionSet dimAcceleration
void mag(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)
const dimensionSet dimTime
UniformDimensionedField< vector > uniformDimensionedVectorField
VolField< scalar > volScalarField
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
void sqr(LagrangianPatchField< typename outerProduct< Type, Type >::type > &f, const LagrangianPatchField< Type > &f1)
const unitConversion unitRadians
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.