detectBoundaryLayers.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 
26 \*---------------------------------------------------------------------------*/
27 
28 #include "detectBoundaryLayers.H"
29 #include "meshSurfacePartitioner.H"
30 #include "demandDrivenData.H"
31 
32 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
33 
34 namespace Foam
35 {
36 
37 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
38 
40 (
41  const meshSurfacePartitioner& meshSurface,
42  const bool is2DMesh
43 )
44 :
45  meshSurface_(meshSurface),
46  nFirstLayers_(0),
47  layerAtBndFace_(),
48  layerAtPatch_(),
49  hairEdges_(),
50  hairEdgesAtBoundaryPoint_(),
51  is2DMesh_(is2DMesh)
52 {
53  Info << "Detecting layers" << endl;
54  analyseLayers();
55 
56  Info << "Generating hair edges" << endl;
57  generateHairEdges();
58 
59  Info << "Finished with bnd layer detection" << endl;
60 }
61 
62 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
63 
65 {}
66 
67 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
68 
69 
70 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
71 
72 } // End namespace Foam
73 
74 // ************************************************************************* //
Foam::detectBoundaryLayers::detectBoundaryLayers
detectBoundaryLayers(const detectBoundaryLayers &)
Disallow bitwise copy construct.
demandDrivenData.H
Template functions to aid in the implementation of demand driven data.
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
Foam::detectBoundaryLayers::~detectBoundaryLayers
~detectBoundaryLayers()
Definition: detectBoundaryLayers.C:64
Foam::Info
messageStream Info
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::meshSurfacePartitioner
Definition: meshSurfacePartitioner.H:52
detectBoundaryLayers.H
meshSurfacePartitioner.H