Go to the documentation of this file.
77 uniqueMeshPointLabels,
87 globalFaces().gather(wghtSum, mergedWeights);
97 (directory/prefix +
"_" + inst.name()),
120 const auto* cpp = isA<cyclicAMIPolyPatch>(pp);
122 if (cpp && cpp->owner())
124 const auto& cycPatch = *cpp;
125 const auto& nbrPatch = cycPatch.neighbPatch();
129 Info<<
"Calculating AMI weights between owner patch: "
130 << cycPatch.name() <<
" and neighbour patch: "
131 << nbrPatch.name() <<
endl;
157 int main(
int argc,
char *argv[])
161 "Mesh motion and topological mesh changes utility"
169 "Check AMI weights and write VTK files of the AMI patches"
176 const bool checkAMI =
args.
found(
"checkAMI");
180 Info<<
"Writing VTK files with weights of AMI patches." <<
nl <<
endl;
183 const bool overwrite =
args.
found(
"overwrite");
virtual const dictionary dict() const
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.
A class for handling words, derived from Foam::string.
A class for handling file names.
virtual bool checkMesh(const bool report=false) 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
static void addNote(const string ¬e)
static bool master(const label communicator=worldComm)
const polyBoundaryMesh & boundaryMesh() const
Ostream & endl(Ostream &os)
const Type & value() const
Mesh consisting of general polyhedral cells.
Ostream & printExecutionTime(OSstream &os) const
const fileName & pointsInstance() const
Generic templated field type.
virtual bool write(const bool valid=true) const
A patch is a list of labels that address the faces in the global face list.
const scalarField & srcWeightsSum() const
Base class for graphics format writing. Entry points are.
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Write faces/points (optionally with fields) as a vtp file or a legacy vtk file.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Interpolation class dealing with transfer of data between two primitive patches with an arbitrary mes...
fileName globalPath() const
word name(const expressions::valueTypeCode typeCode)
const Time & time() const
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)
vtk::internalMeshWriter writer(topoMesh, topoCells, vtk::formatType::INLINE_ASCII, runTime.path()/"blockTopology")
const scalarField & tgtWeightsSum() const
void setInstance(const fileName &instance, const IOobject::writeOption wOpt=IOobject::AUTO_WRITE)
bool found(const word &optName) const
A list of faces which address into the list of points.