Go to the documentation of this file.
77 uniqueMeshPointLabels,
87 globalFaces().gather(wghtSum, mergedWeights);
97 (directory/prefix +
"_" + inst.name()),
120 if (isA<cyclicAMIPolyPatch>(pp))
123 refCast<const cyclicAMIPolyPatch>(pp);
127 Info<<
"Calculating AMI weights between owner patch: "
128 << cpp.
name() <<
" and neighbour patch: "
159 int main(
int argc,
char *argv[])
163 "Mesh motion and topological mesh changes utility"
171 "Check AMI weights and write VTK files of the AMI patches"
178 const bool checkAMI =
args.
found(
"checkAMI");
182 Info<<
"Writing VTK files with weights of AMI patches." <<
nl <<
endl;
185 const bool overwrite =
args.
found(
"overwrite");
virtual const dictionary dict() const
Return the solution dictionary.
PIMPLE control class to supply convergence information/checks for the PIMPLE loop.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Calculates points shared by more than two processor patches or cyclic patches.
virtual bool owner() const
Does this side own the patch?
A class for handling words, derived from Foam::string.
A class for handling file names.
virtual bool update()=0
Update the mesh for both mesh motion and topology change.
virtual bool checkMesh(const bool report=false) const
Check mesh for correctness. Returns false for no error.
const scalarField & tgtWeightsSum() const
static word timeName(const scalar t, const int precision=precision_)
virtual void write(const coordSet &, const wordList &, const List< const Field< Type > * > &, Ostream &) const =0
General entry point for writing.
static void addNote(const string ¬e)
Add extra notes for the usage information.
const scalarField & srcWeightsSum() const
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Type & value() const
Return const reference to value.
Mesh consisting of general polyhedral cells.
Ostream & printExecutionTime(OSstream &os) const
Print the elapsed ExecutionTime (cpu-time), ClockTime.
const fileName & pointsInstance() const
Return the current instance directory for points.
virtual bool write(const bool valid=true) const
Write using setting from DB.
messageStream Info
Information stream (uses stdout - output is on the master only)
A patch is a list of labels that address the faces in the global face list.
word name(const complex &c)
Return string representation of complex.
static word outputPrefix
Directory prefix.
virtual const cyclicAMIPolyPatch & neighbPatch() const
Return a reference to the neighbour patch.
virtual bool loop()
Return true if run should continue and if so increment time.
Base class for graphics format writing. Entry points are.
virtual bool loop()
PIMPLE loop.
static bool master(const label communicator=0)
Am I the master process.
bool firstIter() const
Return true for first PIMPLE (outer) iteration.
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
Add a bool option to validOptions with usage information.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const AMIPatchToPatchInterpolation & AMI() const
Return a reference to the AMI interpolator.
Write faces/points (optionally with fields) as a vtp file or a legacy vtk file.
const std::string patch
OpenFOAM patch number as a std::string.
Interpolation class dealing with transfer of data between two primitive patches with an arbitrary mes...
fileName globalPath() const
Return global path for the case.
const Time & time() const
Return the top-level database.
An instant of time. Contains the time value and name.
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
Foam::argList args(argc, argv)
const word & name() const
The patch name.
void setInstance(const fileName &instance, const IOobject::writeOption wOpt=IOobject::AUTO_WRITE)
Set the instance for mesh files.
bool found(const word &optName) const
Return true if the named option is found.
A list of faces which address into the list of points.
Cyclic patch for Arbitrary Mesh Interface (AMI)