158 #ifndef functionObjects_surfaceFieldValue_H 159 #define functionObjects_surfaceFieldValue_H 169 class sampledSurface;
172 namespace functionObjects
174 namespace fieldValues
181 class surfaceFieldValue
232 void setFaceZoneFaces();
235 void setPatchFaces();
238 void sampledSurfaceFaces(
const dictionary&);
241 void combineMeshGeometry
248 void combineSurfaceGeometry
255 scalar totalArea()
const;
324 template<
class Type,
class ResultType>
456 const word& fieldName,
463 template<
class Type,
class ResultType>
466 const word& fieldName,
491 virtual bool write();
labelList faceSign_
List of +1/-1 representing face flip map.
wordList weightFieldNames_
Weight field names - optional.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual ~surfaceFieldValue()
Destructor.
A class for handling file names.
surfaceFieldValue(const word &name, const Time &runTime, const dictionary &dict)
Construct from name, Time and dictionary.
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.
const labelList & faceSign() const
Return the list of +1/-1 representing face flip map.
void initialise(const dictionary &dict)
Initialise, e.g. face addressing.
const word & name() const
Return the name of this functionObject.
A list of keyword definitions, which are a keyword followed by any number of values (e...
static const NamedEnum< operationType, 16 > operationTypeNames_
Operation type names.
fileName outputDir() const
Return the output directory.
virtual bool write()
Calculate and write.
regionTypes
region type enumeration
Generic GeometricField class.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual void movePoints(const polyMesh &)
Update for mesh point-motion.
const regionTypes & regionType() const
Return the region type.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
TypeName("surfaceFieldValue")
Run-time type information.
operationType
Operation type enumeration.
scalar totalArea_
Total area of the surfaceFieldValue.
autoPtr< sampledSurface > surfacePtr_
Underlying sampledSurface.
labelList faceId_
Local list of face IDs.
vectorField pointField
pointField is a vectorField.
Pre-declare SubField and related Field type.
regionTypes regionType_
region type
A class for handling words, derived from string.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
labelList facePatchId_
Local list of patch ID per face.
const dictionary & dict() const
Return the reference to the construction dictionary.
bool validField(const word &fieldName) const
Return true if the field name is valid.
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.
tmp< Field< Type > > filterField(const GeometricField< Type, fvsPatchField, surfaceMesh > &field) const
Filter a surface field according to faceIds.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
List< label > labelList
A List of labels.
const labelList & facePatch() const
Return the local list of patch ID per face.
tmp< Field< Type > > getFieldValues(const word &fieldName) const
Return field values by looking up field name.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
const labelList & faceId() const
Return the local list of face IDs.
autoPtr< surfaceWriter > surfaceWriterPtr_
Surface writer.
List< word > wordList
A List of words.
label nFaces_
Global number of faces.
dictionary dict_
Input dictionary.
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
virtual bool read(const dictionary &)
Read from dictionary.
tmp< GeometricField< Type, fvPatchField, volMesh > > average(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Area-weighted average a surfaceField creating a volField.
Mesh consisting of general polyhedral cells.
operationType operation_
Operation to apply to values.
static const NamedEnum< regionTypes, 3 > regionTypeNames_
region type names
bool writeValues(const word &fieldName, const scalarField &signs, const scalarField &weights, const vectorField &Sf)
Templated helper function to output field values.
bool writeArea_
Optionally write the area of the surfaceFieldValue.
A class for managing temporary objects.
Registry of regIOobjects.
Class containing mesh-to-mesh mapping information.
virtual void writeFileHeader(const label i)
Output file header information.
dimensioned< scalar > sumMag(const DimensionedField< Type, GeoMesh > &df)
scalar scaleFactor_
Scale factor - optional.