51 int main(
int argc,
char *argv[])
86 Switch extrude(extrusionDict.lookup(
"extrude"));
96 mesh.insertPoints(pointFileName);
103 mesh.insertSurfacePointPairs();
104 mesh.boundaryConform();
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");
135 Info<<
"Begin constructing a polyMesh:" <<
endl;
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 = " const word & executable() const
Name of executable without the path.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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...
virtual bool write(const bool valid=true) const
Write mesh using IO settings from time.
virtual bool loop()
Return true if run should continue and if so increment time.
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.
static void noParallel()
Remove the parallel options.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar 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.
Xfer< T > xferMove(T &)
Construct by transferring the contents of the arg.
double cpuTimeIncrement() const
Return CPU time (in seconds) since last call to cpuTimeIncrement()
const word & constant() const
Return constant name.
static const word null
An empty word.
const word & system() const
Return system name.
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...
virtual Ostream & write(const token &)=0
Write next token to stream.
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.
virtual bool write(const bool valid=true) const
Write using setting from DB.
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.