Loading...
Searching...
No Matches
betaMaxStepRamp.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) 2020-2023 PCOpt/NTUA
9 Copyright (C) 2020-2023 FOSS GP
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27Class
28 Foam::betaMaxStepRamp
29
30Description
31 Computes the betaMax using a stepRamp function which updates itself
32 based on the current time
33
34\*---------------------------------------------------------------------------*/
35
36#ifndef betaMaxStepRamp_H
37#define betaMaxStepRamp_H
38
39#include "betaMax.H"
40#include "stepRamp.H"
41#include "Scale.H"
42
43// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45namespace Foam
46{
47
48/*---------------------------------------------------------------------------*\
49 Class betaMaxStepRamp Declaration
50\*---------------------------------------------------------------------------*/
51
52class betaMaxStepRamp
53:
54 public betaMax
55{
56private:
57
58 // Private Member Functions
59
60 //- No copy construct
61 betaMaxStepRamp(const betaMaxStepRamp&) = delete;
62
63 //- No copy assignment
64 void operator=(const betaMaxStepRamp&) = delete;
65
66
67protected:
68
69 // Protected Data Members
70
71 //- Minimum betaMax value (to be used at the first opt cycles)
72 scalar betaMin_;
73
74 //- The step ramp function
77
78public:
79
80 //- Runtime type information
81 TypeName("stepRamp");
82
83
84 // Constructors
85
86 //- Construct from components
87 betaMaxStepRamp
88 (
89 const fvMesh& mesh,
90 const dictionary& dict
91 );
92
93
94 //- Destructor
95 virtual ~betaMaxStepRamp() = default;
96
97
98 // Member Functions
99
100 //- Get value
101 virtual scalar value() const;
103
104// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
105
106} // End namespace Foam
107
108// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
109
110#endif
111
112// ************************************************************************* //
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition autoPtr.H:65
virtual scalar value() const
Get value.
TypeName("stepRamp")
Runtime type information.
autoPtr< Function1< scalar > > funcPtr_
The step ramp function.
scalar betaMin_
Minimum betaMax value (to be used at the first opt cycles).
virtual ~betaMaxStepRamp()=default
Destructor.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
Mesh data needed to do the Finite Volume discretisation.
Definition fvMesh.H:85
dynamicFvMesh & mesh
Namespace for OpenFOAM.
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68