movingImmersedBoundary.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | foam-extend: Open Source CFD
4  \\ / O peration |
5  \\ / A nd | For copyright notice see file Copyright
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of foam-extend.
10 
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.
15 
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.
20 
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/>.
23 
24 Class
25  Foam::movingImmersedBoundary
26 
27 Description
28  Moving immesed boundary. Motion is prescribed using a solid body motion
29  function.
30 
31 SourceFiles
32  movingImmersedBoundary.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef movingImmersedBoundary_H
37 #define movingImmersedBoundary_H
38 
39 #include "fvMesh.H"
41 #include "triSurfaceMesh.H"
42 #include "fvPatchFields.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class movingImmersedBoundary Declaration
52 \*---------------------------------------------------------------------------*/
53 
55 {
56  // Private data
57 
58  //- Patch name
59  const word name_;
60 
61  //- Mesh reference
62  const fvMesh& mesh_;
63 
64  //- Overset region motion control function
66 
67  //- Reference tri surface mesh position
69 
70 
71  // Private Member Functions
72 
73  //- Disallow default bitwise copy construct
75 
76  //- Disallow default bitwise assignment
77  void operator=(const movingImmersedBoundary&);
78 
79 
80 public:
81 
82  // Constructors
83 
84  //- Construct from dictionary
86  (
87  const word& name,
88  const fvMesh& mesh,
89  const dictionary& dict
90  );
91 
92 
93  //- Destructor
95 
96  // Member Functions
97 
98  //- Return name
99  const word& name() const
100  {
101  return name_;
102  }
103 
104  //- Return mesh
105  const fvMesh& mesh() const
106  {
107  return mesh_;
108  }
109 
110  //- Move immersed boundary patch points
111  void movePoints() const;
112 };
113 
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 } // End namespace Foam
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 #endif
122 
123 // ************************************************************************* //
Foam::movingImmersedBoundary::name_
const word name_
Patch name.
Definition: movingImmersedBoundary.H:58
Foam::movingImmersedBoundary::~movingImmersedBoundary
~movingImmersedBoundary()
Destructor.
Definition: movingImmersedBoundary.C:59
solidBodyMotionFunction.H
Foam::movingImmersedBoundary::movingImmersedBoundary
movingImmersedBoundary(const movingImmersedBoundary &)
Disallow default bitwise copy construct.
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::triSurfaceMesh
IOoject and searching on triSurface.
Definition: triSurfaceMesh.H:63
Foam::movingImmersedBoundary::refIbSurface_
triSurfaceMesh refIbSurface_
Reference tri surface mesh position.
Definition: movingImmersedBoundary.H:67
Foam::movingImmersedBoundary::sbmfPtr_
autoPtr< solidBodyMotionFunction > sbmfPtr_
Overset region motion control function.
Definition: movingImmersedBoundary.H:64
Foam::movingImmersedBoundary::mesh_
const fvMesh & mesh_
Mesh reference.
Definition: movingImmersedBoundary.H:61
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
Foam::movingImmersedBoundary::mesh
const fvMesh & mesh() const
Return mesh.
Definition: movingImmersedBoundary.H:104
immersedBoundaryFvPatchFields.H
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
fvMesh.H
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::autoPtr
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:117
Foam::movingImmersedBoundary::name
const word & name() const
Return name.
Definition: movingImmersedBoundary.H:98
Foam::movingImmersedBoundary::operator=
void operator=(const movingImmersedBoundary &)
Disallow default bitwise assignment.
Foam::movingImmersedBoundary::movePoints
void movePoints() const
Move immersed boundary patch points.
Definition: movingImmersedBoundary.C:65
fvPatchFields.H
Foam::movingImmersedBoundary
Moving immesed boundary. Motion is prescribed using a solid body motion function.
Definition: movingImmersedBoundary.H:53
triSurfaceMesh.H