dynamicInkJetFvMesh.H
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2011 OpenFOAM Foundation
9 Copyright (C) 2020 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27Class
28 Foam::dynamicInkJetFvMesh
29
30Description
31 Mesh motion specifically for the "pumping" system of an ink-jet
32 injector.
33
34 The set of points in the "pumping" region are compressed and expanded
35 sinusoidally to impose a sinusoidal variation of the flow at the
36 nozzle exit.
37
38SourceFiles
39 dynamicInkJetFvMesh.C
40
41\*---------------------------------------------------------------------------*/
42
43#ifndef dynamicInkJetFvMesh_H
44#define dynamicInkJetFvMesh_H
45
46#include "dynamicFvMesh.H"
47#include "dictionary.H"
48#include "pointIOField.H"
49
50// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51
52namespace Foam
53{
54
55/*---------------------------------------------------------------------------*\
56 Class dynamicInkJetFvMesh Declaration
57\*---------------------------------------------------------------------------*/
60:
61 public dynamicFvMesh
62{
63 // Private data
64
65 dictionary dynamicMeshCoeffs_;
66
67 scalar amplitude_;
68 scalar frequency_;
69 scalar refPlaneX_;
70
71 pointIOField stationaryPoints_;
72
73
74 // Private Member Functions
75
76 //- No copy construct
78
79 //- No copy assignment
80 void operator=(const dynamicInkJetFvMesh&) = delete;
81
82
83public:
84
85 //- Runtime type information
86 TypeName("dynamicInkJetFvMesh");
87
88
89 // Constructors
90
91 //- Construct from IOobject
92 dynamicInkJetFvMesh(const IOobject& io, const bool doInit=true);
93
94
95 //- Destructor
97
98
99 // Member Functions
100
101 //- Update the mesh for both mesh motion and topology change
102 virtual bool update();
103};
104
105
106// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107
108} // End namespace Foam
109
110// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111
112#endif
113
114// ************************************************************************* //
A primitive field of type <T> with automated input and output.
Definition: IOField.H:58
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:170
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Abstract base class for geometry and/or topology changing fvMesh.
Definition: dynamicFvMesh.H:81
Mesh motion specifically for the "pumping" system of an ink-jet injector.
virtual bool update()
Update the mesh for both mesh motion and topology change.
TypeName("dynamicInkJetFvMesh")
Runtime type information.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
Namespace for OpenFOAM.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73