Go to the documentation of this file.
153 class sampledSurface;
155 namespace fieldValues
302 const word& fieldName,
303 const bool mustGet =
false,
304 const bool applyOrientation =
false
343 const bool loadFromFiles =
false
374 virtual void write();
380 const word& fieldName,
390 const bool applyOrientation
398 const bool applyOrientation
virtual void write()
Calculate and write.
label nFaces_
Global number of faces.
vectorField pointField
pointField is a vectorField.
A class for handling words, derived from string.
List< label > labelList
A List of labels.
void setPatchFaces()
Set faces to evaluate based on a patch.
A class for managing temporary objects.
void sampledSurfaceFaces(const dictionary &)
Set faces according to sampledSurface.
autoPtr< sampledSurface > surfacePtr_
Underlying sampledSurface.
labelList faceSign_
List of +1/-1 representing face flip map.
const sourceType & source() const
Return the source type.
const labelList & faceSign() const
Return the list of +1/-1 representing face flip map.
This function object provides a 'face source' variant of the fieldValues function object....
bool validField(const word &fieldName) const
Return true if the field name is valid.
const labelList & faceId() const
Return the local list of face IDs.
label orientedFieldsStart_
Start index of fields that require application of flipMap.
Registry of regIOobjects.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
Type processValues(const Field< Type > &values, const vectorField &Sf, const scalarField &weightField) const
Apply the 'operation' to the values. Wrapper around.
operationType operation_
Operation to apply to values.
const objectRegistry & obr() const
Return the reference to the object registry.
void combineSurfaceGeometry(faceList &faces, pointField &points) const
Combine surface faces and points from multiple processors.
bool writeArea_
Optionally write the area of the faceSource.
virtual void writeFileHeader(Ostream &os) const
Output file header information.
const word & name() const
Return the name of the geometric source.
TypeName("faceSource")
Run-time type information.
void initialise(const dictionary &dict)
Initialise, e.g. face addressing.
A list of keyword definitions, which are a keyword followed by any number of values (e....
tmp< Field< Type > > setFieldValues(const word &fieldName, const bool mustGet=false, const bool applyOrientation=false) const
Return field values by looking up field name.
sourceType
Source type enumeration.
virtual ~faceSource()
Destructor.
virtual void read(const dictionary &)
Read from dictionary.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
tmp< Field< Type > > filterField(const GeometricField< Type, fvsPatchField, surfaceMesh > &field, const bool applyOrientation) const
Filter a surface field according to faceIds.
sourceType source_
Source type.
const dictionary & dict() const
Return the reference to the construction dictionary.
const labelList & facePatch() const
Return the local list of patch ID per face.
Type processSameTypeValues(const Field< Type > &values, const vectorField &Sf, const scalarField &weightField) const
Apply the 'operation' to the values. Operation has to.
operationType
Operation type enumeration.
Base class for field value-based function objects.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
word weightFieldName_
Weight field name - optional.
static const NamedEnum< operationType, 15 > operationTypeNames_
Operation type names.
faceSource(const word &name, const objectRegistry &obr, const dictionary &dict, const bool loadFromFiles=false)
Construct from components.
autoPtr< surfaceWriter > surfaceWriterPtr_
Surface writer.
scalar totalArea_
Total area of the faceSource.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool orientWeightField_
Flag to indicate if flipMap should be applied to the weight field.
Generic GeometricField class.
labelList facePatchId_
Local list of patch ID per face.
scalar totalArea() const
Calculate and return total area of the faceSource: sum(magSf)
bool writeValues(const word &fieldName, const scalarField &weightField, const bool orient)
Templated helper function to output field values.
void combineMeshGeometry(faceList &faces, pointField &points) const
Combine mesh faces and points from multiple processors.
labelList faceId_
Local list of face IDs.
void setFaceZoneFaces()
Set faces to evaluate based on a face zone.
static const NamedEnum< sourceType, 3 > sourceTypeNames_
Source type names.