Merge branch 'master' of ssh://git.code.sf.net/p/foam-extend/foam-extend-3.2
[foam-extend-3.2.git] / src / mesh / cfMesh / utilities / boundaryLayers / detectBoundaryLayers / detectBoundaryLayers.C
blob7619f4c8fbe0e0b5bfc75fffaf96f15206290f64
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.
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.
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.
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/>.
24 Description
26 \*---------------------------------------------------------------------------*/
28 #include "detectBoundaryLayers.H"
29 #include "meshSurfacePartitioner.H"
30 #include "demandDrivenData.H"
32 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
34 namespace Foam
37 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
39 detectBoundaryLayers::detectBoundaryLayers
41     const meshSurfacePartitioner& meshSurface,
42     const bool is2DMesh
45     meshSurface_(meshSurface),
46     nFirstLayers_(0),
47     layerAtBndFace_(),
48     layerAtPatch_(),
49     hairEdges_(),
50     hairEdgesAtBoundaryPoint_(),
51     is2DMesh_(is2DMesh)
53     Info << "Detecting layers" << endl;
54     analyseLayers();
56     Info << "Generating hair edges" << endl;
57     generateHairEdges();
59     Info << "Finished with bnd layer detection" << endl;
62 // * * * * * * * * * * * * * * * * Destructor  * * * * * * * * * * * * * * * //
64 detectBoundaryLayers::~detectBoundaryLayers()
67 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
70 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
72 } // End namespace Foam
74 // ************************************************************************* //