1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend 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 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
32 \*---------------------------------------------------------------------------*/
34 #ifndef simpleEnginePiston_H
35 #define simpleEnginePiston_H
37 #include "polyPatchID.H"
38 #include "coordinateSystem.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 // Class forward declarations
49 /*---------------------------------------------------------------------------*\
50 Class simpleEnginePiston Declaration
51 \*---------------------------------------------------------------------------*/
53 class simpleEnginePiston
57 //- Reference to engine mesh
58 const polyMesh& mesh_;
60 //- Reference to engine database
61 const engineTime& engineDB_;
67 autoPtr<coordinateSystem> csPtr_;
70 // Piston layering data
72 //- Min layer thickness
73 const scalar minLayer_;
75 //- Max layer thickness
76 const scalar maxLayer_;
79 // Private Member Functions
81 //- Disallow default bitwise copy construct
82 simpleEnginePiston(const simpleEnginePiston&);
84 //- Disallow default bitwise assignment
85 void operator=(const simpleEnginePiston&);
90 // Static data members
95 //- Construct from components
99 const word& pistonPatchName,
100 const autoPtr<coordinateSystem>& pistonCS,
101 const scalar minLayer,
102 const scalar maxLayer
106 //- Construct from dictionary
109 const polyMesh& mesh,
110 const dictionary& dict
114 // Destructor - default
119 //- Return coordinate system
120 const coordinateSystem& cs() const
125 //- Return ID of piston patch
126 const polyPatchID& patchID() const
131 // Piston layering thickness
133 scalar minLayer() const
138 scalar maxLayer() const
145 void writeDict(Ostream&) const;
149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
151 } // End namespace Foam
153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
157 // ************************************************************************* //