42 Foam::wordList Foam::parcelCloudList::cloudNames(
const objectRegistry& db)
44 typeIOobject<wordGlobalIOList> cloudNamesIO
53 if (cloudNamesIO.headerOk())
58 typeIOobject<IOdictionary> cloudIO
67 if (cloudIO.headerOk())
73 <<
"Cloud properties were not found in either "
74 << cloudNamesIO.relativeObjectPath() <<
" or "
163 cloudNamesName +
":alpha",
171 ttheta.
ref() += operator[](i).alpha();
185 tSU.
ref() += operator[](i).SU(
U);
197 cloudNamesName +
":UTrans",
204 tUTrans.
ref() += operator[](i).UTrans();
216 cloudNamesName +
":UCoeff",
223 tUCoeff.
ref() += operator[](i).UCoeff();
237 tSh.
ref() += operator[](i).Sh(
hs);
249 cloudNamesName +
":hsTrans",
256 thsTrans.
ref() += operator[](i).hsTrans();
268 cloudNamesName +
":hsCoeff",
275 thsCoeff.
ref() += operator[](i).hsCoeff();
287 cloudNamesName +
":radiation:Ep",
294 tEp.
ref() += operator[](i).Ep();
306 cloudNamesName +
":radiation:ap",
313 tap.
ref() += operator[](i).ap();
326 cloudNamesName +
":radiation:sigmap",
333 tsigmap.
ref() += operator[](i).sigmap();
348 tSYi.
ref() += operator[](i).SYi(speciei, Yi);
362 tSrho.
ref() += operator[](i).Srho(
rho);
374 cloudNamesName +
":Srho",
381 tSrho.
ref() += operator[](i).Srho();
391 operator[](i).info();
400 operator[](i).evolve();
409 if (
operator[](i).coupled())
422 operator[](i).storeGlobalPositions();
431 operator[](i).topoChange(map);
440 operator[](i).mapMesh(map);
449 operator[](i).distribute(map);
scalar hs(const scalar p, const scalar T) const
#define forAll(list, i)
Loop across all elements in list.
static tmp< DimensionedField< Type, GeoMesh, PrimitiveField > > New(const word &name, const GeoMesh &mesh, const dimensionSet &, const PrimitiveField< Type > &)
Return a temporary field constructed from name, mesh,.
Generic GeometricField class.
static tmp< GeometricField< Type, GeoMesh, PrimitiveField > > New(const word &name, const Internal &, const PtrList< Patch > &, const HashPtrTable< Source > &=HashPtrTable< Source >())
Return a temporary field constructed from name,.
void size(const label)
Override size to be inconsistent with allocated storage.
static const List< word > & null()
Return a null List.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
bool set(const label) const
Is element set.
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
Base-class for fluid thermodynamic properties.
List of parcel clouds, with the same interface as an individual parcel cloud. This is the object that...
static const wordList defaultCloudNames
The default cloud names (i.e., a list of length one with the.
tmp< fvScalarMatrix > Sh(const volScalarField &hs) const
Return sensible enthalpy source term [J/s].
tmp< volScalarField::Internal > UCoeff() const
Momentum transfer coefficient [kg].
tmp< volVectorField::Internal > UTrans() const
Momentum transfer [kg m/s].
~parcelCloudList()
Destructor.
const tmp< volScalarField > alpha() const
Return the particle volume fraction field.
void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
tmp< fvScalarMatrix > SYi(const label speciei, const volScalarField &Yi) const
Return mass source term for specie [kg/s].
void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
tmp< volScalarField > sigmap() const
Return equivalent particulate scattering factor [1/m].
void evolve()
Evolve the cloud.
parcelCloudList(const wordList &cloudNames, const volScalarField &rho, const volVectorField &U, const volScalarField &mu, const dimensionedVector &g)
Construct specified clouds with given carrier fields.
tmp< volScalarField::Internal > hsCoeff() const
Sensible enthalpy transfer coefficient [J/K].
static const word defaultCloudName
The default cloud name.
bool coupled()
Does this cloud provide source terms to the carrier?
void info()
Print cloud information.
tmp< fvVectorMatrix > SU(const volVectorField &U) const
Return momentum source term [kg m/s^2].
tmp< volScalarField::Internal > Srho() const
Return total mass source [kg/m^3/s].
void storeGlobalPositions()
Call this before a topology change. Stores the particles global.
tmp< volScalarField > Ep() const
Return equivalent particulate emission [kg/m/s^3].
tmp< volScalarField::Internal > hsTrans() const
Sensible enthalpy transfer [J].
static const word cloudNamesName
The name of the clouds file in which multiple cloud names are.
tmp< volScalarField > ap() const
Return equivalent particulate absorption [1/m].
Virtual abstract base class for parcel clouds. As parcelCloudBase but with additional virtualisation ...
static autoPtr< parcelCloud > New(const word &name, const volScalarField &rho, const volVectorField &U, const volScalarField &mu, const dimensionedVector &g)
Selectors.
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 managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
const dimensionedScalar mu
Atomic mass unit.
errorManipArg< error, int > exit(error &err, const int errNo=1)
List< word > wordList
A List of words.
const dimensionSet & dimless
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const dimensionSet & dimMass
fvMatrix< scalar > fvScalarMatrix
const dimensionSet & dimLength
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
GlobalIOList< word > wordGlobalIOList
const dimensionSet & dimVelocity
const dimensionSet & dimTime
fvMatrix< vector > fvVectorMatrix
const dimensionSet & dimAcceleration
const dimensionSet & dimDensity
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
void pow3(LagrangianPatchField< scalar > &f, const LagrangianPatchField< scalar > &f1)
const dimensionSet & dimEnergy
const dimensionSet & dimTemperature
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.