Go to the documentation of this file.
51 int main(
int argc,
char *argv[])
86 Switch extrude(extrusionDict.lookup(
"extrude"));
96 mesh.insertPoints(pointFileName);
103 mesh.insertSurfacePointPairs();
104 mesh.boundaryConform();
106 while (runTime.loop())
108 Info<<
nl <<
"Time = " << runTime.timeName() <<
endl;
115 Info<<
"Finished Delaunay in = " << runTime.cpuTimeIncrement() <<
" s."
118 Info<<
"Begin filtering short edges:" <<
endl;
123 Info<<
"Meshed surface after edge filtering :" <<
endl;
124 sef.fMesh().writeStats(
Info);
126 if (
mesh.meshControls().meshedSurfaceOutput())
128 Info<<
"Write .obj file of the 2D mesh: MeshedSurface.obj" <<
endl;
129 sef.fMesh().
write(
"MeshedSurface.obj");
132 Info<<
"Finished filtering in = " << runTime.cpuTimeIncrement() <<
" s."
135 Info<<
"Begin constructing a polyMesh:" <<
endl;
145 poly2DMesh.createMesh();
164 Info<<
"Constructing patches." <<
endl;
166 label countPatches = 0;
170 if (poly2DMesh.patchSizes()[patchI] != 0)
174 poly2DMesh.patchNames()[patchI],
175 poly2DMesh.patchSizes()[patchI],
176 poly2DMesh.patchStarts()[patchI],
178 pMesh.boundaryMesh(),
190 Info<<
"Begin extruding the polyMesh:" <<
endl;
198 extruder.addFrontBackPatches();
202 extruder.setRefinement(meshMod);
206 pMesh.updateMesh(morphMap);
216 pMesh.setInstance(
"constant");
221 Info<<
"Finished extruding in = "
222 << runTime.cpuTimeIncrement() <<
" s." <<
endl;
static SLList< string > validArgs
A list of valid (mandatory) arguments.
This class filters short edges generated by the CV2D mesher.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
A class for handling file names.
static word defaultRegion
Return the default region name.
#define forAll(list, i)
Loop across all elements in list.
Direct mesh changes based on v1.3 polyTopoChange syntax.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static autoPtr< extrudeModel > New(const dictionary &)
Select null constructed.
Mesh consisting of general polyhedral cells.
virtual bool write() const
Write mesh using IO settings from time.
const Foam::HashTable< string > & options() const
Return options.
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.
runTime controlDict().lookup("adjustTimeStep") >> adjustTimeStep
virtual Ostream & write(const token &)=0
Write next token to stream.
Conformal-Voronoi 2D automatic mesher with grid or read initial points and point position relaxation ...
A patch is a list of labels that address the faces in the global face list.
int main(int argc, char *argv[])
static HashTable< string > validOptions
A list of valid options.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Input from memory buffer stream.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Xfer< T > xferMove(T &)
Construct by transferring the contents of the arg.
Convert a primitivePatch into a 2D polyMesh.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
static const word null
An empty word.
bool optionFound(const word &opt) const
Return true if the named option is found.
static void noParallel()
Remove the parallel options.
Given a 2D mesh insert all the topology changes to extrude. Does not work in parallel.
Foam::argList args(argc, argv)