68 void writeWeights(
const polyMesh& mesh)
76 if (isA<cyclicAMIPolyPatch>(pbm[patchi]))
79 refCast<const cyclicAMIPolyPatch>(pbm[
patchi]);
83 Info<<
"Calculating AMI weights between owner patch: " 84 << cpp.
name() <<
" and neighbour patch: " 113 int main(
int argc,
char *argv[])
130 Info<<
"Writing VTK files with weights of AMI patches." <<
nl <<
endl;
140 while (runTime.loop())
142 Info<<
"Time = " << runTime.timeName() <<
endl;
161 Info<<
"ExecutionTime = " << runTime.elapsedCpuTime() <<
" s" 162 <<
" ClockTime = " << runTime.elapsedClockTime() <<
" s" const Time & time() const
Return time.
#define forAll(list, i)
Loop across all elements in list.
A class for handling file names.
const List< Face > & localFaces() const
Return patch faces addressing into local point list.
static int myProcNo(const label communicator=0)
Number of this process (starting from masterNo() = 0)
const dictionary & pimple
Ostream & endl(Ostream &os)
Add newline and flush stream.
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 word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
virtual bool checkMesh(const bool report=false) const
Check mesh for correctness. Returns false for no error.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
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.
A list of faces which address into the list of points.
bool optionFound(const word &opt) const
Return true if the named option is found.
A class for handling words, derived from string.
virtual bool owner() const
Does this side own the patch?
Cyclic patch for Arbitrary Mesh Interface (AMI)
const word & name() const
Return name.
word name(const complex &)
Return a string representation of a complex.
A surfaceWriter for VTK legacy format.
const scalarField & srcWeightsSum() const
Return const access to normalisation factor of source.
PIMPLE control class to supply convergence information/checks for the PIMPLE loop.
Interpolation class dealing with transfer of data between two primitive patches with an arbitrary mes...
const AMIPatchToPatchInterpolation & AMI() const
Return a reference to the AMI interpolator.
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.
const scalarField & tgtWeightsSum() const
Return const access to normalisation factor of target.
Foam::argList args(argc, argv)
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
const Field< PointType > & localPoints() const
Return pointField of points in patch.
virtual const cyclicAMIPolyPatch & neighbPatch() const
Return a reference to the neighbour patch.