injectionModel Class Reference

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

Inheritance diagram for injectionModel:
Collaboration diagram for injectionModel:

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_
 Names of the parcels' uniform size. More...
 

Detailed Description

Non-templated base class for lagrangian injection models.

Source files

Definition at line 50 of file injectionModel.H.

Member Enumeration Documentation

◆ uniformParcelSize

enum uniformParcelSize
strong

Enumeration for the parcels' uniform size.

Enumerator
nParticle 
surfaceArea 
volume 

Definition at line 57 of file injectionModel.H.

Member Function Documentation

◆ globalScalar01()

Foam::scalar globalScalar01 ( randomGenerator rndGen)
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 48 of file injectionModel.C.

References UPstream::master(), rndGen(), and Pstream::scatter().

Referenced by patchInjectionBase::setPositionAndCell().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ uniformParcelSizeNames_

const Foam::NamedEnum< Foam::injectionModel::uniformParcelSize, 3 > uniformParcelSizeNames_
static

Names of the parcels' uniform size.

Definition at line 65 of file injectionModel.H.

Referenced by InjectionModel< CloudType >::InjectionModel().


The documentation for this class was generated from the following files: