surfaceFieldValue Class Reference

Surface (face) region selection class. More...

Inheritance diagram for surfaceFieldValue:
Collaboration diagram for surfaceFieldValue:

Public Types

enum class  selectionTypes { faceZone , patch , sampledSurface }
 Selection type enumeration. More...
 
enum class  operationType {
  none , sum , sumMag , orientedSum ,
  average , areaAverage , areaIntegrate , min ,
  max , minMag , maxMag , CoV ,
  areaNormalAverage , areaNormalIntegrate
}
 Operation type enumeration. More...
 

Public Member Functions

 TypeName ("surfaceFieldValue")
 Run-time type information. More...
 
 surfaceFieldValue (const word &name, const Time &runTime, const dictionary &dict)
 Construct from name, Time and dictionary. More...
 
 surfaceFieldValue (const word &name, const objectRegistry &obr, const dictionary &dict)
 Construct from name, objectRegistry and dictionary. More...
 
virtual ~surfaceFieldValue ()
 Destructor. More...
 
const selectionTypesselectionType () const
 Return the selection type. More...
 
const wordselectionName () const
 Return the selection name. More...
 
const labelListfaceId () const
 Return the local list of face IDs. More...
 
const labelListfacePatch () const
 Return the local list of patch ID per face. More...
 
const labelListfaceSign () const
 Return the list of +1/-1 representing face flip map. More...
 
fileName outputDir () const
 Return the output directory. More...
 
template<class Type >
bool writeValues (const word &fieldName, const scalarField &signs, const scalarField &weights, const vectorField &Sf)
 Templated helper function to output field values. More...
 
template<class Type , class ResultType >
bool writeValues (const word &fieldName, const Field< Type > &values, const scalarField &signs, const scalarField &weights, const vectorField &Sf)
 Templated helper function to output field values. More...
 
template<class Type >
tmp< Field< Type > > filterField (const SurfaceField< Type > &field) const
 Filter a surface field according to faceIds. More...
 
template<class Type >
tmp< Field< Type > > filterField (const VolField< Type > &field) const
 Filter a volume field according to faceIds. More...
 
virtual bool read (const dictionary &)
 Read from dictionary. More...
 
virtual bool write ()
 Calculate and write. More...
 
virtual void movePoints (const polyMesh &)
 Update for mesh point-motion. More...
 
virtual void topoChange (const polyTopoChangeMap &)
 Update topology using the given map. More...
 
virtual void mapMesh (const polyMeshMap &)
 Update from another mesh using the given map. More...
 
virtual void distribute (const polyDistributionMap &)
 Redistribute or update using the given distribution map. More...
 
template<class Type >
Foam::tmp< Foam::Field< Type > > getFieldValues (const word &fieldName) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > filterField (const VolField< Type > &field) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > filterField (const SurfaceField< Type > &field) const
 
- Public Member Functions inherited from fieldValue
 TypeName ("fieldValue")
 Run-time type information. More...
 
 declareRunTimeSelectionTable (autoPtr, fieldValue, dictionary,(const word &name, const objectRegistry &obr, const dictionary &dict),(name, obr, dict))
 
 fieldValue (const word &name, const Time &runTime, const dictionary &dict, const word &valueType)
 Construct from Time and dictionary. More...
 
 fieldValue (const word &name, const objectRegistry &obr, const dictionary &dict, const word &valueType)
 Construct from objectRegistry and dictionary. More...
 
virtual ~fieldValue ()
 Destructor. More...
 
const dictionarydict () const
 Return the reference to the construction dictionary. More...
 
virtual wordList fields () const
 Return the list of fields required. More...
 
const SwitchwriteFields () const
 Return the output field values flag. More...
 
const dictionaryresultDict () const
 Return access to the latest set of results. More...
 
virtual bool execute ()
 Execute. More...
 
- Public Member Functions inherited from fvMeshFunctionObject
 TypeName ("fvMeshFunctionObject")
 Runtime type information. More...
 
 fvMeshFunctionObject (const word &name, const Time &runTime, const dictionary &dict)
 Construct from Time and dictionary. More...
 
 fvMeshFunctionObject (const word &name, const objectRegistry &obr, const dictionary &dict)
 Construct from the region objectRegistry and dictionary. More...
 
 fvMeshFunctionObject (const fvMeshFunctionObject &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~fvMeshFunctionObject ()
 Destructor. More...
 
void operator= (const fvMeshFunctionObject &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from regionFunctionObject
 TypeName ("regionFunctionObject")
 Runtime type information. More...
 
 regionFunctionObject (const word &name, const Time &runTime, const dictionary &dict)
 Construct from Time and dictionary. More...
 
 regionFunctionObject (const word &name, const objectRegistry &obr, const dictionary &dict)
 Construct from the region objectRegistry and dictionary. More...
 
 regionFunctionObject (const regionFunctionObject &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~regionFunctionObject ()
 Destructor. More...
 
void operator= (const regionFunctionObject &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from functionObject
 ClassName ("functionObject")
 
virtual const wordtype () const =0
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, functionObject, dictionary,(const word &name, const Time &runTime, const dictionary &dict),(name, runTime, dict))
 
 functionObject (const word &name, const Time &runTime)
 Construct from components. More...
 
autoPtr< functionObjectclone () const
 Return clone. More...
 
 functionObject (const functionObject &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~functionObject ()
 Destructor. More...
 
const wordname () const
 Return the name of this functionObject. More...
 
virtual bool executeAtStart () const
 Return true if the functionObject should be executed at the start. More...
 
virtual bool end ()
 Called when Time::run() determines that the time-loop exits. More...
 
virtual scalar timeToNextAction ()
 Called by Time::adjustTimeStep(). Allows the functionObject to. More...
 
virtual scalar maxDeltaT () const
 Return the maximum time-step for stable operation. More...
 
void operator= (const functionObject &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from logFiles
 logFiles (const objectRegistry &obr, const word &prefix)
 Construct from objectRegistry and prefix. More...
 
 logFiles (const logFiles &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~logFiles ()
 Destructor. More...
 
const wordListtoc () const
 Return the list of log file names. More...
 
const wordListnames () const
 Return the list of log file names. More...
 
PtrList< OFstream > & files ()
 Return access to the files. More...
 
OFstreamfile ()
 Return access to the file (if only 1) More...
 
OFstreamfile (const label i)
 Return file 'i'. More...
 
void operator= (const logFiles &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from writeFile
 writeFile (const objectRegistry &obr, const word &prefix)
 Construct from objectRegistry and prefix. More...
 
 writeFile (const writeFile &)=delete
 Disallow default bitwise copy construction. More...
 
 ~writeFile ()
 Destructor. More...
 
void initStream (Ostream &os) const
 Initialise the output stream for writing. More...
 
fileName baseFileDir () const
 Return the base directory for output. More...
 
fileName baseTimeDir () const
 Return the base directory for the current time value. More...
 
Omanip< int > valueWidth (const label offset=0) const
 Return the value width when writing to stream with optional offset. More...
 
void writeCommented (Ostream &os, const string &str) const
 Write a commented string to stream. More...
 
void writeTabbed (Ostream &os, const string &str) const
 Write a tabbed string to stream. More...
 
void writeHeader (Ostream &os, const string &str) const
 Write a commented header to stream. More...
 
void writeTime (Ostream &os) const
 Write the current time to stream. More...
 
template<class Type >
void writeHeaderValue (Ostream &os, const string &property, const Type &value) const
 Write a (commented) header property and value pair. More...
 
label charWidth () const
 Return width of character stream output. More...
 
void operator= (const writeFile &)=delete
 Disallow default bitwise assignment. More...
 

Static Public Attributes

static const NamedEnum< selectionTypes, 3 > selectionTypeNames
 Selection type names. More...
 
static const NamedEnum< operationType, 14 > operationTypeNames_
 Operation type names. More...
 
- Static Public Attributes inherited from functionObject
static bool postProcess
 Global post-processing mode switch. More...
 
- Static Public Attributes inherited from writeFile
static const word outputPrefix
 Directory prefix. More...
 
static label addChars = 8
 Additional characters for writing. More...
 

Protected Member Functions

void initialise (const dictionary &dict)
 Initialise, e.g. face addressing. More...
 
template<class Type >
bool validField (const word &fieldName) const
 Return true if the field name is valid. More...
 
template<class Type >
tmp< Field< Type > > getFieldValues (const word &fieldName) const
 Return field values by looking up field name. More...
 
template<class Type , class ResultType >
bool processValues (const Field< Type > &values, const scalarField &signs, const scalarField &weights, const vectorField &Sf, ResultType &result) const
 Apply the operation to the values, and return true if successful. More...
 
template<class Type >
bool processValues (const Field< Type > &values, const scalarField &signs, const scalarField &weights, const vectorField &Sf, Type &result) const
 Apply Type -> Type operation to the values. Calls. More...
 
template<class Type >
bool processValues (const Field< Type > &values, const scalarField &signs, const scalarField &weights, const vectorField &Sf, scalar &result) const
 Apply Type -> scalar operation to the values. Tries to apply. More...
 
bool processValues (const Field< scalar > &values, const scalarField &signs, const scalarField &weights, const vectorField &Sf, scalar &result) const
 Apply scalar -> scalar operation to the values. Tries to apply. More...
 
bool processValues (const Field< vector > &values, const scalarField &signs, const scalarField &weights, const vectorField &Sf, scalar &result) const
 Apply vector -> scalar operation to the values. Tries to apply. More...
 
template<class Type >
bool processValuesTypeType (const Field< Type > &values, const scalarField &signs, const scalarField &weights, const vectorField &Sf, Type &result) const
 Apply a Type -> Type operation to the values. More...
 
virtual void writeFileHeader (const label i)
 Output file header information. More...
 
- Protected Member Functions inherited from fieldValue
template<class Type >
void combineFields (Field< Type > &field)
 Combine fields from all processor domains into single field. More...
 
template<class Type >
void combineFields (tmp< Field< Type >> &)
 Combine fields from all processor domains into single field. More...
 
- Protected Member Functions inherited from fvMeshFunctionObject
labelHashSet patchSet (const dictionary &, const bool optional=false) const
 Return the patch set corresponding to the patch selection entries. More...
 
- Protected Member Functions inherited from regionFunctionObject
template<class ObjectType >
bool foundObject (const word &fieldName) const
 Find field in the objectRegistry. More...
 
template<class ObjectType >
void cannotFindObject (const word &fieldName)
 Prints a warning message that fieldName cannot be found. More...
 
void cannotFindObject (const word &fieldName)
 Prints a warning message that fieldName cannot be found. More...
 
void cannotFindObjects (const wordList &fieldNames)
 Prints a warning message that fieldNames cannot be found. More...
 
template<class ObjectType >
const ObjectType & lookupObject (const word &fieldName) const
 Lookup object from the objectRegistry. More...
 
template<class ObjectType >
ObjectType & lookupObjectRef (const word &fieldName)
 Lookup non-const object reference from the objectRegistry. More...
 
template<class ObjectType >
bool store (const tmp< ObjectType > &tfield)
 Store the given field in the objectRegistry. More...
 
template<class ObjectType >
bool store (const word &fieldName, const tmp< ObjectType > &tfield, bool cacheable=false)
 Store the given field in the objectRegistry under the given name. More...
 
bool writeObject (const word &fieldName)
 Write field if present in objectRegistry. More...
 
bool clearObject (const word &fieldName)
 Clear field from the objectRegistry if present. More...
 
- Protected Member Functions inherited from logFiles
virtual void createFiles ()
 Create the output file. More...
 
virtual void resetNames (const wordList &names)
 Reset the list of names from a wordList. More...
 
virtual void resetName (const word &name)
 Reset the list of names to a single name entry. More...
 

Protected Attributes

dictionary dict_
 Input dictionary. More...
 
autoPtr< surfaceWritersurfaceWriterPtr_
 Surface writer. More...
 
selectionTypes selectionType_
 Selection type. More...
 
word selectionName_
 Name of face selection (patch, faceZone, etc.) More...
 
operationType operation_
 Operation to apply to values. More...
 
wordList weightFieldNames_
 Weight field names - optional. More...
 
scalar scaleFactor_
 Scale factor - optional. More...
 
scalar totalArea_
 Total area of the surfaceFieldValue. More...
 
bool writeArea_
 Optionally write the area of the surfaceFieldValue. More...
 
label nFaces_
 Global number of faces. More...
 
labelList faceId_
 Local list of face IDs. More...
 
labelList facePatchId_
 Local list of patch ID per face. More...
 
labelList faceSign_
 List of +1/-1 representing face flip map. More...
 
autoPtr< sampledSurfacesurfacePtr_
 Underlying sampledSurface. More...
 
- Protected Attributes inherited from fieldValue
dictionary dict_
 Construction dictionary. More...
 
const word valueType_
 The name of the type of value (volFieldValue, or surfaceFieldValue) More...
 
wordList fields_
 List of field names to operate on. More...
 
Switch writeFields_
 Output field values flag. More...
 
dictionary resultDict_
 Results dictionary for external access of results. More...
 
- Protected Attributes inherited from fvMeshFunctionObject
const fvMeshmesh_
 Reference to the fvMesh. More...
 
- Protected Attributes inherited from regionFunctionObject
const objectRegistryobr_
 Reference to the region objectRegistry. More...
 
- Protected Attributes inherited from functionObject
const Timetime_
 Reference to time. More...
 
- Protected Attributes inherited from logFiles
wordList names_
 File names. More...
 
PtrList< OFstreamfilePtrs_
 File pointer. More...
 
- Protected Attributes inherited from writeFile
const objectRegistryfileObr_
 Reference to the region objectRegistry. More...
 
const word prefix_
 Prefix. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from fieldValue
static autoPtr< fieldValueNew (const word &name, const objectRegistry &obr, const dictionary &dict, const bool output=true)
 Return a reference to the selected fieldValue. More...
 
- Static Public Member Functions inherited from functionObject
static autoPtr< functionObjectNew (const word &name, const Time &, const dictionary &)
 Select from dictionary, based on its "type" entry. More...
 
- Public Attributes inherited from functionObject
Switch log
 Switch write log to Info. More...
 
Switch executeAtStart_
 Switch write log to Info. More...
 

Detailed Description

Surface (face) region selection class.

Given a list of user-specified fields and a selection of mesh (or general surface) faces, a number of operations can be performed, such as sums, averages and integrations.

For example, to calculate the volumetric or mass flux across a patch, apply the 'orientedSum' operator to the flux field (typically phi)

Examples of function object specification:

movingWallPatch
{
    type            surfaceFieldValue;
    libs            ("libfieldFunctionObjects.so");

    log             true;
    writeControl    writeTime;
    writeFields     true;

    select          patch;
    name            movingWall;

    operation       areaAverage;

    fields
    (
        p
        phi
        U
    );
}

surfaceFieldValue1
{
    type            surfaceFieldValue;
    libs            ("libfieldFunctionObjects.so");

    log             true;
    writeControl    writeTime;
    writeFields     true;

    surfaceFormat   none;

    select          faceZone;
    name            f0;

    operation       sum;

    weightField     alpha1;

    fields
    (
        p
        phi
        U
    );
}
Usage
Property Description Required Default value
type type name: surfaceFieldValue yes
log write data to standard output no no
writeFields Write the field values yes
writeArea Write the area of the surfaceFieldValue no
surfaceFormat output value format no
select face selection: see below yes
name name of face select if required no
operation operation to perform yes
weightField name of field to apply weighting no
weightFields Names of fields to apply weighting no
scaleFactor scale factor no 1
fields list of fields to operate on yes

Where the supported select options are:

faceZone : requires a 'name' entry to specify the faceZone
patch : requires a 'name' entry to specify the patch
sampledSurface : requires a 'sampledSurfaceDict' sub-dictionary

The operation is one of:

none : no operation
sum : sum
sumMag : sum of component magnitudes
orientedSum : sum with face orientations
average : ensemble average
areaAverage : area weighted average
areaIntegrate : area integral
min : minimum
max : maximum
minMag : minimum magnitude
maxMag : maximum magnitude
CoV : coefficient of variation: standard deviation/mean
areaNormalAverage : area weighted average in face normal direction
areaNormalIntegrate : area weighted integral in face normal direction

Note:

  • Faces on empty patches get ignored.
  • The `oriented' operations will flip the sign of the field so that all the normals point in a consistent direction. This is only of relevance when summing mesh-oriented fields, such as the flux, on faceZones.
  • If the field is a volField then a faceZone can only consist of boundary faces, because only these faces have a value associated with them. No cell-to-face interpolation is performed.
  • If the field is a surfaceField then the selection cannot be a sampledSurface
  • If a sampledSurface has interpolation set to false then the surface face values will be taken directly from the cell that contains the surface face centre
  • If a sampledSurface has interpolation set to true then the field will be interpolated to the vertices, then averaged onto the surface faces
See also
Foam::fieldValues Foam::functionObject
Source files

Definition at line 312 of file surfaceFieldValue.H.

Member Enumeration Documentation

◆ selectionTypes

enum selectionTypes
strong

Selection type enumeration.

Enumerator
faceZone 
patch 
sampledSurface 

Definition at line 322 of file surfaceFieldValue.H.

◆ operationType

enum operationType
strong

Operation type enumeration.

Enumerator
none 
sum 
sumMag 
orientedSum 
average 
areaAverage 
areaIntegrate 
min 
max 
minMag 
maxMag 
CoV 
areaNormalAverage 
areaNormalIntegrate 

Definition at line 334 of file surfaceFieldValue.H.

Constructor & Destructor Documentation

◆ surfaceFieldValue() [1/2]

surfaceFieldValue ( const word name,
const Time runTime,
const dictionary dict 
)

Construct from name, Time and dictionary.

Definition at line 598 of file surfaceFieldValue.C.

◆ surfaceFieldValue() [2/2]

surfaceFieldValue ( const word name,
const objectRegistry obr,
const dictionary dict 
)

Construct from name, objectRegistry and dictionary.

Definition at line 628 of file surfaceFieldValue.C.

◆ ~surfaceFieldValue()

~surfaceFieldValue ( )
virtual

Destructor.

Definition at line 661 of file surfaceFieldValue.C.

Member Function Documentation

◆ initialise()

void initialise ( const dictionary dict)
protected

Initialise, e.g. face addressing.

Definition at line 413 of file surfaceFieldValue.C.

References dict, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::Info, Foam::name(), surfaceWriter::New(), Foam::nl, and Foam::type().

Here is the call graph for this function:

◆ validField()

bool validField ( const word fieldName) const
protected

Return true if the field name is valid.

Definition at line 36 of file surfaceFieldValueTemplates.C.

References objectRegistry::foundObject(), regionFunctionObject::obr_, surfaceFieldValue::sampledSurface, and surfaceFieldValue::selectionType_.

Here is the call graph for this function:

◆ getFieldValues() [1/2]

tmp<Field<Type> > getFieldValues ( const word fieldName) const
protected

Return field values by looking up field name.

◆ processValues() [1/5]

bool processValues ( const Field< Type > &  values,
const scalarField signs,
const scalarField weights,
const vectorField Sf,
ResultType &  result 
) const
protected

Apply the operation to the values, and return true if successful.

Does nothing unless overloaded below.

Definition at line 134 of file surfaceFieldValueTemplates.C.

◆ processValues() [2/5]

bool processValues ( const Field< Type > &  values,
const scalarField signs,
const scalarField weights,
const vectorField Sf,
Type &  result 
) const
protected

Apply Type -> Type operation to the values. Calls.

processValuesTypeType.

Definition at line 148 of file surfaceFieldValueTemplates.C.

◆ processValues() [3/5]

bool processValues ( const Field< Type > &  values,
const scalarField signs,
const scalarField weights,
const vectorField Sf,
scalar &  result 
) const
protected

Apply Type -> scalar operation to the values. Tries to apply.

Type -> scalar specific operations, otherwise does nothing.

Definition at line 162 of file surfaceFieldValueTemplates.C.

References Foam::gMax(), Foam::gMin(), and Foam::mag().

Here is the call graph for this function:

◆ processValues() [4/5]

bool processValues ( const Field< scalar > &  values,
const scalarField signs,
const scalarField weights,
const vectorField Sf,
scalar &  result 
) const
protected

Apply scalar -> scalar operation to the values. Tries to apply.

scalar -> scalar specific operations, otherwise calls processValuesTypeType.

Definition at line 539 of file surfaceFieldValue.C.

◆ processValues() [5/5]

bool processValues ( const Field< vector > &  values,
const scalarField signs,
const scalarField weights,
const vectorField Sf,
scalar &  result 
) const
protected

Apply vector -> scalar operation to the values. Tries to apply.

vector -> scalar specific operations, otherwise does nothing.

Definition at line 566 of file surfaceFieldValue.C.

References Foam::gSum(), and Foam::mag().

Here is the call graph for this function:

◆ processValuesTypeType()

bool processValuesTypeType ( const Field< Type > &  values,
const scalarField signs,
const scalarField weights,
const vectorField Sf,
Type &  result 
) const
protected

◆ writeFileHeader()

void writeFileHeader ( const label  i)
protectedvirtual

Output file header information.

Implements logFiles.

Definition at line 505 of file surfaceFieldValue.C.

References Foam::endl(), Foam::file, forAll, and Foam::tab.

Here is the call graph for this function:

◆ TypeName()

TypeName ( "surfaceFieldValue"  )

Run-time type information.

◆ selectionType()

Return the selection type.

Definition at line 33 of file surfaceFieldValueI.H.

References surfaceFieldValue::selectionType_.

◆ selectionName()

const Foam::word & selectionName ( ) const
inline

Return the selection name.

Definition at line 40 of file surfaceFieldValueI.H.

◆ faceId()

const Foam::labelList & faceId ( ) const
inline

Return the local list of face IDs.

Definition at line 47 of file surfaceFieldValueI.H.

◆ facePatch()

const Foam::labelList & facePatch ( ) const
inline

Return the local list of patch ID per face.

Definition at line 54 of file surfaceFieldValueI.H.

◆ faceSign()

const Foam::labelList & faceSign ( ) const
inline

Return the list of +1/-1 representing face flip map.

Definition at line 61 of file surfaceFieldValueI.H.

◆ outputDir()

Foam::fileName outputDir ( ) const
inline

Return the output directory.

Definition at line 68 of file surfaceFieldValueI.H.

References Foam::name().

Here is the call graph for this function:

◆ writeValues() [1/2]

bool writeValues ( const word fieldName,
const scalarField signs,
const scalarField weights,
const vectorField Sf 
)

Templated helper function to output field values.

Definition at line 285 of file surfaceFieldValueTemplates.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::FOR_ALL_FIELD_TYPES(), UPstream::master(), points, and writeValuesFieldType.

Here is the call graph for this function:

◆ writeValues() [2/2]

bool writeValues ( const word fieldName,
const Field< Type > &  values,
const scalarField signs,
const scalarField weights,
const vectorField Sf 
)

Templated helper function to output field values.

Definition at line 373 of file surfaceFieldValueTemplates.C.

References Foam::endl(), Foam::file, Log, UPstream::master(), and Foam::tab.

Here is the call graph for this function:

◆ filterField() [1/4]

tmp<Field<Type> > filterField ( const SurfaceField< Type > &  field) const

Filter a surface field according to faceIds.

◆ filterField() [2/4]

tmp<Field<Type> > filterField ( const VolField< Type > &  field) const

Filter a volume field according to faceIds.

◆ read()

bool read ( const dictionary dict)
virtual

Read from dictionary.

Reimplemented from fieldValue.

Definition at line 667 of file surfaceFieldValue.C.

References dict, and fieldValue::read().

Here is the call graph for this function:

◆ write()

bool write ( )
virtual

Calculate and write.

Reimplemented from fieldValue.

Definition at line 679 of file surfaceFieldValue.C.

References Foam::endl(), Foam::file, Foam::FOR_ALL_FIELD_TYPES(), forAll, Log, UPstream::master(), points, List< T >::size(), Foam::tab, validFieldType, fieldValue::write(), and writeValuesFieldType.

Here is the call graph for this function:

◆ movePoints()

void movePoints ( const polyMesh mesh)
virtual

Update for mesh point-motion.

Reimplemented from functionObject.

Definition at line 798 of file surfaceFieldValue.C.

◆ topoChange()

void topoChange ( const polyTopoChangeMap map)
virtual

Update topology using the given map.

Reimplemented from functionObject.

Definition at line 812 of file surfaceFieldValue.C.

References polyTopoChangeMap::mesh().

Here is the call graph for this function:

◆ mapMesh()

void mapMesh ( const polyMeshMap map)
virtual

Update from another mesh using the given map.

Reimplemented from functionObject.

Definition at line 824 of file surfaceFieldValue.C.

References polyMeshMap::mesh().

Here is the call graph for this function:

◆ distribute()

void distribute ( const polyDistributionMap map)
virtual

Redistribute or update using the given distribution map.

Reimplemented from functionObject.

Definition at line 836 of file surfaceFieldValue.C.

References polyDistributionMap::mesh().

Here is the call graph for this function:

◆ getFieldValues() [2/2]

Foam::tmp<Foam::Field<Type> > getFieldValues ( const word fieldName) const

Definition at line 60 of file surfaceFieldValueTemplates.C.

References Foam::abort(), f(), Foam::FatalError, FatalErrorInFunction, fld(), forAll, Foam::fvc::interpolate(), tmp< T >::ref(), List< T >::size(), and Foam::Zero.

Here is the call graph for this function:

◆ filterField() [3/4]

Foam::tmp<Foam::Field<Type> > filterField ( const VolField< Type > &  field) const

◆ filterField() [4/4]

Foam::tmp<Foam::Field<Type> > filterField ( const SurfaceField< Type > &  field) const

Definition at line 442 of file surfaceFieldValueTemplates.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), forAll, patchi, and tmp< T >::ref().

Here is the call graph for this function:

Member Data Documentation

◆ selectionTypeNames

Selection type names.

Definition at line 330 of file surfaceFieldValue.H.

◆ operationTypeNames_

Operation type names.

Definition at line 353 of file surfaceFieldValue.H.

◆ dict_

dictionary dict_
protected

Input dictionary.

Definition at line 392 of file surfaceFieldValue.H.

◆ surfaceWriterPtr_

autoPtr<surfaceWriter> surfaceWriterPtr_
protected

Surface writer.

Definition at line 395 of file surfaceFieldValue.H.

◆ selectionType_

selectionTypes selectionType_
protected

Selection type.

Definition at line 398 of file surfaceFieldValue.H.

Referenced by surfaceFieldValue::selectionType(), and surfaceFieldValue::validField().

◆ selectionName_

word selectionName_
protected

Name of face selection (patch, faceZone, etc.)

Definition at line 401 of file surfaceFieldValue.H.

◆ operation_

operationType operation_
protected

Operation to apply to values.

Definition at line 404 of file surfaceFieldValue.H.

◆ weightFieldNames_

wordList weightFieldNames_
protected

Weight field names - optional.

Definition at line 407 of file surfaceFieldValue.H.

◆ scaleFactor_

scalar scaleFactor_
protected

Scale factor - optional.

Definition at line 410 of file surfaceFieldValue.H.

◆ totalArea_

scalar totalArea_
protected

Total area of the surfaceFieldValue.

Definition at line 413 of file surfaceFieldValue.H.

◆ writeArea_

bool writeArea_
protected

Optionally write the area of the surfaceFieldValue.

Definition at line 416 of file surfaceFieldValue.H.

◆ nFaces_

label nFaces_
protected

Global number of faces.

Definition at line 419 of file surfaceFieldValue.H.

◆ faceId_

labelList faceId_
protected

Local list of face IDs.

Definition at line 425 of file surfaceFieldValue.H.

◆ facePatchId_

labelList facePatchId_
protected

Local list of patch ID per face.

Definition at line 428 of file surfaceFieldValue.H.

◆ faceSign_

labelList faceSign_
protected

List of +1/-1 representing face flip map.

(1 use as is, -1 negate)

Definition at line 432 of file surfaceFieldValue.H.

◆ surfacePtr_

autoPtr<sampledSurface> surfacePtr_
protected

Underlying sampledSurface.

Definition at line 438 of file surfaceFieldValue.H.


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