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();
189 tSU.
ref() += operator[](i).SU(
U);
202 cloudNamesName +
":UTrans",
209 tUTrans.
ref() += operator[](i).UTrans();
221 cloudNamesName +
":UCoeff",
228 tUCoeff.
ref() += operator[](i).UCoeff();
242 tSh.
ref() += operator[](i).Sh(
hs);
254 cloudNamesName +
":hsTrans",
261 thsTrans.
ref() += operator[](i).hsTrans();
273 cloudNamesName +
":hsCoeff",
280 thsCoeff.
ref() += operator[](i).hsCoeff();
292 cloudNamesName +
":radiation:Ep",
305 tEp.
ref() += operator[](i).Ep();
317 cloudNamesName +
":radiation:ap",
324 tap.
ref() += operator[](i).ap();
337 cloudNamesName +
":radiation:sigmap",
344 tsigmap.
ref() += operator[](i).sigmap();
363 tSYi.
ref() += operator[](i).SYi(speciei, Yi);
383 tSrho.
ref() += operator[](i).Srho(
rho);
396 cloudNamesName +
":Srho",
403 tSrho.
ref() += operator[](i).Srho();
413 operator[](i).info();
422 operator[](i).evolve();
431 if (
operator[](i).coupled())
444 operator[](i).storeGlobalPositions();
453 operator[](i).topoChange(map);
462 operator[](i).mapMesh(map);
471 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.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
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.
const dimensionSet density
const dimensionSet dimless
const dimensionSet length
const dimensionSet momentum
errorManipArg< error, int > exit(error &err, const int errNo=1)
List< word > wordList
A List of words.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
fvMatrix< scalar > fvScalarMatrix
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
GlobalIOList< word > wordGlobalIOList
fvMatrix< vector > fvVectorMatrix
const dimensionSet & dimAcceleration
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.