47 sixDoFAccelerationSource,
48 "sixDoFAccelerationSource"
100 void Foam::fv::sixDoFAcceleration::readCoeffs()
109 mesh().time().userUnits(),
117 template<
class AlphaFieldType,
class RhoFieldType>
118 void Foam::fv::sixDoFAcceleration::addForce
120 const AlphaFieldType&
alpha,
121 const RhoFieldType&
rho,
123 fvMatrix<vector>& eqn
126 const Vector<vector> accelerations
128 accelerations_->value(mesh().time().value())
132 if (mesh().foundObject<uniformDimensionedVectorField>(
"g"))
144 mesh().lookupObjectRef<
volScalarField>(
"gh") = (g & mesh().C()) - ghRef;
147 (g & mesh().Cf()) - ghRef;
159 dimensionSet(0, 0, -1, 0, 0),
166 dimensionSet(0, 0, -2, 0, 0),
173 +
alpha*
rho*(Omega ^ (Omega ^ mesh().
C()))
184 const word& modelType,
190 UName_(coeffs().lookupOrDefault<
word>(
"U",
"U")),
191 accelerations_(nullptr),
static const Foam::dimensionedScalar C("C", Foam::dimTemperature, 234.5)
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.
static const char *const componentNames[]
static const Form rootMax
static const Form rootMin
static Form uniform(const Cmpt &s)
Return a VectorSpace with all elements = s.
static const char *const typeName
A list of keyword definitions, which are a keyword followed by any number of values (e....
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T, if not found return the given default.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Mesh data needed to do the Finite Volume discretisation.
Finite volume model abstract base class.
const dictionary & coeffs() const
Return dictionary.
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...
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.
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")
List< word > wordList
A List of words.
VolField< vector > volVectorField
word name(const bool)
Return a word representation of a bool.
UniformDimensionedField< scalar > uniformDimensionedScalarField
SurfaceField< scalar > surfaceScalarField
const dimensionSet dimAcceleration
const unitConversion unitNone
UniformDimensionedField< vector > uniformDimensionedVectorField
VolField< scalar > volScalarField
dimensioned< scalar > mag(const dimensioned< Type > &)
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
makeFoamTableReaders(avType, nullArg)
makeFunction1s(avType, nullArg)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Foam::fv::sixDoFAcceleration::accelerationVectors avType