manual_oneDimensionalDiscretisation.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) 2025 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::oneDimensionalDiscretisations::manual
26 
27 Description
28  Manual coordinate spacing. The user explicitly provides a list of
29  coordinates which must increase monotonically and be of the required
30  length.
31 
32 Usage
33  Example specification:
34  \verbatim
35  {
36  type manual;
37 
38  // Coordinates
39  values (0.01 0.11 0.21 0.31 0.41 0.51);
40  }
41  \endverbatim
42 
43 SourceFiles
44  oneDimensionalDiscretisation.C
45 
46 \*---------------------------------------------------------------------------*/
47 
48 #ifndef manual_oneDimensionalDiscretisation_H
49 #define manual_oneDimensionalDiscretisation_H
50 
52 
53 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
54 
55 namespace Foam
56 {
57 namespace oneDimensionalDiscretisations
58 {
59 
60 /*---------------------------------------------------------------------------*\
61  Class manual Declaration
62 \*---------------------------------------------------------------------------*/
63 
64 class manual
65 :
67 {
68 public:
69 
70  //- Runtime type information
71  TypeName("manual");
72 
73 
74  // Constructors
75 
76  //- Construct from a dictionary
77  manual
78  (
79  const word& name,
80  const dimensionSet& dims,
81  const label n,
82  const dictionary& dict
83  );
84 };
85 
86 
87 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
88 
89 } // End namespace oneDimensionalDiscretisations
90 } // End namespace Foam
91 
92 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
93 
94 #endif
95 
96 // ************************************************************************* //
label n
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
Dimension set for the base types.
Definition: dimensionSet.H:125
Base class for ways in which to generate coordinates in one-dimensional space. Used to space the repr...
Manual coordinate spacing. The user explicitly provides a list of coordinates which must increase mon...
TypeName("manual")
Runtime type information.
manual(const word &name, const dimensionSet &dims, const label n, const dictionary &dict)
Construct from a dictionary.
A class for handling words, derived from string.
Definition: word.H:63
Namespace for OpenFOAM.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
dictionary dict