automatic.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 | Copyright (C) 2012-2015 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM 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 OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::automatic
26 
27 Description
28 
29 SourceFiles
30  automatic.C
31 
32 \*---------------------------------------------------------------------------*/
33 
34 #ifndef automatic_H
35 #define automatic_H
36 
38 #include "triSurfaceFields.H"
40 #include "Switch.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 class triSurfaceMesh;
48 
49 /*---------------------------------------------------------------------------*\
50  Class automatic Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 class automatic
54 :
56 {
57 
58 private:
59 
60  // Private data
61 
62  //- Dictionary of coefficients for automatic cell sizing
63  const dictionary& coeffsDict_;
64 
65  //- Name of the surface. Used to write the cell size field
66  const fileName surfaceName_;
67 
69  const word curvatureFile_;
70 
73 
76 
77  //- The curvature values are multiplied by the inverse of this value to
78  // get the cell size
79  const scalar curvatureCellSizeCoeff_;
80 
81  //- The maximum allowable sell size
82  const scalar maximumCellSize_;
83 
84 
85  // Private Member Functions
86 
88 
89 
90 public:
91 
92  //- Runtime type information
93  TypeName("automatic");
94 
95 
96  // Constructors
97 
98  //- Construct from components
99  automatic
100  (
101  const dictionary& cellSizeCalcTypeDict,
102  const triSurfaceMesh& surface,
103  const scalar& defaultCellSize
104  );
105 
106 
107  //- Destructor
108  virtual ~automatic()
109  {}
110 
111 
112  // Member Functions
113 
114  //- Load the cell size field
116 };
117 
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 } // End namespace Foam
122 
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 
125 #endif
126 
127 // ************************************************************************* //
Foam::automatic::surfaceName_
const fileName surfaceName_
Name of the surface. Used to write the cell size field.
Definition: automatic.H:65
Foam::automatic::readInternalCloseness_
const Switch readInternalCloseness_
Definition: automatic.H:73
Foam::automatic::internalClosenessFile_
const word internalClosenessFile_
Definition: automatic.H:74
Foam::Switch
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
Definition: Switch.H:60
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::fileName
A class for handling file names.
Definition: fileName.H:69
PrimitivePatchInterpolation.H
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:118
triSurfaceFields.H
Fields for triSurface.
Foam::triSurfaceMesh
IOoject and searching on triSurface.
Definition: triSurfaceMesh.H:63
Foam::automatic::readCurvature_
const Switch readCurvature_
Definition: automatic.H:67
Foam::automatic::smoothField
void smoothField(triSurfaceScalarField &surf)
Foam::automatic::readFeatureProximity_
const Switch readFeatureProximity_
Definition: automatic.H:70
Foam::automatic::curvatureFile_
const word curvatureFile_
Definition: automatic.H:68
Foam::automatic::~automatic
virtual ~automatic()
Destructor.
Definition: automatic.H:107
Foam::automatic::maximumCellSize_
const scalar maximumCellSize_
The maximum allowable sell size.
Definition: automatic.H:81
Foam::automatic::coeffsDict_
const dictionary & coeffsDict_
Dictionary of coefficients for automatic cell sizing.
Definition: automatic.H:62
Switch.H
Foam::automatic::load
virtual tmp< triSurfacePointScalarField > load()
Load the cell size field.
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
cellSizeCalculationType.H
Foam::automatic::featureProximityFile_
const word featureProximityFile_
Definition: automatic.H:71
Foam::automatic::TypeName
TypeName("automatic")
Runtime type information.
Foam::surface
Definition: surface.H:55
Foam::cellSizeCalculationType
Abstract base class for specifying target cell sizes.
Definition: cellSizeCalculationType.H:52
Foam::automatic::automatic
automatic(const dictionary &cellSizeCalcTypeDict, const triSurfaceMesh &surface, const scalar &defaultCellSize)
Construct from components.
Foam::automatic::curvatureCellSizeCoeff_
const scalar curvatureCellSizeCoeff_
The curvature values are multiplied by the inverse of this value to.
Definition: automatic.H:78
Foam::automatic
Definition: automatic.H:52
Foam::DimensionedField
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Definition: DimensionedField.H:51