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;
158 move(poly2DMesh.points()),
159 move(poly2DMesh.faces()),
160 move(poly2DMesh.owner()),
161 move(poly2DMesh.neighbour())
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);
205 meshMod.changeMesh(pMesh,
false);
207 pMesh.topoChange(map);
217 pMesh.setInstance(
"constant");
222 Info<<
"Finished extruding in = " 223 << runTime.cpuTimeIncrement() <<
" s." <<
endl;
const fvPatchList & patches
const word & executable() const
Name of executable without the path.
#define forAll(list, i)
Loop across all elements in list.
virtual Ostream & write(const char)=0
Write character.
A class for handling file names.
runTime controlDict().lookup("adjustTimeStep") >> adjustTimeStep
A list of keyword definitions, which are a keyword followed by any number of values (e...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
static word defaultRegion
Return the default region name.
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/any.
static void noParallel()
Remove the parallel options.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
virtual bool write(const bool write=true) const
Write mesh using IO settings from time.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
const Foam::HashTable< string > & options() const
Return options.
static autoPtr< extrudeModel > New(const dictionary &)
Select null constructed.
static const word null
An empty word.
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
Convert a primitivePatch into a 2D polyMesh.
Given a 2D mesh insert all the topology changes to extrude. Does not work in parallel.
Input from memory buffer stream.
void createMesh()
Create the mesh.
Direct mesh changes based on v1.3 polyTopoChange syntax.
Conformal-Voronoi 2D automatic mesher with grid or read initial points and point position relaxation ...
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.
A patch is a list of labels that address the faces in the global face list.
This class filters short edges generated by the CV2D mesher.
Foam::argList args(argc, argv)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
static HashTable< string > validOptions
A list of valid options.