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
34 \*---------------------------------------------------------------------------*/
36 #ifndef enginePiston_H
37 #define enginePiston_H
39 #include "polyPatchID.H"
40 #include "coordinateSystem.H"
41 #include "simpleEnginePiston.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 // Forward declaration of classes
52 /*---------------------------------------------------------------------------*\
53 Class enginePiston Declaration
54 \*---------------------------------------------------------------------------*/
58 public simpleEnginePiston
62 //- Name of piston point set
63 word pistonPointSetName_;
65 //- Name of piston face set
66 word pistonFaceSetName_;
68 //- Name of piston cell set
69 word pistonCellSetName_;
72 //- Bowl in piston patch
73 polyPatchID bowlInPistonPatchID_;
75 //- Bowl in cylinder patch
76 polyPatchID bowlInCylinderPatchID_;
78 // Private Member Functions
80 //- Disallow default bitwise copy construct
81 enginePiston(const enginePiston&);
83 //- Disallow default bitwise assignment
84 void operator=(const enginePiston&);
89 // Static data members
94 //- Construct from components
98 const word& pistonPatchName,
99 const autoPtr<coordinateSystem>& pistonCS,
100 const scalar minLayer,
101 const scalar maxLayer,
102 const word& pistonPointSetName,
103 const word& pistonFaceSetName,
104 const word& pistonCellSetName,
105 const word& bowlInPistonPatchName,
106 const word& bowlInCylinderPatchName
109 //- Construct from dictionary
112 const polyMesh& mesh,
113 const dictionary& dict
117 // Destructor - default
122 const word& pistonPointSetName() const
124 return pistonPointSetName_;
127 const word& pistonFaceSetName() const
129 return pistonFaceSetName_;
132 const word& pistonCellSetName() const
134 return pistonCellSetName_;
138 const polyPatchID& bowlInPistonPatchID() const
140 return bowlInPistonPatchID_;
143 const polyPatchID& bowlInCylinderPatchID() const
145 return bowlInCylinderPatchID_;
150 void writeDict(Ostream&) const;
154 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
156 } // End namespace Foam
158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
162 // ************************************************************************* //