inkJet_fvMeshMover.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) 2021-2024 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::fvMeshMovers::inkJet
26 
27 Description
28  Mesh motion specifically for the "pumping" system of an ink-jet
29  injector.
30 
31  The set of points in the "pumping" region are compressed and expanded
32  sinusoidally to impose a sinusoidal variation of the flow at the
33  nozzle exit.
34 
35 SourceFiles
36  inkJetFvMesh.C
37 
38 \*---------------------------------------------------------------------------*/
39 
40 #ifndef inkJet_fvMeshMover_H
41 #define inkJet_fvMeshMover_H
42 
43 #include "fvMeshMover.H"
44 #include "dictionary.H"
45 #include "pointIOField.H"
46 
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 
49 namespace Foam
50 {
51 namespace fvMeshMovers
52 {
53 
54 /*---------------------------------------------------------------------------*\
55  Class inkJet Declaration
56 \*---------------------------------------------------------------------------*/
57 
58 class inkJet
59 :
60  public fvMeshMover
61 {
62  // Private Data
63 
64  scalar amplitude_;
65  scalar frequency_;
66  scalar refPlaneX_;
67 
68  pointIOField stationaryPoints_;
69 
70  //- Optional list of vectorFields to update for mesh motion
71  // For modern solvers using Uf and correctPhi to update the flux
72  // after motion it is not necessary to specify a "velocityFields" list
73  velocityMotionCorrection velocityMotionCorrection_;
74 
75 
76 public:
77 
78  //- Runtime type information
79  TypeName("inkJet");
80 
81 
82  // Constructors
83 
84  //- Construct from fvMesh and dictionary
85  inkJet(fvMesh& mesh, const dictionary& dict);
86 
87  //- Disallow default bitwise copy construction
88  inkJet(const inkJet&) = delete;
89 
90 
91  //- Destructor
92  ~inkJet();
93 
94 
95  // Member Functions
96 
97  //- Update the mesh for both mesh motion and topology change
98  virtual bool update();
99 
100  //- Update corresponding to the given map
101  virtual void topoChange(const polyTopoChangeMap&);
102 
103  //- Update from another mesh using the given map
104  virtual void mapMesh(const polyMeshMap&);
105 
106  //- Update corresponding to the given distribution map
107  virtual void distribute(const polyDistributionMap&);
108 
109 
110  // Member Operators
111 
112  //- Disallow default bitwise assignment
113  void operator=(const inkJet&) = delete;
114 };
115 
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 } // End namespace fvMeshMovers
120 } // End namespace Foam
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 #endif
125 
126 // ************************************************************************* //
A primitive field of type <Type> with automated input and output.
Definition: IOField.H:53
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
Helper class to update the velocity boundary conditions.
Definition: fvMeshMover.H:81
Abstract base class for fvMesh movers.
Definition: fvMeshMover.H:53
fvMesh & mesh()
Return the fvMesh.
Definition: fvMeshMover.H:129
Mesh motion specifically for the "pumping" system of an ink-jet injector.
inkJet(fvMesh &mesh, const dictionary &dict)
Construct from fvMesh and dictionary.
TypeName("inkJet")
Runtime type information.
virtual void topoChange(const polyTopoChangeMap &)
Update corresponding to the given map.
virtual void distribute(const polyDistributionMap &)
Update corresponding to the given distribution map.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
virtual bool update()
Update the mesh for both mesh motion and topology change.
void operator=(const inkJet &)=delete
Disallow default bitwise assignment.
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:96
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Definition: polyMeshMap.H:51
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Namespace for OpenFOAM.
dictionary dict