153 class sampledSurface;
155 namespace fieldValues
212 void setFaceZoneFaces();
215 void setPatchFaces();
218 void sampledSurfaceFaces(
const dictionary&);
221 void combineMeshGeometry
228 void combineSurfaceGeometry
235 scalar totalArea()
const;
305 const word& fieldName,
306 const bool mustGet =
false,
307 const bool applyOrientation =
false 346 const bool loadFromFiles =
false 377 virtual void write();
383 const word& fieldName,
393 const bool applyOrientation
401 const bool applyOrientation
labelList faceSign_
List of +1/-1 representing face flip map.
bool orientWeightField_
Flag to indicate if flipMap should be applied to the weight field.
const pointField & points
static const NamedEnum< sourceType, 3 > sourceTypeNames_
Source type names.
const labelList & faceId() const
Return the local list of face IDs.
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.
static const NamedEnum< operationType, 15 > operationTypeNames_
Operation type names.
const labelList & facePatch() const
Return the local list of patch ID per face.
labelList facePatchId_
Local list of patch ID per face.
bool validField(const word &fieldName) const
Return true if the field name is valid.
tmp< Field< Type > > filterField(const GeometricField< Type, fvsPatchField, surfaceMesh > &field, const bool applyOrientation) const
Filter a surface field according to faceIds.
label nFaces_
Global number of faces.
sourceType source_
Source type.
A class for handling words, derived from string.
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 ~faceSource()
Destructor.
const labelList & faceSign() const
Return the list of +1/-1 representing face flip map.
autoPtr< surfaceWriter > surfaceWriterPtr_
Surface writer.
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.
void initialise(const dictionary &dict)
Initialise, e.g. face addressing.
vectorField pointField
pointField is a vectorField.
const dictionary & dict() const
Return the reference to the construction dictionary.
virtual void writeFileHeader(const label i)
Output file header information.
TypeName("faceSource")
Run-time type information.
operationType
Operation type enumeration.
const word & name() const
Return the name of the geometric source.
faceSource(const word &name, const objectRegistry &obr, const dictionary &dict, const bool loadFromFiles=false)
Construct from components.
label orientedFieldsStart_
Start index of fields that require application of flipMap.
Pre-declare SubField and related Field type.
virtual void read(const dictionary &)
Read from dictionary.
const objectRegistry & obr() const
Return the reference to the object registry.
Generic GeometricField class.
bool writeArea_
Optionally write the area of the faceSource.
scalar totalArea_
Total area of the faceSource.
sourceType
Source type enumeration.
Registry of regIOobjects.
List< label > labelList
A List of labels.
Type processValues(const Field< Type > &values, const vectorField &Sf, const scalarField &weightField) const
Apply the 'operation' to the values. Wrapper around.
const sourceType & source() const
Return the source type.
Type processSameTypeValues(const Field< Type > &values, const vectorField &Sf, const scalarField &weightField) const
Apply the 'operation' to the values. Operation has to.
virtual void write()
Calculate and write.
A class for managing temporary objects.
scalar scaleFactor_
Scale factor - optional.
word weightFieldName_
Weight field name - optional.
operationType operation_
Operation to apply to values.
autoPtr< sampledSurface > surfacePtr_
Underlying sampledSurface.