Public Member Functions | Protected Attributes | List of all members
mappedPatchFieldBase< Type > Class Template Reference

Functionality for sampling fields using mappedPatchBase. Every call to mappedField() returns a sampled field, optionally scaled to maintain an area-weighted average. More...

Inheritance diagram for mappedPatchFieldBase< Type >:
Inheritance graph
[legend]
Collaboration diagram for mappedPatchFieldBase< Type >:
Collaboration graph
[legend]

Public Member Functions

 mappedPatchFieldBase (const mappedPatchBase &mapper, const fvPatchField< Type > &patchField, const word &fieldName, const bool setAverage, const Type average, const word &interpolationScheme)
 Construct from components. More...
 
 mappedPatchFieldBase (const mappedPatchBase &mapper, const fvPatchField< Type > &patchField, const dictionary &dict)
 Construct from dictionary. More...
 
 mappedPatchFieldBase (const mappedPatchBase &mapper, const fvPatchField< Type > &patchField)
 Construct empty. More...
 
 mappedPatchFieldBase (const mappedPatchFieldBase< Type > &mapper)
 Construct copy. More...
 
 mappedPatchFieldBase (const mappedPatchBase &mapper, const fvPatchField< Type > &patchField, const mappedPatchFieldBase< Type > &base)
 Construct copy, resetting patch and field. More...
 
virtual ~mappedPatchFieldBase ()
 Destructor. More...
 
const GeometricField< Type, fvPatchField, volMesh > & sampleField () const
 Field to sample. Either on my or nbr mesh. More...
 
virtual tmp< Field< Type > > mappedField () const
 Map sampleField onto *this patch. More...
 
virtual void write (Ostream &) const
 Write. More...
 

Protected Attributes

const mappedPatchBasemapper_
 Mapping engine. More...
 
const fvPatchField< Type > & patchField_
 Underlying patch field. More...
 
word fieldName_
 Name of field to sample. More...
 
const bool setAverage_
 If true adjust the mapped field to maintain average value average_. More...
 
const Type average_
 Average value the mapped field is adjusted to maintain if. More...
 
word interpolationScheme_
 Interpolation scheme to use for nearestcell mode. More...
 

Detailed Description

template<class Type>
class Foam::mappedPatchFieldBase< Type >

Functionality for sampling fields using mappedPatchBase. Every call to mappedField() returns a sampled field, optionally scaled to maintain an area-weighted average.

Example usage:

{ fieldName T; // default is same as fvPatchField setAverage false; average 1.0; // only if setAverage=true interpolationScheme cellPoint; // default is cell }

Source files

Definition at line 64 of file mappedPatchFieldBase.H.

Constructor & Destructor Documentation

mappedPatchFieldBase ( const mappedPatchBase mapper,
const fvPatchField< Type > &  patchField,
const word fieldName,
const bool  setAverage,
const Type  average,
const word interpolationScheme 
)

Construct from components.

Definition at line 39 of file mappedPatchFieldBase.C.

Referenced by mappedPatchFieldBase< Type >::mappedPatchFieldBase().

Here is the caller graph for this function:

mappedPatchFieldBase ( const mappedPatchBase mapper,
const fvPatchField< Type > &  patchField,
const dictionary dict 
)

Construct from dictionary.

Definition at line 59 of file mappedPatchFieldBase.C.

References dictionary::lookup(), mappedPatchFieldBase< Type >::mappedPatchFieldBase(), and mappedPatchBase::NEARESTCELL.

Here is the call graph for this function:

mappedPatchFieldBase ( const mappedPatchBase mapper,
const fvPatchField< Type > &  patchField 
)

Construct empty.

Definition at line 88 of file mappedPatchFieldBase.C.

References mappedPatchFieldBase< Type >::mappedPatchFieldBase().

Here is the call graph for this function:

mappedPatchFieldBase ( const mappedPatchFieldBase< Type > &  mapper)

Construct copy.

Definition at line 104 of file mappedPatchFieldBase.C.

References mappedPatchFieldBase< Type >::mappedPatchFieldBase().

Here is the call graph for this function:

mappedPatchFieldBase ( const mappedPatchBase mapper,
const fvPatchField< Type > &  patchField,
const mappedPatchFieldBase< Type > &  base 
)

Construct copy, resetting patch and field.

Definition at line 119 of file mappedPatchFieldBase.C.

virtual ~mappedPatchFieldBase ( )
inlinevirtual

Destructor.

Definition at line 137 of file mappedPatchFieldBase.H.

References mappedPatchFieldBase< Type >::mappedField(), mappedPatchFieldBase< Type >::sampleField(), and mappedPatchFieldBase< Type >::write().

Here is the call graph for this function:

Member Function Documentation

const GeometricField< Type, fvPatchField, volMesh > & sampleField ( ) const

Field to sample. Either on my or nbr mesh.

Definition at line 138 of file mappedPatchFieldBase.C.

References polyMesh::boundaryMesh(), and polyBoundaryMesh::mesh().

Referenced by mappedPatchFieldBase< Type >::~mappedPatchFieldBase().

Here is the call graph for this function:

Here is the caller graph for this function:

tmp< Field< Type > > mappedField ( ) const
virtual
void write ( Ostream os) const
virtual

Member Data Documentation

const mappedPatchBase& mapper_
protected

Mapping engine.

Definition at line 72 of file mappedPatchFieldBase.H.

const fvPatchField<Type>& patchField_
protected

Underlying patch field.

Definition at line 75 of file mappedPatchFieldBase.H.

word fieldName_
protected

Name of field to sample.

Definition at line 78 of file mappedPatchFieldBase.H.

const bool setAverage_
protected

If true adjust the mapped field to maintain average value average_.

Definition at line 81 of file mappedPatchFieldBase.H.

const Type average_
protected

Average value the mapped field is adjusted to maintain if.

setAverage_ is set true

Definition at line 85 of file mappedPatchFieldBase.H.

word interpolationScheme_
protected

Interpolation scheme to use for nearestcell mode.

Definition at line 88 of file mappedPatchFieldBase.H.


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