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-------------------------------------------------------------------------------
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
26Namespace
27 Foam::edgeMeshTools
28
29Description
30 Collection of static functions related to edgeMesh features.
31
32SourceFiles
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
46namespace Foam
47{
48
49class edgeMesh;
52class triSurface;
53class Time;
54class Ostream;
55
56/*---------------------------------------------------------------------------*\
57 Namespace edgeMeshTools Declaration
58\*---------------------------------------------------------------------------*/
59
60namespace 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
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
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// ************************************************************************* //
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:62
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Definition: Time.H:80
Mesh data needed to do the Finite Area discretisation.
Definition: edgeFaMesh.H:56
Description of feature edges and points.
A class for managing temporary objects.
Definition: tmp.H:65
Triangulated surface description with patch information.
Definition: triSurface.H:79
A class for handling words, derived from Foam::string.
Definition: word.H:68
engineTime & runTime
OBJstream os(runTime.globalPath()/outputName)
void writeStats(Ostream &os, const extendedFeatureEdgeMesh &emesh)
Write some information.
Definition: edgeMeshTools.C:36
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.
tmp< scalarField > featureProximity(const extendedEdgeMesh &emesh, const triSurface &surf, const scalar searchDistance)
Calculate proximity of the features to the surface.
Namespace for OpenFOAM.