72 uniqueMeshPointLabels,
94 prefix +
"_" + timeName,
105 void writeWeights(
const polyMesh& mesh)
113 if (isA<cyclicAMIPolyPatch>(pbm[patchi]))
116 refCast<const cyclicAMIPolyPatch>(pbm[
patchi]);
120 Info<<
"Calculating AMI weights between owner patch: " 121 << cpp.
name() <<
" and neighbour patch: " 152 int main(
int argc,
char *argv[])
169 Info<<
"Writing VTK files with weights of AMI patches." <<
nl <<
endl;
179 while (runTime.loop())
181 Info<<
"Time = " << runTime.timeName() <<
endl;
200 Info<<
"ExecutionTime = " << runTime.elapsedCpuTime() <<
" s" 201 <<
" ClockTime = " << runTime.elapsedClockTime() <<
" s"
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
#define forAll(list, i)
Loop across all elements in list.
const AMIPatchToPatchInterpolation & AMI() const
Return a reference to the AMI interpolator.
const word & name() const
Return name.
A class for handling file names.
const dictionary & pimple
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool optionFound(const word &opt) const
Return true if the named option is found.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none.
static bool master(const label communicator=0)
Am I the master process.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
static label worldComm
Default communicator (all processors)
const labelList & meshPoints() const
Return labelList of mesh points in patch. They are constructed.
const List< Face > & localFaces() const
Return patch faces addressing into local point list.
A list of faces which address into the list of points.
const Map< label > & meshPointMap() const
Mesh point map. Given the global point index find its.
A class for handling words, derived from string.
virtual bool checkMesh(const bool report=false) const
Check mesh for correctness. Returns false for no error.
const scalarField & tgtWeightsSum() const
Return const access to normalisation factor of target.
List< label > labelList
A List of labels.
Cyclic patch for Arbitrary Mesh Interface (AMI)
virtual void write(const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces, const bool verbose=false) const
Write single surface geometry to file.
const Time & time() const
Return time.
const scalarField & srcWeightsSum() const
Return const access to normalisation factor of source.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
A surfaceWriter for VTK legacy format.
virtual const cyclicAMIPolyPatch & neighbPatch() const
Return a reference to the neighbour patch.
PIMPLE control class to supply convergence information/checks for the PIMPLE loop.
virtual bool owner() const
Does this side own the patch?
Interpolation class dealing with transfer of data between two primitive patches with an arbitrary mes...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Mesh consisting of general polyhedral cells.
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
Foam::argList args(argc, argv)
static List< int > & procID(label communicator)
Process ID of given process index.