fvMeshMoversInkJet.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-2022 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 fvMeshMoversInkJet_H
41 #define fvMeshMoversInkJet_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  dictionary meshCoeffs_;
65 
66  scalar amplitude_;
67  scalar frequency_;
68  scalar refPlaneX_;
69 
70  pointIOField stationaryPoints_;
71 
72  //- Optional list of vectorFields to update for mesh motion
73  // For modern solvers using Uf and correctPhi to update the flux
74  // after motion it is not necessary to specify a "velocityFields" list
75  velocityMotionCorrection velocityMotionCorrection_;
76 
77 
78 public:
79 
80  //- Runtime type information
81  TypeName("inkJet");
82 
83 
84  // Constructors
85 
86  //- Construct from fvMesh
87  inkJet(fvMesh& mesh);
88 
89  //- Disallow default bitwise copy construction
90  inkJet(const inkJet&) = delete;
91 
92 
93  //- Destructor
94  ~inkJet();
95 
96 
97  // Member Functions
98 
99  //- Update the mesh for both mesh motion and topology change
100  virtual bool update();
101 
102  //- Update corresponding to the given map
103  virtual void topoChange(const polyTopoChangeMap&);
104 
105  //- Update from another mesh using the given map
106  virtual void mapMesh(const polyMeshMap&);
107 
108  //- Update corresponding to the given distribution map
109  virtual void distribute(const polyDistributionMap&);
110 
111 
112  // Member Operators
113 
114  //- Disallow default bitwise assignment
115  void operator=(const inkJet&) = delete;
116 };
117 
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 } // End namespace fvMeshMovers
122 } // End namespace Foam
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 #endif
127 
128 // ************************************************************************* //
void operator=(const inkJet &)=delete
Disallow default bitwise assignment.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Helper class to update the velocity boundary conditions.
Definition: fvMeshMover.H:83
virtual bool update()
Update the mesh for both mesh motion and topology change.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
Abstract base class for fvMesh movers.
Definition: fvMeshMover.H:52
virtual void distribute(const polyDistributionMap &)
Update corresponding to the given distribution map.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
TypeName("inkJet")
Runtime type information.
Mesh motion specifically for the "pumping" system of an ink-jet injector.
inkJet(fvMesh &mesh)
Construct from fvMesh.
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:95
fvMesh & mesh()
Return the fvMesh.
Definition: fvMeshMover.H:132
virtual void topoChange(const polyTopoChangeMap &)
Update corresponding to the given map.
Class containing mesh-to-mesh mapping information.
Definition: polyMeshMap.H:50
A primitive field of type <T> with automated input and output.
Definition: IOField.H:50
Namespace for OpenFOAM.