1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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.
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
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/>.
28 Simple container to keep together snap specific information.
33 \*---------------------------------------------------------------------------*/
35 #ifndef snapParameters_H
36 #define snapParameters_H
38 #include "dictionary.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 // Class forward declarations
48 /*---------------------------------------------------------------------------*\
49 Class snapParameters Declaration
50 \*---------------------------------------------------------------------------*/
56 const label nSmoothPatch_;
58 const scalar snapTol_;
60 const label nSmoothDispl_;
64 const label nFeatureSnap_;
67 // Private Member Functions
69 //- Disallow default bitwise copy construct
70 snapParameters(const snapParameters&);
72 //- Disallow default bitwise assignment
73 void operator=(const snapParameters&);
80 //- Construct from dictionary
81 snapParameters(const dictionary& dict);
88 //- Number of patch smoothing iterations before finding
89 // correspondence to surface
90 label nSmoothPatch() const
95 //- Relative distance for points to be attracted by surface
97 // or edge. True distance is this factor times local
98 // maximum edge length.
99 scalar snapTol() const
104 //- Number of mesh displacement smoothing iterations.
105 label nSmoothDispl() const
107 return nSmoothDispl_;
110 //- Maximum number of snapping relaxation iterations. Should stop
111 // before upon reaching a correct mesh.
117 label nFeatureSnap() const
119 return nFeatureSnap_;
125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 } // End namespace Foam
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
133 // ************************************************************************* //