|
|
|
InjectionModel< CloudType > Class Template ReferenceTemplated injection model class. More...
Inheritance diagram for InjectionModel< CloudType >:
![]()
Collaboration diagram for InjectionModel< CloudType >:
![]()
Detailed Descriptiontemplate<class CloudType>
Templated injection model class.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
typedef CloudType::parcelType parcelType [protected] |
| enum parcelBasis |
Parcel basis representation options.
i.e constant number of particles OR constant mass per parcel
Definition at line 70 of file InjectionModel.H.
| InjectionModel | ( | CloudType & | owner | ) | [inline] |
| InjectionModel | ( | const dictionary & | dict, | |
| CloudType & | owner, | |||
| const word & | type | |||
| ) | [inline] |
| ~InjectionModel | ( | ) | [inline, virtual] |
| virtual label parcelsToInject | ( | const scalar | time0, | |
| const scalar | time1 | |||
| ) | const [protected, pure virtual] |
Number of parcels to introduce over the time step relative to SOI.
Implemented in ConeInjection< CloudType >, ConeInjectionMP< CloudType >, FieldActivatedInjection< CloudType >, KinematicLookupTableInjection< CloudType >, ManualInjection< CloudType >, NoInjection< CloudType >, PatchInjection< CloudType >, ReactingLookupTableInjection< CloudType >, and ThermoLookupTableInjection< CloudType >.
| virtual scalar volumeToInject | ( | const scalar | time0, | |
| const scalar | time1 | |||
| ) | const [protected, pure virtual] |
Volume of parcels to introduce over the time step relative to SOI.
Implemented in ConeInjection< CloudType >, ConeInjectionMP< CloudType >, FieldActivatedInjection< CloudType >, KinematicLookupTableInjection< CloudType >, ManualInjection< CloudType >, NoInjection< CloudType >, PatchInjection< CloudType >, ReactingLookupTableInjection< CloudType >, and ThermoLookupTableInjection< CloudType >.
| virtual bool validInjection | ( | const label | parcelI | ) | [protected, pure virtual] |
Additional flag to identify whether or not injection of parcelI is.
permitted
Implemented in ConeInjection< CloudType >, ConeInjectionMP< CloudType >, FieldActivatedInjection< CloudType >, KinematicLookupTableInjection< CloudType >, ManualInjection< CloudType >, NoInjection< CloudType >, PatchInjection< CloudType >, ReactingLookupTableInjection< CloudType >, and ThermoLookupTableInjection< CloudType >.
| void prepareForNextTimeStep | ( | const scalar | time, | |
| label & | newParcels, | |||
| scalar & | newVolume | |||
| ) | [inline, protected, virtual] |
Determine properties for next time step/injection interval.
Definition at line 81 of file InjectionModel.C.
Find the cell that contains the supplied position.
Will modify position slightly towards the owner cell centroid to ensure that it lies in a cell and not edge/face
Definition at line 123 of file InjectionModel.C.
| Foam::scalar setNumberOfParticles | ( | const label | parcels, | |
| const scalar | volume, | |||
| const scalar | diameter, | |||
| const scalar | rho | |||
| ) | [inline, protected, virtual] |
Set number of particles to inject given parcel properties.
Definition at line 177 of file InjectionModel.C.
| void postInjectCheck | ( | const label | parcelsAdded | ) | [inline, protected, virtual] |
| TypeName | ( | "InjectionModel< CloudType >" | ) |
Runtime type information.
| declareRunTimeSelectionTable | ( | autoPtr | , | |
| InjectionModel< CloudType > | , | |||
| dictionary | , | |||
| (const dictionary &dict, CloudType &owner) | , | |||
| (dict, owner) | ||||
| ) |
Declare runtime constructor selection table.
| Foam::autoPtr< Foam::InjectionModel< CloudType > > New | ( | const dictionary & | dict, | |
| CloudType & | owner | |||
| ) | [inline, static] |
Selector.
Definition at line 25 of file NewInjectionModel.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, Foam::Info, dictionary::lookup(), and Foam::nl.

