surfaceFeaturesConfiguration.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2023 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::surfaceFeaturesConfiguration
26 
27 Description
28  From a set of input surface geometry files and some configuration
29  parameters, writes out a surfacesFeaturesDict configuration file.
30 
31 SourceFiles
32  surfaceFeaturesConfiguration.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef surfaceFeaturesConfiguration_H
37 #define surfaceFeaturesConfiguration_H
38 
39 #include "caseFileConfiguration.H"
40 #include "meshingSurfaceList.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class surfaceFeaturesConfiguration Declaration
49 \*---------------------------------------------------------------------------*/
50 
52 :
54 {
55  // Private Data
56 
57  //- List of surfaces used for generating features
58  const meshingSurfaceList& surfaces_;
59 
60 
61  // Private Member Functions
62 
63  //- Write surfaces
64  void writeSurfaces();
65 
66  //- Write subsetFeatures sub-dictionary
67  void writeSubsetFeatures();
68 
69  //- Write trimFeatures sub-dictionary
70  void writeTrimFeatures();
71 
72 public:
73 
74  // Constructors
75 
76  //- Construct from components
78  (
79  const fileName& name,
80  const fileName& dir,
81  const Time& time,
82  const meshingSurfaceList& surfaces
83  );
84 
85  //- Disallow default bitwise copy construction
87  (
89  ) = delete;
90 
91 
92  //- Destructor
94 
95 
96  // Member Functions
97 
98  // Writing surfaceFeaturesDict
99  void write();
100 
101 
102  // Member Operators
103 
104  //- Disallow default bitwise assignment
105  void operator=(const surfaceFeaturesConfiguration&) = delete;
106 };
107 
108 
109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
110 
111 } // End namespace Foam
112 
113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114 
115 #endif
116 
117 // ************************************************************************* //
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Definition: Time.H:76
Base class for writing case files.
A class for handling file names.
Definition: fileName.H:82
List of meshingSurfaces which stores the overall bounding box of all the meshingSurfaces.
From a set of input surface geometry files and some configuration parameters, writes out a surfacesFe...
void operator=(const surfaceFeaturesConfiguration &)=delete
Disallow default bitwise assignment.
surfaceFeaturesConfiguration(const fileName &name, const fileName &dir, const Time &time, const meshingSurfaceList &surfaces)
Construct from components.
Namespace for OpenFOAM.
word name(const bool)
Return a word representation of a bool.
Definition: boolIO.C:39