Replays an set of particle data based on an injectedParticleCloud, using the assumption of one particle per parcel. More...
Public Member Functions | |
TypeName ("injectedParticleInjection") | |
InjectedParticleInjection (const dictionary &dict, CloudType &owner, const word &modelName) | |
InjectedParticleInjection (const InjectedParticleInjection< CloudType > &im) | |
virtual autoPtr< InjectionModel< CloudType > > | clone () const |
virtual | ~InjectedParticleInjection ()=default |
virtual void | updateMesh () |
scalar | timeEnd () const |
virtual label | parcelsToInject (const scalar time0, const scalar time1) |
virtual scalar | volumeToInject (const scalar time0, const scalar time1) |
virtual void | setPositionAndCell (const label parceli, const label nParcels, const scalar time, vector &position, label &cellOwner, label &tetFacei, label &tetPti) |
virtual void | setProperties (const label parceli, const label nParcels, const scalar time, typename CloudType::parcelType &parcel) |
virtual bool | fullyDescribed () const |
virtual bool | validInjection (const label parceli) |
void | info (Ostream &os) |
![]() | |
TypeName ("injectionModel") | |
declareRunTimeSelectionTable (autoPtr, InjectionModel, dictionary,(const dictionary &dict, CloudType &owner, const word &modelType),(dict, owner, modelType)) | |
InjectionModel (CloudType &owner) | |
InjectionModel (const dictionary &dict, CloudType &owner, const word &modelName, const word &modelType) | |
InjectionModel (const InjectionModel< CloudType > &im) | |
virtual | ~InjectionModel ()=default |
scalar | timeStart () const |
scalar | volumeTotal () const |
scalar | massTotal () const |
scalar | massInjected () const |
label | injectorID () const |
virtual scalar | averageParcelMass () |
label | nInjections () const |
label | parcelsAddedTotal () const |
template<class TrackCloudType > | |
void | inject (TrackCloudType &cloud, typename CloudType::parcelType::trackingData &td) |
template<class TrackCloudType > | |
void | injectSteadyState (TrackCloudType &cloud, typename CloudType::parcelType::trackingData &td, const scalar trackTime) |
![]() | |
CloudSubModelBase (CloudType &owner) | |
CloudSubModelBase (CloudType &owner, const dictionary &dict, const word &baseName, const word &modelType, const word &dictExt="Coeffs") | |
CloudSubModelBase (const word &modelName, CloudType &owner, const dictionary &dict, const word &baseName, const word &modelType) | |
CloudSubModelBase (const CloudSubModelBase< CloudType > &smb) | |
virtual | ~CloudSubModelBase () |
const CloudType & | owner () const |
virtual bool | writeTime () const |
virtual fileName | localPath () const |
CloudType & | owner () |
virtual void | write (Ostream &os) const |
![]() | |
subModelBase (dictionary &properties) | |
subModelBase (dictionary &properties, const dictionary &dict, const word &baseName, const word &modelType, const word &dictExt="Coeffs") | |
subModelBase (const word &modelName, dictionary &properties, const dictionary &dict, const word &baseName, const word &modelType) | |
subModelBase (const subModelBase &smb) | |
virtual | ~subModelBase () |
const word & | modelName () const |
const dictionary & | dict () const |
const word & | baseName () const |
const word & | modelType () const |
const dictionary & | coeffDict () const |
const dictionary & | properties () const |
virtual bool | defaultCoeffs (const bool printMsg) const |
virtual bool | active () const |
virtual void | cacheFields (const bool store) |
template<class Type > | |
Type | getBaseProperty (const word &entryName, const Type &defaultValue=Type(Zero)) const |
template<class Type > | |
void | getBaseProperty (const word &entryName, Type &value) const |
template<class Type > | |
void | setBaseProperty (const word &entryName, const Type &value) |
bool | getModelDict (const word &entryName, dictionary &dict) const |
template<class Type > | |
void | getModelProperty (const word &entryName, Type &value) const |
template<class Type > | |
Type | getModelProperty (const word &entryName, const Type &defaultValue=Type(Zero)) const |
template<class Type > | |
void | setModelProperty (const word &entryName, const Type &value) |
Protected Member Functions | |
void | initialise () |
![]() | |
virtual bool | prepareForNextTimeStep (const scalar time, label &newParcels, scalar &newVolumeFraction) |
virtual bool | findCellAtPosition (label &celli, label &tetFacei, label &tetPti, vector &position, bool errorOnNotFound=true) |
virtual scalar | setNumberOfParticles (const label parcels, const scalar volumeFraction, const scalar diameter, const scalar rho) |
virtual void | postInjectCheck (const label parcelsAdded, const scalar massAdded) |
![]() | |
bool | inLine () const |
Protected Attributes | |
const word | cloudName_ |
labelList | injectorCells_ |
labelList | injectorTetFaces_ |
labelList | injectorTetPts_ |
scalarList | time_ |
vectorList | position_ |
vector | positionOffset_ |
scalarList | diameter_ |
vectorList | U_ |
scalarList | volume_ |
Switch | ignoreOutOfBounds_ |
label | currentParticlei_ |
![]() | |
scalar | SOI_ |
scalar | volumeTotal_ |
scalar | massTotal_ |
autoPtr< Function1< scalar > > | massFlowRate_ |
scalar | massInjected_ |
label | nInjections_ |
label | parcelsAddedTotal_ |
parcelBasis | parcelBasis_ |
scalar | nParticleFixed_ |
scalar | time0_ |
scalar | timeStep0_ |
scalar | minParticlesPerParcel_ |
scalar | delayedVolume_ |
label | injectorID_ |
bool | ignoreOutOfBounds_ |
![]() | |
CloudType & | owner_ |
![]() | |
const word | modelName_ |
dictionary & | properties_ |
const dictionary | dict_ |
const word | baseName_ |
const word | modelType_ |
const dictionary | coeffDict_ |
Additional Inherited Members | |
![]() | |
enum | parcelBasis { pbNumber, pbMass, pbFixed } |
typedef CloudType::parcelType | parcelType |
![]() | |
typedef CloudType | cloudType |
![]() | |
static autoPtr< InjectionModel< CloudType > > | New (const dictionary &dict, CloudType &owner) |
static autoPtr< InjectionModel< CloudType > > | New (const dictionary &dict, const word &modelName, const word &modelType, CloudType &owner) |
Replays an set of particle data based on an injectedParticleCloud, using the assumption of one particle per parcel.
model1 { type injectedParticleInjection; SOI 0; massTotal 0; // Place holder only parcelBasisType fixed; nParticle 1; // 1 particle per parcel cloud eulerianParticleCloud; positionOffset (-0.025 2 -0.025); }
Definition at line 71 of file InjectedParticleInjection.H.
InjectedParticleInjection | ( | const dictionary & | dict, |
CloudType & | owner, | ||
const word & | modelName | ||
) |
Definition at line 137 of file InjectedParticleInjection.C.
References DSMCCloud< ParcelType >::constProps(), Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
InjectedParticleInjection | ( | const InjectedParticleInjection< CloudType > & | im | ) |
Definition at line 193 of file InjectedParticleInjection.C.
|
virtualdefault |
|
protected |
Definition at line 31 of file InjectedParticleInjection.C.
References Foam::endl(), forAll, Pstream::gatherList(), Foam::Info, mesh, Foam::min(), UPstream::myProcNo(), UPstream::nProcs(), p, UPstream::parRun(), Foam::constant::mathematical::pi(), Foam::pow3(), Pstream::scatterList(), HashTable::size(), Foam::sortedOrder(), List::transfer(), U, and Foam::fieldTypes::volume.
TypeName | ( | "injectedParticleInjection" | ) |
|
inlinevirtual |
Implements InjectionModel< CloudType >.
Definition at line 145 of file InjectedParticleInjection.H.
|
virtual |
Reimplemented from InjectionModel< CloudType >.
Definition at line 216 of file InjectedParticleInjection.C.
References Foam::endl(), forAll, Foam::Info, Foam::inplaceSubset(), and bitSet::unset().
|
virtual |
Implements InjectionModel< CloudType >.
Definition at line 259 of file InjectedParticleInjection.C.
References Foam::max().
|
virtual |
Implements InjectionModel< CloudType >.
Definition at line 267 of file InjectedParticleInjection.C.
References forAll.
|
virtual |
Implements InjectionModel< CloudType >.
Definition at line 287 of file InjectedParticleInjection.C.
References forAll.
|
virtual |
Implements InjectionModel< CloudType >.
Definition at line 307 of file InjectedParticleInjection.C.
|
virtual |
Implements InjectionModel< CloudType >.
Definition at line 331 of file InjectedParticleInjection.C.
|
virtual |
Implements InjectionModel< CloudType >.
Definition at line 347 of file InjectedParticleInjection.C.
|
virtual |
Implements InjectionModel< CloudType >.
Definition at line 355 of file InjectedParticleInjection.C.
|
virtual |
Reimplemented from InjectionModel< CloudType >.
Definition at line 364 of file InjectedParticleInjection.C.
References InjectionModel< CloudType >::info(), and os().
|
protected |
Definition at line 80 of file InjectedParticleInjection.H.
|
protected |
Definition at line 83 of file InjectedParticleInjection.H.
|
protected |
Definition at line 86 of file InjectedParticleInjection.H.
|
protected |
Definition at line 89 of file InjectedParticleInjection.H.
|
protected |
Definition at line 92 of file InjectedParticleInjection.H.
|
protected |
Definition at line 95 of file InjectedParticleInjection.H.
|
protected |
Definition at line 98 of file InjectedParticleInjection.H.
|
protected |
Definition at line 101 of file InjectedParticleInjection.H.
|
protected |
Definition at line 104 of file InjectedParticleInjection.H.
|
protected |
Definition at line 107 of file InjectedParticleInjection.H.
|
protected |
Definition at line 110 of file InjectedParticleInjection.H.
|
protected |
Definition at line 113 of file InjectedParticleInjection.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.