40 LagrangianVectorFieldSource(iIo,
dict),
49 iIo.time().userUnits(),
59 clouds::coupled::carrierName(
"rho"),
67 clouds::coupled::carrierName(
"p"),
81 LagrangianVectorFieldSource(field, iIo),
84 dict_(field.dict_, false),
85 direction_(field.direction_, false),
86 p0_(field.p0_, false),
87 rhocName_(field.rhocName_),
88 pcName_(field.pcName_)
138 value(injection, subMesh, pcVf.
dimensions(), p0_())
159 >(injection, subMesh);
161 if (isCloud<clouds::coupledToIncompressibleFluid>())
185 <<
"Dimensions of field " << pcVf.
name()
186 <<
" not recognised as pressure"
201 dict_->write(os,
false);
209 writeEntryIfDifferent<word>
216 writeEntryIfDifferent<word>
233 LagrangianVectorFieldSource,
Macros for easy insertion into run-time selection tables.
Templated base class for source conditions that refer to a cloud. Not a source condition in itself....
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet & dimensions() const
Return dimensions.
Mix-in for source conditions that provides functions for evaluating Function1s at variable times.
Run-time selectable general function of one variable.
static autoPtr< Function1< Type > > New(const word &name, const Function1s::unitConversions &units, const dictionary &dict)
Select from dictionary.
Generic GeometricField class.
const word & name() const
Return name.
Base class for Lagrangian injections. Minimal wrapper over LagrangianSource. Implements some utility ...
const Time & time() const
Return time.
const polyMesh & mesh() const
Access the mesh.
Mesh that relates to a sub-section of a Lagrangian mesh. This is used to construct fields that relate...
const LagrangianMesh & mesh() const
Return the mesh.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const unitConversion & userUnits() const
Return the user-time unit conversion.
Base class for clouds. Provides a basic evolution algorithm, models, and a database for caching deriv...
Base class for clouds which are coupled to an incompressible fluid.
const dimensionedScalar rhoByRhoc
Cloud/carrier density ratio.
static word carrierName(const word &name)
Modify a name to disambiguate it as relating to the carrier.
Base class for clouds with particles with mass.
CloudStateField< scalar > & rho
Density.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type and name.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
A class for managing temporary objects.
This source condition provides a velocity in a given direction with a magnitude calculated from the d...
virtual tmp< LagrangianSubVectorField > value(const LagrangianInjection &, const LagrangianSubMesh &) const
Return the value for an instantaneous injection.
virtual void write(Ostream &) const
Write.
virtual ~totalPressureVelocityLagrangianVectorFieldSource()
Destructor.
totalPressureVelocityLagrangianVectorFieldSource(const regIOobject &, const dictionary &dict)
Construct from internal field and dictionary.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const dimensionSet dimPressure
const dimensionSet dimKinematicPressure
const dimensionSet dimless
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
dimensionSet normalised(const dimensionSet &)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
void sqrt(LagrangianPatchField< scalar > &f, const LagrangianPatchField< scalar > &f1)
makeLagrangianTypeFieldSource(LagrangianVectorFieldSource, coneDiskVelocityLagrangianVectorFieldSource)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.