Go to the documentation of this file.
77 #ifndef InjectedParticleDistributionInjection_H
78 #define InjectedParticleDistributionInjection_H
94 template<
class CloudType>
165 TypeName(
"injectedParticleDistributionInjection");
210 virtual scalar
volumeToInject(
const scalar time0,
const scalar time1);
219 const label nParcels,
231 const label nParcels,
List< vectorList > position_
List of position per injector.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
virtual bool validInjection(const label parcelI)
Return flag to identify whether or not injection of parcelI is.
A class for handling words, derived from Foam::string.
scalarList endTime_
List of end time per injector.
virtual void updateMesh()
Set injector locations when mesh is updated.
scalar parcelsPerInjector_
Target number of parcels to inject per injector.
label resampleSize_
Resample size.
label currentSamplei_
Current sample.
void info(Ostream &os)
Write injection info to stream.
bool applyDistributionMassTotal_
Flag to apply mass calculated from distribution instead of.
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.
Templated injection model class.
scalarList startTime_
List of start time per injector.
InjectedParticleDistributionInjection(const dictionary &dict, CloudType &owner, const word &modelName)
Construct from dictionary.
virtual autoPtr< InjectionModel< CloudType > > clone() const
Construct and return a clone.
const word & modelName() const
Return const access to the name of the sub-model.
virtual void setProperties(const label parcelI, const label nParcels, const scalar time, typename CloudType::parcelType &parcel)
Set the parcel properties.
virtual label parcelsToInject(const scalar time0, const scalar time1)
Number of parcels to introduce relative to SOI.
const dictionary & dict() const
Return const access to the cloud dictionary.
PtrList< distributionModels::general > sizeDistribution_
List of size distribution model per injector.
TypeName("injectedParticleDistributionInjection")
Runtime type information.
void initialise()
Initialise injectors.
label nParcelsInjected_
Running total of number of parcels injected.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
virtual ~InjectedParticleDistributionInjection()
Destructor.
const CloudType & owner() const
Return const access to the owner cloud.
Templated base class for dsmc cloud.
label nParcelsInjected0_
Number of parcels injected in last step (local proc only)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
List< vectorList > U_
List of parcel velocity per injector.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
scalar binWidth_
Bin width when generating particle distributions.
Interrogates an injectedParticleCloud to convert the raw particle data into a set of 'binned' injecto...
const word cloudName_
Name of cloud used to seed the new particles.
Switch ignoreOutOfBounds_
Flag to suppress errors if particle injection site is out-of-bounds.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
label currentInjectori_
Current injector.
virtual bool fullyDescribed() const
Flag to identify whether model fully describes the parcel.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
scalar timeEnd() const
Return the end-of-injection time.
vector positionOffset_
Position offset to apply to input positions.
scalarList volumeFlowRate_
List of volume flow rate per injector [m3/s].
virtual scalar volumeToInject(const scalar time0, const scalar time1)
Volume of parcels to introduce relative to SOI.