1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 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, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::energyScalingFunction
31 energyScalingFunction.C
32 newEnergyScalingFunction.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef energyScalingFunction_H
37 #define energyScalingFunction_H
39 #include "IOdictionary.H"
41 #include "runTimeSelectionTables.H"
43 #include "pairPotential.H"
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 /*---------------------------------------------------------------------------*\
51 Class energyScalingFunction Declaration
52 \*---------------------------------------------------------------------------*/
54 class energyScalingFunction
63 dictionary energyScalingFunctionProperties_;
65 const pairPotential& pairPot_;
68 // Private Member Functions
70 //- Disallow copy construct
71 energyScalingFunction(const energyScalingFunction&);
73 //- Disallow default bitwise assignment
74 void operator=(const energyScalingFunction&);
79 //- Runtime type information
80 TypeName("energyScalingFunction");
83 // Declare run-time constructor selection table
85 declareRunTimeSelectionTable
88 energyScalingFunction,
92 const dictionary& energyScalingFunctionProperties,
93 const pairPotential& pairPot
95 (name, energyScalingFunctionProperties, pairPot)
101 //- Return a reference to the selected viscosity model
102 static autoPtr<energyScalingFunction> New
105 const dictionary& energyScalingFunctionProperties,
106 const pairPotential& pairPot
112 //- Construct from components
113 energyScalingFunction
116 const dictionary& energyScalingFunctionProperties,
117 const pairPotential& pairPot
123 virtual ~energyScalingFunction()
129 virtual void scaleEnergy(scalar& e, const scalar r) const = 0;
131 const dictionary& energyScalingFunctionProperties() const
133 return energyScalingFunctionProperties_;
136 //- Read energyScalingFunction dictionary
137 virtual bool read(const dictionary& energyScalingFunctionProperties) = 0;
141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 } // End namespace Foam
145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
149 // ************************************************************************* //