multiValveEnginePistonMotion.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2025-2026 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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.
20 
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/>.
23 
24 Class
25  Foam::solidBodyMotionFunctions::multiValveEnginePistonMotion
26 
27 Description
28  Motion function for solid regions representing a piston. Looks up the
29  multiValveEngine mover from the associated fluid region and uses the motion
30  specified for the piston.
31 
32  Example specification, in constant/<solidRegion>/dynamicMeshDict:
33  \verbatim
34  mover
35  {
36  type pointMeshMover;
37  libs ("libfvMotionSolvers.so");
38 
39  pointMeshMover
40  {
41  type solidBody;
42  cellZone all;
43  solidBodyMotionFunction multiValveEnginePistonMotion;
44  fluidRegion fluid;
45  }
46  }
47  \endverbatim
48 
49 SourceFiles
50  multiValveEnginePistonMotion.C
51 
52 \*---------------------------------------------------------------------------*/
53 
54 #ifndef multiValveEnginePistonMotion_H
55 #define multiValveEnginePistonMotion_H
56 
58 
59 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
60 
61 namespace Foam
62 {
63 namespace solidBodyMotionFunctions
64 {
65 
66 /*---------------------------------------------------------------------------*\
67  Class multiValveEnginePistonMotion Declaration
68 \*---------------------------------------------------------------------------*/
69 
71 :
73 {
74 private:
75 
76  // Private Data
77 
78  //- Name of the region in which the multiValveEngine mover is used
79  word fluidRegionName_;
80 
81 
82 public:
83 
84  //- Runtime type information
85  TypeName("multiValveEnginePistonMotion");
86 
87 
88  // Constructors
89 
90  //- Construct from components
92  (
93  const word& name,
94  const dictionary& SBMFCoeffs,
95  const Time& runTime
96  );
97 
98  //- Disallow default bitwise copy construction
100  (
102  ) = delete;
103 
104  //- Construct and return a clone
106  {
108  (
110  (
111  name_,
112  SBMFCoeffs_,
113  time_
114  )
115  );
116  }
117 
118 
119  //- Destructor
121 
122 
123  // Member Functions
124 
125  //- Return the solid-body motion transformation septernion
126  virtual septernion transformation() const;
127 
128  //- Update properties from given dictionary
129  virtual bool read(const dictionary& SBMFCoeffs);
130 
131 
132  // Member Operators
133 
134  //- Disallow default bitwise assignment
135  void operator=(const multiValveEnginePistonMotion&) = delete;
136 };
137 
138 
139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
140 
141 } // End namespace solidBodyMotionFunctions
142 } // End namespace Foam
143 
144 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145 
146 #endif
147 
148 // ************************************************************************* //
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Definition: Time.H:76
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
Septernion class used to perform translations and rotations in 3D space.
Definition: septernion.H:66
Base class for defining solid-body motions.
Motion function for solid regions representing a piston. Looks up the multiValveEngine mover from the...
TypeName("multiValveEnginePistonMotion")
Runtime type information.
virtual autoPtr< solidBodyMotionFunction > clone() const
Construct and return a clone.
virtual septernion transformation() const
Return the solid-body motion transformation septernion.
multiValveEnginePistonMotion(const word &name, const dictionary &SBMFCoeffs, const Time &runTime)
Construct from components.
void operator=(const multiValveEnginePistonMotion &)=delete
Disallow default bitwise assignment.
virtual bool read(const dictionary &SBMFCoeffs)
Update properties from given dictionary.
A class for handling words, derived from string.
Definition: word.H:63
Namespace for OpenFOAM.