Go to the documentation of this file.
41 int main(
int argc,
char *argv[])
70 Info<<
"Starting walk on edge " << edgeI <<
endl;
72 initialEdges.
append(edgeI);
119 pf[faceI] =
Foam::sqrt(allFaceInfo[faceI].distSqr());
123 Info<<
"Writing patchDist volScalarField to " << runTime.value()
135 Info<<
"Walking on patch " << patch.
index()
136 <<
" from edges shared with patches " << otherPatchIDs
157 Info<<
"Writing otherPatchDist volScalarField to " << runTime.value()
static SLList< string > validArgs
A list of valid (mandatory) arguments.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A class for handling words, derived from string.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
const edgeList & edges() const
Return list of edges, address into LOCAL point list.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
#define forAll(list, i)
Loop across all elements in list.
const Field< PointType > & localPoints() const
Return pointField of points in patch.
Wave propagation of information along patch. Every iteration information goes through one layer of fa...
label nEdges() const
Return number of edges in patch.
void calc(const argList &args, const Time &runTime, const fvMesh &mesh)
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
PrimitivePatch< face, SubList, const pointField & > primitivePatch
Foam::primitivePatch.
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Like wallDist but calculates on a patch the distance to nearest neighbouring patches....
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
A patch is a list of labels that address the faces in the global face list.
bool erase(const iterator &)
Erase a hashedEntry specified by given iterator.
labelList identity(const label len)
Create identity map (map[i] == i) of given length.
Generic dimensioned Type class.
const double e
Elementary charge.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
static bool master(const label communicator=0)
Am I the master process.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
dimensionedScalar sqrt(const dimensionedScalar &ds)
label size() const
Return the number of elements in the PtrList.
int main(int argc, char *argv[])
Generic GeometricField class.
Foam::argList args(argc, argv)
label index() const
Return the index of this patch in the boundaryMesh.