Functionality for sampling fields using mappedPatchBase. Every call to mappedField() returns a sampled field, optionally scaled to maintain an area-weighted average. More...
Public Member Functions | |
mappedPatchFieldBase (const mappedPatchBase &mapper, const fvPatchField< Type > &patchField, const word &fieldName, const bool setAverage, const Type average, const word &interpolationScheme) | |
mappedPatchFieldBase (const mappedPatchBase &mapper, const fvPatchField< Type > &patchField, const dictionary &dict) | |
mappedPatchFieldBase (const mappedPatchBase &mapper, const fvPatchField< Type > &patchField, const dictionary &dict, const Field< Type > &fld) | |
mappedPatchFieldBase (const mappedPatchBase &mapper, const fvPatchField< Type > &patchField) | |
mappedPatchFieldBase (const mappedPatchFieldBase< Type > &mapper) | |
mappedPatchFieldBase (const mappedPatchBase &mapper, const fvPatchField< Type > &patchField, const mappedPatchFieldBase< Type > &base) | |
virtual | ~mappedPatchFieldBase ()=default |
template<class T > | |
const GeometricField< T, fvPatchField, volMesh > & | sampleField (const word &fieldName) const |
const GeometricField< Type, fvPatchField, volMesh > & | sampleField () const |
virtual tmp< Field< Type > > | mappedField () const |
virtual tmp< Field< Type > > | mappedInternalField () const |
virtual tmp< scalarField > | mappedWeightField () const |
virtual void | mappedWeightField (const word &weightFieldName, tmp< scalarField > &thisWeights, tmp< scalarField > &nbrWeights) const |
virtual void | write (Ostream &os) const |
template<class T > | |
void | distribute (const word &fieldName, Field< T > &newValues) const |
template<class Type2 > | |
const Foam::GeometricField< Type2, Foam::fvPatchField, Foam::volMesh > & | sampleField (const word &fieldName) const |
Static Public Member Functions | |
static const mappedPatchBase & | mapper (const fvPatch &p, const DimensionedField< Type, volMesh > &iF) |
Protected Member Functions | |
template<class T > | |
void | initRetrieveField (const objectRegistry &obr, const word ®ion, const word &patch, const labelListList &map, const word &fieldName, const Field< T > &fld) const |
template<class T > | |
bool | storeAndRetrieveField (const word &fieldName, const label myComm, const labelListList &subMap, const label constructSize, const labelListList &constructMap, const labelListList &address, const scalarListList &weights, Field< T > &fld) const |
template<class T > | |
void | initRetrieveField (const word &fieldName, const Field< T > &fld) const |
template<class T > | |
void | storeField (const objectRegistry &obr, const word ®ion, const word &patch, const label myComm, const labelListList &procToMap, const word &fieldName, const Field< T > &fld) const |
template<class T > | |
bool | retrieveField (const bool allowUnset, const objectRegistry &obr, const word ®ion, const word &patch, const label myComm, const labelListList &procToMap, const word &fieldName, Field< T > &fld) const |
Protected Attributes | |
const mappedPatchBase & | mapper_ |
const fvPatchField< Type > & | patchField_ |
word | fieldName_ |
const bool | setAverage_ |
const Type | average_ |
word | interpolationScheme_ |
Functionality for sampling fields using mappedPatchBase. Every call to mappedField() returns a sampled field, optionally scaled to maintain an area-weighted average.
{ field T; // default is same as fvPatchField setAverage false; average 1.0; // only if setAverage=true interpolationScheme cellPoint; // default is cell }
Property | Description | Required | Default | |
---|---|---|---|---|
field | name of field to be mapped | no | this field name | |
setAverage | use average value | no | false | |
average | average value to apply if setAverage = yes | partly | ||
interpolationScheme | interpolation scheme | partly | cell |
Definition at line 101 of file mappedPatchFieldBase.H.
mappedPatchFieldBase | ( | const mappedPatchBase & | mapper, |
const fvPatchField< Type > & | patchField, | ||
const word & | fieldName, | ||
const bool | setAverage, | ||
const Type | average, | ||
const word & | interpolationScheme | ||
) |
Definition at line 314 of file mappedPatchFieldBase.C.
mappedPatchFieldBase | ( | const mappedPatchBase & | mapper, |
const fvPatchField< Type > & | patchField, | ||
const dictionary & | dict | ||
) |
Definition at line 334 of file mappedPatchFieldBase.C.
mappedPatchFieldBase | ( | const mappedPatchBase & | mapper, |
const fvPatchField< Type > & | patchField, | ||
const dictionary & | dict, | ||
const Field< Type > & | fld | ||
) |
Definition at line 390 of file mappedPatchFieldBase.C.
mappedPatchFieldBase | ( | const mappedPatchBase & | mapper, |
const fvPatchField< Type > & | patchField | ||
) |
Definition at line 428 of file mappedPatchFieldBase.C.
|
explicit |
Definition at line 444 of file mappedPatchFieldBase.C.
mappedPatchFieldBase | ( | const mappedPatchBase & | mapper, |
const fvPatchField< Type > & | patchField, | ||
const mappedPatchFieldBase< Type > & | base | ||
) |
Definition at line 459 of file mappedPatchFieldBase.C.
|
virtualdefault |
|
protected |
Definition at line 194 of file mappedPatchFieldBase.C.
|
protected |
Definition at line 245 of file mappedPatchFieldBase.C.
Definition at line 974 of file mappedPatchFieldBase.C.
|
protected |
Definition at line 47 of file mappedPatchFieldBase.C.
|
protected |
Definition at line 98 of file mappedPatchFieldBase.C.
const GeometricField<T, fvPatchField, volMesh>& sampleField | ( | const word & | fieldName | ) | const |
const Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > & sampleField |
Definition at line 508 of file mappedPatchFieldBase.C.
|
virtual |
Definition at line 607 of file mappedPatchFieldBase.C.
|
virtual |
Definition at line 816 of file mappedPatchFieldBase.C.
|
virtual |
Definition at line 852 of file mappedPatchFieldBase.C.
|
virtual |
Definition at line 890 of file mappedPatchFieldBase.C.
|
virtual |
Reimplemented in turbulentTemperatureRadCoupledMixedFvPatchScalarField, turbulentTemperatureCoupledBaffleMixedFvPatchScalarField, mappedFixedInternalValueFvPatchField< Type >, thermalBaffleFvPatchScalarField, mappedFieldFvPatchField< Type >, mappedMixedFieldFvPatchField< Type >, mappedMixedFvPatchField< Type >, mappedFixedValueFvPatchField< Type >, and mappedFixedPushedInternalValueFvPatchField< Type >.
Definition at line 1000 of file mappedPatchFieldBase.C.
Referenced by turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::write(), and turbulentTemperatureRadCoupledMixedFvPatchScalarField::write().
|
static |
Definition at line 952 of file mappedPatchFieldBase.C.
Referenced by turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs(), and turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs().
Definition at line 517 of file mappedPatchFieldBase.C.
const Foam::GeometricField<Type2, Foam::fvPatchField, Foam::volMesh>& sampleField | ( | const word & | fieldName | ) | const |
Definition at line 479 of file mappedPatchFieldBase.C.
|
protected |
Definition at line 114 of file mappedPatchFieldBase.H.
|
protected |
Definition at line 117 of file mappedPatchFieldBase.H.
|
protected |
Definition at line 120 of file mappedPatchFieldBase.H.
|
protected |
Definition at line 123 of file mappedPatchFieldBase.H.
|
protected |
Definition at line 127 of file mappedPatchFieldBase.H.
|
protected |
Definition at line 130 of file mappedPatchFieldBase.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.