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/>.
33 \*---------------------------------------------------------------------------*/
35 #ifndef enginePiston_H
36 #define enginePiston_H
38 #include "polyPatchID.H"
39 #include "coordinateSystem.H"
40 #include "simpleEnginePiston.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 // Forward declaration of classes
51 /*---------------------------------------------------------------------------*\
52 Class enginePiston Declaration
53 \*---------------------------------------------------------------------------*/
57 public simpleEnginePiston
61 //- Name of piston point set
62 word pistonPointSetName_;
64 //- Name of piston face set
65 word pistonFaceSetName_;
67 //- Name of piston cell set
68 word pistonCellSetName_;
71 //- Bowl in piston patch
72 polyPatchID bowlInPistonPatchID_;
74 //- Bowl in cylinder patch
75 polyPatchID bowlInCylinderPatchID_;
77 // Private Member Functions
79 //- Disallow default bitwise copy construct
80 enginePiston(const enginePiston&);
82 //- Disallow default bitwise assignment
83 void operator=(const enginePiston&);
88 // Static data members
93 //- Construct from components
97 const word& pistonPatchName,
98 const autoPtr<coordinateSystem>& pistonCS,
99 const scalar minLayer,
100 const scalar maxLayer,
101 const word& pistonPointSetName,
102 const word& pistonFaceSetName,
103 const word& pistonCellSetName,
104 const word& bowlInPistonPatchName,
105 const word& bowlInCylinderPatchName
108 //- Construct from dictionary
111 const polyMesh& mesh,
112 const dictionary& dict
116 // Destructor - default
121 const word& pistonPointSetName() const
123 return pistonPointSetName_;
126 const word& pistonFaceSetName() const
128 return pistonFaceSetName_;
131 const word& pistonCellSetName() const
133 return pistonCellSetName_;
137 const polyPatchID& bowlInPistonPatchID() const
139 return bowlInPistonPatchID_;
142 const polyPatchID& bowlInCylinderPatchID() const
144 return bowlInCylinderPatchID_;
149 void writeDict(Ostream&) const;
153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
155 } // End namespace Foam
157 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
161 // ************************************************************************* //