meshToFPMA.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 Description
25  Writes the mesh in fpma format readable by AVL's CfdWM
26 
27 \*---------------------------------------------------------------------------*/
28 
29 #include "argList.H"
30 #include "polyMeshGenModifier.H"
31 #include "writeMeshFPMA.H"
32 
33 using namespace Foam;
34 
35 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
36 
37 int main(int argc, char *argv[])
38 {
39 # include "setRootCase.H"
40 # include "createTime.H"
41 
42  polyMeshGen pmg(runTime);
43  pmg.read();
44 
45  if( Pstream::parRun() )
46  {
49  }
50 
51  writeMeshFPMA(pmg, "convertedMesh");
52 
53  Info << "End\n" << endl;
54  return 0;
55 }
56 
57 // ************************************************************************* //
Foam::writeMeshFPMA
void writeMeshFPMA(const polyMeshGen &mesh, const word &fName)
Definition: writeMeshFPMA.C:44
Foam::UPstream::parRun
static bool & parRun()
Is this a parallel run?
Definition: UPstream.H:377
polyMeshGenModifier.H
Foam::createFIRESelections
void createFIRESelections(polyMeshGen &mesh)
Definition: writeMeshFPMA.C:78
Foam::polyMeshGen
Definition: polyMeshGen.H:46
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
Foam::polyMeshGen::read
void read()
Definition: polyMeshGen.C:121
writeMeshFPMA.H
Foam::Info
messageStream Info
argList.H
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::polyMeshGenModifier
Definition: polyMeshGenModifier.H:52
setRootCase.H
main
int main(int argc, char *argv[])
Definition: meshToFPMA.C:37
createTime.H
Foam::polyMeshGenModifier::addBufferCells
void addBufferCells()
Definition: polyMeshGenModifierAddBufferCells.C:43