Go to the documentation of this file.
44 int main(
int argc,
char *argv[])
62 if (outFileName == inFileName)
65 <<
"Output file " << outFileName
66 <<
" would overwrite the input file."
70 triSurf origSurface(inFileName);
76 vector negOffset, posOffset;
77 for(
label i=3;i<9;++i)
87 negOffset[(i-3)/2] =
s;
91 posOffset[(i-3)/2] =
s;
95 Info <<
"Neg offset " << negOffset <<
endl;
96 Info <<
"Pos offset " << posOffset <<
endl;
99 Info <<
"Surface bounding box " << bb <<
endl;
100 Info <<
"Generated bounding box " << newBB <<
endl;
122 const label nTriangles = origSurface.
size();
124 newTriangles.
setSize(nTriangles+12);
131 newPatches[
nPatches].name() =
"xMin";
132 newPatches[
nPatches+1].name() =
"xMax";
133 newPatches[
nPatches+2].name() =
"yMin";
134 newPatches[
nPatches+3].name() =
"yMax";
135 newPatches[
nPatches+4].name() =
"zMin";
136 newPatches[
nPatches+5].name() =
"zMax";
139 newTriangles[nTriangles] =
141 newTriangles[nTriangles+1] =
144 newTriangles[nTriangles+2] =
146 newTriangles[nTriangles+3] =
149 newTriangles[nTriangles+4] =
151 newTriangles[nTriangles+5] =
154 newTriangles[nTriangles+6] =
156 newTriangles[nTriangles+7] =
159 newTriangles[nTriangles+8] =
161 newTriangles[nTriangles+9] =
164 newTriangles[nTriangles+10] =
166 newTriangles[nTriangles+11] =
static SLList< string > validArgs
A list of valid (mandatory) arguments.
const stringList & args() const
Return arguments.
A class for handling file names.
const point & max() const
Maximum describing the bounding box.
int main(int argc, char *argv[])
Extract command arguments and options from the supplied argc and argv parameters.
Ostream & endl(Ostream &os)
Add newline and flush stream.
geometricSurfacePatchList & patchesAccess()
access to patches
void setSize(const label)
Reset size of List.
const word & executable() const
Name of executable without the path.
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.
pointField & pointsAccess()
non-const access to points
const geometricSurfacePatchList & patches() const
access to patches
LongList< labelledTri > & facetsAccess()
access to facets
const point & min() const
Minimum describing the bounding box.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
errorManipArg< error, int > exit(error &err, const int errNo=1)
void setSize(const label)
Reset size of List.
label size() const
return the number of triangles
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Triangle with additional region number.
void writeSurface(const fileName &) const
A bounding box defined in terms of the points at its extremities.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
void size(const label)
Override size to be inconsistent with allocated storage.
vector point
Point is a vector.
static void noParallel()
Remove the parallel options.
Foam::argList args(argc, argv)