Go to the documentation of this file.
57 int main(
int argc,
char *argv[])
61 "Conformal Voronoi 2D automatic mesh generator"
92 const bool extrude = extrusionDict.get<
bool>(
"extrude");
93 const bool overwrite =
args.
found(
"overwrite");
108 mesh.insertSurfacePointPairs();
109 mesh.boundaryConform();
123 Info<<
"Begin filtering short edges:" <<
endl;
128 Info<<
"Meshed surface after edge filtering :" <<
endl;
129 sef.fMesh().writeStats(
Info);
131 if (
mesh.meshControls().meshedSurfaceOutput())
133 Info<<
"Write .obj file of the 2D mesh: MeshedSurface.obj" <<
endl;
134 sef.fMesh().
write(
"MeshedSurface.obj");
140 Info<<
"Begin constructing a polyMesh:" <<
endl;
150 poly2DMesh.createMesh();
163 std::move(poly2DMesh.points()),
164 std::move(poly2DMesh.faces()),
165 std::move(poly2DMesh.owner()),
166 std::move(poly2DMesh.neighbour())
169 Info<<
"Constructing patches." <<
endl;
171 label countPatches = 0;
175 if (poly2DMesh.patchSizes()[patchi] != 0)
179 poly2DMesh.patchNames()[patchi],
180 poly2DMesh.patchSizes()[patchi],
181 poly2DMesh.patchStarts()[patchi],
183 pMesh.boundaryMesh(),
195 Info<<
"Begin extruding the polyMesh:" <<
endl;
203 extruder.addFrontBackPatches();
207 extruder.setRefinement(meshMod);
211 pMesh.updateMesh(morphMap());
221 pMesh.setInstance(
"constant");
226 Info<<
"Finished extruding in = "
This class filters short edges generated by the CV2D mesher.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling file names.
virtual bool write(const bool valid=true) const
static word defaultRegion
static word timeName(const scalar t, const int precision=precision_)
Direct mesh changes based on v1.3 polyTopoChange syntax.
static void addNote(const string ¬e)
Ostream & endl(Ostream &os)
double cpuTimeIncrement() const
T get(const label index) const
Mesh consisting of general polyhedral cells.
virtual bool write(const bool valid=true) const
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.
runTime controlDict().readEntry("adjustTimeStep"
void setSize(const label newLen)
static autoPtr< extrudeModel > New(const dictionary &dict)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool write(const token &tok)=0
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const word & system() const
const word & executable() const noexcept
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...
const polyBoundaryMesh & patches
Given a 2D mesh insert all the topology changes to extrude. Does not work in parallel.
const word & constant() const
static void addOption(const word &optName, const string ¶m="", const string &usage="", bool advanced=false)
Foam::argList args(argc, argv)
bool found(const word &optName) const