44#ifndef InflationInjection_H
45#define InflationInjection_H
69template<
class CloudType>
77 word generationSetName_;
80 word inflationSetName_;
104 scalar volumeAccumulator_;
165 virtual scalar
volumeToInject(
const scalar time0,
const scalar time1);
174 const label nParcels,
186 const label nParcels,
const CloudType & owner() const
Return const access to the owner cloud.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
virtual autoPtr< InjectionModel< CloudType > > clone() const
Construct and return a clone.
virtual scalar volumeToInject(const scalar time0, const scalar time1)
Volume of parcels to introduce relative to SOI.
virtual label parcelsToInject(const scalar time0, const scalar time1)
Number of parcels to introduce relative to SOI.
InflationInjection(const dictionary &dict, CloudType &owner, const word &modelName)
Construct from dictionary.
virtual void setPositionAndCell(const label parcelI, const label nParcels, const scalar time, vector &position, label &cellOwner, label &tetFacei, label &tetPti)
Set the injection position and owner cell, tetFace and tetPt.
virtual bool validInjection(const label parcelI)
Return flag to identify whether or not injection of parcelI is.
virtual void setProperties(const label parcelI, const label nParcels, const scalar time, typename CloudType::parcelType &parcel)
Set the parcel properties.
virtual ~InflationInjection()
Destructor.
TypeName("inflationInjection")
Runtime type information.
virtual void updateMesh()
Set injector locations when mesh is updated.
virtual bool fullyDescribed() const
Flag to identify whether model fully describes the parcel.
scalar timeEnd() const
Return the end-of-injection time.
InjectionModel(CloudType &owner)
Construct null from owner.
An ordered pair of two objects of type <T> with first() and second() elements.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
A 2-tuple for storing two objects of dissimilar types. The container is similar in purpose to std::pa...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const dictionary & dict() const
Return const access to the cloud dictionary.
const word & modelName() const
Return const access to the name of the sub-model.
A class for handling words, derived from Foam::string.
DSMCCloud< dsmcParcel > CloudType
List< label > labelList
A List of labels.
Tuple2< Pair< vector >, Pair< scalar > > vectorPairScalarPair
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.