FieldDistribution< Base, Derived > Class Template Reference
Inheritance diagram for FieldDistribution< Base, Derived >:
Collaboration diagram for FieldDistribution< Base, Derived >:

Public Member Functions

template<class Type >
Type sample () const
 Sample the distribution into components of a primitive type. More...
 
virtual tmp< scalarFieldsample (const label n) const
 Sample the distribution into a field. More...
 

Protected Member Functions

 FOR_ALL_FIELD_TYPES (VIRTUAL_SAMPLE_TYPE)
 

Detailed Description

template<class Base, class Derived>
class Foam::FieldDistribution< Base, Derived >

Definition at line 269 of file distribution.H.

Member Function Documentation

◆ FOR_ALL_FIELD_TYPES()

FOR_ALL_FIELD_TYPES ( VIRTUAL_SAMPLE_TYPE  )
protected

◆ sample() [1/2]

Type sample

Sample the distribution into components of a primitive type.

Definition at line 32 of file distributionTemplates.C.

References Foam::setComponent().

Here is the call graph for this function:

◆ sample() [2/2]

Foam::tmp< Foam::scalarField > sample ( const label  n) const
virtual

Sample the distribution into a field.

Definition at line 45 of file distributionTemplates.C.

References forAll, n, tmp< T >::ref(), and scalarField().

Here is the call graph for this function:

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