tetMesh.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | cfMesh: A library for mesh generation
4  \\ / O peration |
5  \\ / A nd | Author: Franjo Juretic (franjo.juretic@c-fields.com)
6  \\/ M anipulation | Copyright (C) Creative Fields, Ltd.
7 -------------------------------------------------------------------------------
8 License
9  This file is part of cfMesh.
10 
11  cfMesh is free software; you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by the
13  Free Software Foundation; either version 3 of the License, or (at your
14  option) any later version.
15 
16  cfMesh is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with cfMesh. If not, see <http://www.gnu.org/licenses/>.
23 
24 Application
25  Generates tetrahedral mesh
26 
27 Description
28  - takes a triangulated surface and generates a tetrahedral mesh
29 
30 \*---------------------------------------------------------------------------*/
31 
32 #include "argList.H"
33 #include "tetMeshGenerator.H"
34 
35 using namespace Foam;
36 
37 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
38 
39 // Main program:
40 
41 int main(int argc, char *argv[])
42 {
43 # include "setRootCase.H"
44 # include "createTime.H"
45 
46  //- tetrahedral mesher cannot be run in parallel yet
48 
49  tetMeshGenerator tmg(runTime);
50 
51  Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s\n"
52  << "ClockTime = " << runTime.elapsedClockTime() << endl;
53 
54  tmg.writeMesh();
55 
56  Info << "End\n" << endl;
57  return 0;
58 }
59 
60 // ************************************************************************* //
tetMeshGenerator.H
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
Foam::tetMeshGenerator::writeMesh
void writeMesh() const
write the mesh
Definition: tetMeshGenerator.C:387
Foam::Info
messageStream Info
argList.H
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
setRootCase.H
createTime.H
main
int main(int argc, char *argv[])
Definition: tetMesh.C:38
Foam::argList::noParallel
static void noParallel()
Remove the parallel options.
Definition: argList.C:161
Foam::tetMeshGenerator
Definition: tetMeshGenerator.H:56