edgeMeshTools.H
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) 2017 OpenCFD Ltd.
9 -------------------------------------------------------------------------------
10 License
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 
26 Namespace
27  Foam::edgeMeshTools
28 
29 Description
30  Collection of static functions related to edgeMesh features.
31 
32 SourceFiles
33  edgeMeshTools.C
34  edgeMeshFeatureProximity.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef edgeMeshTools_H
39 #define edgeMeshTools_H
40 
41 #include "tmp.H"
42 #include "scalarField.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 
49 class edgeMesh;
50 class extendedEdgeMesh;
51 class extendedFeatureEdgeMesh;
52 class triSurface;
53 class Time;
54 class Ostream;
55 
56 /*---------------------------------------------------------------------------*\
57  Namespace edgeMeshTools Declaration
58 \*---------------------------------------------------------------------------*/
59 
60 namespace edgeMeshTools
61 {
62  //- Write some information
63  void writeStats
64  (
65  Ostream& os,
66  const extendedFeatureEdgeMesh& emesh
67  );
68 
69 
70  //- Calculate proximity of the features to the surface
71  tmp<scalarField> featureProximity
72  (
73  const extendedEdgeMesh& emesh,
74  const triSurface& surf,
75  const scalar searchDistance
76  );
77 
78 
79  //- Calculate proximity of the features to the surface and write the field
80  tmp<scalarField> writeFeatureProximity
81  (
82  const Time& runTime,
83  const word& basename,
84  const extendedEdgeMesh& emesh,
85  const triSurface& surf,
86  const scalar searchDistance
87  );
88 
89 } // End namespace edgeMeshTools
90 
91 
92 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
93 
94 } // End namespace Foam
95 
96 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
97 
98 #endif
99 
100 // ************************************************************************* //
runTime
engineTime & runTime
Definition: createEngineTime.H:13
scalarField.H
Foam::edgeMeshTools::writeFeatureProximity
tmp< scalarField > writeFeatureProximity(const Time &runTime, const word &basename, const extendedEdgeMesh &emesh, const triSurface &surf, const scalar searchDistance)
Calculate proximity of the features to the surface and write the field.
Definition: edgeMeshFeatureProximity.C:191
Foam::edgeMeshTools::writeStats
void writeStats(Ostream &os, const extendedFeatureEdgeMesh &emesh)
Write some information.
Definition: edgeMeshTools.C:36
os
OBJstream os(runTime.globalPath()/outputName)
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
tmp.H
Foam::edgeMeshTools::featureProximity
tmp< scalarField > featureProximity(const extendedEdgeMesh &emesh, const triSurface &surf, const scalar searchDistance)
Calculate proximity of the features to the surface.
Definition: edgeMeshFeatureProximity.C:141