zipUpMesh.C
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2011-2015 OpenFOAM Foundation
9-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26Application
27 zipUpMesh
28
29Group
30 grpMeshManipulationUtilities
31
32Description
33 Reads in a mesh with hanging vertices and 'zips' up the cells
34 to guarantee that all polyhedral cells of valid shape are closed.
35
36 Meshes with hanging vertices may occur as a result of split
37 hex mesh conversion or integration or coupled math face pairs.
38
39\*---------------------------------------------------------------------------*/
40
41#include "argList.H"
42#include "Time.H"
43#include "polyMesh.H"
44#include "polyMeshZipUpCells.H"
45#include "boolList.H"
46
47using namespace Foam;
48
49// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50
51int main(int argc, char *argv[])
52{
53 argList::addNote
54 (
55 "Reads in a mesh with hanging vertices and 'zips' up the cells"
56 " to guarantee that all polyhedral cells of valid shape are closed.\n"
57 "Meshes with hanging vertices may occur as a result of split"
58 " hex mesh conversion or integration or coupled math face pairs."
59 );
60
61 #include "addRegionOption.H"
62
63 #include "setRootCase.H"
64 #include "createTime.H"
65 #include "createNamedPolyMesh.H"
66
68 {
69 Info<< "Writing zipped-up polyMesh to " << mesh.facesInstance() << endl;
70 mesh.write();
71 }
72
73 Info<< "End\n" << endl;
74
75 return 0;
76}
77
78
79// ************************************************************************* //
dynamicFvMesh & mesh
Required Variables.
Namespace for OpenFOAM.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:372
bool polyMeshZipUpCells(polyMesh &mesh)
Cell zip-up tool. This function modifies the list of faces such that all the cells are topologically ...