94 #ifndef functionObjects_AMIWeights_H 95 #define functionObjects_AMIWeights_H 105 namespace functionObjects
114 public fvMeshFunctionObject,
139 const cyclicAMIPolyPatch& cpp,
184 virtual bool write();
Computes the min/max/average weights of arbitrary mesh interface (AMI) patches, and optionally report...
virtual ~AMIWeights()=default
Destructor.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
void operator=(const AMIWeights &)=delete
No copy assignment.
bool writeFields_
Flag to write AMI fields (as VTK files)
AMIWeights(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
TypeName("AMIWeights")
Runtime type information.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const word & name() const noexcept
Return the name of this functionObject.
void writeWeightField(const cyclicAMIPolyPatch &cpp, const scalarField &weightSum, const word &side) const
Write weight field.
labelList patchIDs_
List of AMI patch IDs.
void writeWeightFields(const cyclicAMIPolyPatch &cpp) const
Write weight fields if writeFields=true.
A class for handling words, derived from Foam::string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
virtual void writeFileHeader(Ostream &os)
Output file header information.
virtual void reportPatch(const cyclicAMIPolyPatch &pp)
Helper function to report patch information.
OBJstream os(runTime.globalPath()/outputName)
virtual bool read(const dictionary &)
Read the field min/max data.
virtual bool write()
Write the AMIWeights.
List< label > labelList
A List of labels.
virtual bool execute()
Execute, currently does nothing.
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())