Non-templated base class for lagrangian injection models. More...


Public Types | |
| enum class | uniformParcelSize { nParticle , surfaceArea , volume } |
| Enumeration for the parcels' uniform size. More... | |
Static Public Member Functions | |
| static scalar | globalScalar01 (randomGenerator &rndGen) |
| Return a scalar uniformly distributed between zero and one. Samples. More... | |
Static Public Attributes | |
| static const NamedEnum< uniformParcelSize, 3 > | uniformParcelSizeNames_ {"nParticle", "surfaceArea", "volume"} |
| Names of the parcels' uniform size. More... | |
Non-templated base class for lagrangian injection models.
Definition at line 50 of file injectionModel.H.
|
strong |
Enumeration for the parcels' uniform size.
| Enumerator | |
|---|---|
| nParticle | |
| surfaceArea | |
| volume | |
Definition at line 57 of file injectionModel.H.
|
static |
Return a scalar uniformly distributed between zero and one. Samples.
on the master and then scatters the result to all processors. Use of this is discouraged. It is expensive and introduces non-randomness in all cores other then the master. It is better practice to keep a generator synchronised by calling it the same number of times on the different processes.
Definition at line 38 of file injectionModel.C.
References UPstream::master(), rndGen(), and Pstream::scatter().
Referenced by patchInjectionBase::setPositionAndCell().


|
static |
Names of the parcels' uniform size.
Definition at line 65 of file injectionModel.H.
Referenced by InjectionModel< CloudType >::InjectionModel().