Initial commit for version 2.0.x patch release
[OpenFOAM-2.0.x.git] / src / finiteVolume / cfdTools / general / SRF / SRFModel / rpm / rpm.H
blob815daac4bd3173e8293ab2f89d47d1de15c5aacb
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2004-2010 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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/>.
24 Class
25     Foam::SRF::rpm
27 Description
28     Basic SRF model whereby angular velocity is specified in terms of
29     a (global) axis and revolutions-per-minute [rpm]
31 SourceFiles
32     rpm.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef SRFModelRpm_H
37 #define SRFModelRpm_H
39 #include "SRFModel.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 namespace Foam
45 namespace SRF
48 /*---------------------------------------------------------------------------*\
49                             Class rpm Declaration
50 \*---------------------------------------------------------------------------*/
52 class rpm
54     public SRFModel
57     // Private data
59         //- Revolutions per minute
60         scalar rpm_;
63     // Private Member Functions
65         //- Disallow default bitwise copy construct
66         rpm(const rpm&);
68         //- Disallow default bitwise assignment
69         void operator=(const rpm&);
72 public:
74     //- Runtime type information
75     TypeName("rpm");
78     // Constructors
80         //- Construct from components
81         rpm(const volVectorField& U);
84     //- Destructor
85     ~rpm();
87     // Member functions
89         // I-O
91             //- Read
92             bool read();
96 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
98 } // End namespace SRF
99 } // End namespace Foam
101 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
103 #endif
105 // ************************************************************************* //