39 namespace functionObjects
88 if (!forceFields_.valid())
96 if (&otherPhase == &phase)
continue;
102 forceFields_().insert
121 forceFields_().insert
144 forceFields_().insert
169 forceFields_().insert
178 "wallLubricationForce",
198 forceFields_().insert
207 "turbulentDispersionForce",
229 *forceFieldIter() =
Zero;
237 if (&otherPhase == &phase)
continue;
245 *interface.
Ur(otherPhase);
255 *interface.
DUDtr(otherPhase);
261 (&interface.
phase1() == &phase ? -1 : +1)
274 (&interface.
phase1() == &phase ? -1 : +1)
315 writeObject(forceFieldIter()->
name());
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Macros for easy insertion into run-time selection tables.
Generic GeometricField class.
A HashTable specialisation for hashing pointers.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
static word groupName(Name name, const word &group)
autoPtr< T > set(const label, const word &key, T *)
Set element to pointer provided and return old element.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
tmp< volVectorField > F() const
Return lift force.
tmp< volVectorField > F() const
Return wall lubrication force.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Abstract base-class for Time/database functionObjects.
Specialisation of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
virtual bool read(const dictionary &)
Read optional controls.
This functionObject calculates and outputs the blended interfacial forces acting on a given phase,...
virtual bool read(const dictionary &dict)
Read the input data.
phaseForces(const word &name, const Time &runTime, const dictionary &)
Construct from Time and dictionary.
virtual ~phaseForces()
Destructor.
virtual bool execute()
Calculate the force fields.
virtual bool write()
Write the force fields.
Class to represent an interface between phases. Derivations can further specify the configuration of ...
tmp< volVectorField > DUDtr(const phaseModel &phase) const
Convective acceleration of the phase relative to the other phase.
tmp< volVectorField > Ur(const phaseModel &phase) const
Velocity of the phase relative to the other phase.
const phaseModel & phase1() const
Return phase 1.
const dimensionedScalar & residualAlpha() const
Return the residual phase-fraction for given phase.
Class to represent a system of phases.
bool foundInterfacialModel(const phaseInterface &interface) const
Check availability of a sub model for a given interface.
static const word propertiesName
Default name of the phase properties dictionary.
const phaseModelList & phases() const
Return the phase models.
const ModelType & lookupInterfacialModel(const phaseInterface &interface) const
Return a sub model for an interface.
A class for handling words, derived from string.
Calculate the gradient of the given field.
defineTypeNameAndDebug(fvMeshFunctionObject, 0)
addToRunTimeSelectionTable(functionObject, fvModel, dictionary)
tmp< VolField< typename outerProduct< vector, Type >::type > > grad(const SurfaceField< Type > &ssf)
static const coefficient D("D", dimTemperature, 257.14)
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
const dimensionSet & dimForce
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
const dimensionSet & dimVolume
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
dimensioned< Type > max(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)