Go to the documentation of this file.
94 #ifndef functionObjects_AMIWeights_H
95 #define functionObjects_AMIWeights_H
105 namespace functionObjects
114 public fvMeshFunctionObject,
134 virtual void reportPatch(
const cyclicAMIPolyPatch& pp);
139 const cyclicAMIPolyPatch& cpp,
184 virtual bool write();
List< label > labelList
A List of labels.
virtual bool read(const dictionary &)
Read the field min/max data.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void operator=(const AMIWeights &)=delete
No copy assignment.
labelList patchIDs_
List of AMI patch IDs.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
virtual void reportPatch(const cyclicAMIPolyPatch &pp)
Helper function to report patch information.
void writeWeightFields(const cyclicAMIPolyPatch &cpp) const
Write weight fields if writeFields=true.
virtual bool write()
Write the AMIWeights.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
void writeWeightField(const cyclicAMIPolyPatch &cpp, const scalarField &weightSum, const word &side) const
Write weight field.
TypeName("AMIWeights")
Runtime type information.
virtual ~AMIWeights()=default
Destructor.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
virtual bool execute()
Execute, currently does nothing.
Computes the min/max/average weights of arbitrary mesh interface (AMI) patches, and optionally report...
const word & name() const noexcept
Return the name of this functionObject.
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.
virtual void writeFileHeader(Ostream &os)
Output file header information.
Base class for writing single files from the function objects.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Cyclic patch for Arbitrary Mesh Interface (AMI)