| const Foam::dictionary & dict | ( | ) | const [inline] |
| const CloudType & owner | ( | ) | const [inline] |
| CloudType & owner | ( | ) | [inline] |
Return non-const access the owner cloud object for manipulation.
Definition at line 35 of file InjectionModelI.H.
| const Foam::dictionary & coeffDict | ( | ) | const [inline] |
| virtual bool active | ( | ) | const [pure virtual] |
Flag to indicate whether model activates injection model.
Implemented in ConeInjection< CloudType >, ConeInjectionMP< CloudType >, FieldActivatedInjection< CloudType >, KinematicLookupTableInjection< CloudType >, ManualInjection< CloudType >, NoInjection< CloudType >, PatchInjection< CloudType >, ReactingLookupTableInjection< CloudType >, and ThermoLookupTableInjection< CloudType >.
| Foam::scalar timeStart | ( | ) | const [inline] |
| Foam::scalar volumeTotal | ( | ) | const [inline] |
Return the total volume to be injected across the event.
Definition at line 56 of file InjectionModelI.H.
| Foam::scalar massTotal | ( | ) | const [inline] |
| Foam::scalar massInjected | ( | ) | const [inline] |
| virtual scalar timeEnd | ( | ) | const [pure virtual] |
Return the end-of-injection time.
Implemented in ConeInjection< CloudType >, ConeInjectionMP< CloudType >, FieldActivatedInjection< CloudType >, KinematicLookupTableInjection< CloudType >, ManualInjection< CloudType >, NoInjection< CloudType >, PatchInjection< CloudType >, ReactingLookupTableInjection< CloudType >, and ThermoLookupTableInjection< CloudType >.
| Foam::label nInjections | ( | ) | const [inline] |
| Foam::label parcelsAddedTotal | ( | ) | const [inline] |
| void inject | ( | TrackData & | td | ) | [inline] |
| virtual void setPositionAndCell | ( | const label | parcelI, | |
| const label | nParcels, | |||
| const scalar | time, | |||
| vector & | position, | |||
| label & | cellOwner | |||
| ) | [pure virtual] |
Set the injection position and owner cell.
Implemented in ConeInjection< CloudType >, ConeInjectionMP< CloudType >, FieldActivatedInjection< CloudType >, KinematicLookupTableInjection< CloudType >, ManualInjection< CloudType >, NoInjection< CloudType >, PatchInjection< CloudType >, ReactingLookupTableInjection< CloudType >, and ThermoLookupTableInjection< CloudType >.
| virtual void setProperties | ( | const label | parcelI, | |
| const label | nParcels, | |||
| const scalar | time, | |||
| typename CloudType::parcelType & | parcel | |||
| ) | [pure virtual] |
Set the parcel properties.
Implemented in ConeInjection< CloudType >, ConeInjectionMP< CloudType >, FieldActivatedInjection< CloudType >, KinematicLookupTableInjection< CloudType >, ManualInjection< CloudType >, NoInjection< CloudType >, PatchInjection< CloudType >, ReactingLookupTableInjection< CloudType >, and ThermoLookupTableInjection< CloudType >.
| virtual bool fullyDescribed | ( | ) | const [pure virtual] |
Flag to identify whether model fully describes the parcel.
Implemented in ConeInjection< CloudType >, ConeInjectionMP< CloudType >, FieldActivatedInjection< CloudType >, KinematicLookupTableInjection< CloudType >, ManualInjection< CloudType >, NoInjection< CloudType >, PatchInjection< CloudType >, ReactingLookupTableInjection< CloudType >, and ThermoLookupTableInjection< CloudType >.
scalar volumeTotal_ [protected] |
Total volume of particles introduced by this injector [m^3].
Definition at line 116 of file InjectionModel.H.
const scalar massTotal_ [protected] |
scalar massInjected_ [protected] |
label nInjections_ [protected] |
label parcelsAddedTotal_ [protected] |
parcelBasis parcelBasis_ [protected] |
Continuous phase time at start of injection time step [s].
Definition at line 140 of file InjectionModel.H.
scalar timeStep0_ [protected] |