135 #ifndef functionObjects_surfaceRegion_H 136 #define functionObjects_surfaceRegion_H 146 class sampledSurface;
149 namespace functionObjects
151 namespace fieldValues
208 void setFaceZoneFaces();
211 void setPatchFaces();
214 void sampledSurfaceFaces(
const dictionary&);
217 void combineMeshGeometry
224 void combineSurfaceGeometry
231 scalar totalArea()
const;
301 const word& fieldName,
302 const bool mustGet =
false,
303 const bool applyOrientation =
false 377 const word& fieldName,
387 const bool applyOrientation
395 const bool applyOrientation
402 virtual bool write();
const labelList & facePatch() const
Return the local list of patch ID per face.
bool validField(const word &fieldName) const
Return true if the field name is valid.
bool orientWeightField_
Flag to indicate if flipMap should be applied to the weight field.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual bool write()
Calculate and write.
regionTypes regionType_
region type
A list of keyword definitions, which are a keyword followed by any number of values (e...
tmp< Field< Type > > getFieldValues(const word &fieldName, const bool mustGet=false, const bool applyOrientation=false) const
Return field values by looking up field name.
Generic GeometricField class.
labelList faceSign_
List of +1/-1 representing face flip map.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static const NamedEnum< operationType, 15 > operationTypeNames_
Operation type names.
void initialise(const dictionary &dict)
Initialise, e.g. face addressing.
virtual ~surfaceRegion()
Destructor.
label nFaces_
Global number of faces.
surfaceRegion(const word &name, const Time &runTime, const dictionary &dict)
Construct from name, Time and dictionary.
vectorField pointField
pointField is a vectorField.
const dictionary & dict() const
Return the reference to the construction dictionary.
labelList facePatchId_
Local list of patch ID per face.
const word & name() const
Return the name of this functionObject.
word weightFieldName_
Weight field name - optional.
Pre-declare SubField and related Field type.
TypeName("surfaceRegion")
Run-time type information.
A class for handling words, derived from string.
autoPtr< surfaceWriter > surfaceWriterPtr_
Surface writer.
scalar scaleFactor_
Scale factor - optional.
List< label > labelList
A List of labels.
scalar totalArea_
Total area of the surfaceRegion.
static const NamedEnum< regionTypes, 3 > regionTypeNames_
region type names
Type processValues(const Field< Type > &values, const vectorField &Sf, const scalarField &weightField) const
Apply the 'operation' to the values. Wrapper around.
tmp< Field< Type > > filterField(const GeometricField< Type, fvsPatchField, surfaceMesh > &field, const bool applyOrientation) const
Filter a surface field according to faceIds.
operationType
Operation type enumeration.
labelList faceId_
Local list of face IDs.
bool writeValues(const word &fieldName, const scalarField &weightField, const bool orient)
Templated helper function to output field values.
Type processSameTypeValues(const Field< Type > &values, const vectorField &Sf, const scalarField &weightField) const
Apply the 'operation' to the values. Operation has to.
operationType operation_
Operation to apply to values.
bool writeArea_
Optionally write the area of the surfaceRegion.
virtual bool read(const dictionary &)
Read from dictionary.
const labelList & faceId() const
Return the local list of face IDs.
label orientedFieldsStart_
Start index of fields that require application of flipMap.
virtual void writeFileHeader(const label i)
Output file header information.
A class for managing temporary objects.
Registry of regIOobjects.
regionTypes
region type enumeration
const labelList & faceSign() const
Return the list of +1/-1 representing face flip map.
autoPtr< sampledSurface > surfacePtr_
Underlying sampledSurface.
const regionTypes & regionType() const
Return the region type.