immersedBoundaryFvsPatchField.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | foam-extend: Open Source CFD
4  \\ / O peration | Version: 3.2
5  \\ / A nd | Web: http://www.foam-extend.org
6  \\/ M anipulation | For copyright notice see file Copyright
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::immersedBoundaryFvsPatchField
26 
27 Description
28  Foam::immersedBoundaryFvsPatchField
29 
30 Author
31  Hrvoje Jasak
32 
33 SourceFiles
34  immersedBoundaryFvsPatchField.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef immersedBoundaryFvsPatchField_H
39 #define immersedBoundaryFvsPatchField_H
40 
41 #include "fvsPatchField.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 
49 // Forward declaration of classes
50 
51 template<class Type>
52 class immersedBoundaryFvPatchField;
53 
54 /*---------------------------------------------------------------------------*\
55  Class immersedBoundaryFvsPatch Declaration
56 \*---------------------------------------------------------------------------*/
57 
58 template<class Type>
60 :
61  public fvsPatchField<Type>
62 {
63  // Private data
64 
65  //- Local reference cast into the processor patch
67 
68 
69 public:
70 
71  //- Runtime type information
72  TypeName(immersedBoundaryFvPatch::typeName_());
73 
74 
75  // Constructors
76 
77  //- Construct from patch and internal field
79  (
80  const fvPatch&,
82  );
83 
84  //- Construct from patch, internal field and dictionary
86  (
87  const fvPatch&,
89  const dictionary&
90  );
91 
92  //- Construct by mapping given immersedBoundaryFvsPatchField
93  // onto a new patch
95  (
97  const fvPatch&,
99  const fvPatchFieldMapper&
100  );
101 
102  //- Construct as copy
104  (
106  );
107 
108  //- Construct and return a clone
109  virtual tmp<fvsPatchField<Type> > clone() const
110  {
111  return tmp<fvsPatchField<Type> >
112  (
114  );
115  }
116 
117  //- Construct as copy setting internal field reference
119  (
122  );
123 
124  //- Construct and return a clone setting internal field reference
126  (
128  ) const
129  {
130  return tmp<fvsPatchField<Type> >
131  (
133  );
134  }
135 
136 
137  //- Destructor
139  {}
140 
141 
142  // Member functions
143 
144  // Mapping functions
145 
146  //- Map (and resize as needed) from self given a mapping object
147  virtual void autoMap
148  (
149  const fvPatchFieldMapper&
150  )
151  {}
152 
153  //- Reverse map the given fvsPatchField onto this fvsPatchField
154  virtual void rmap
155  (
156  const fvPatchField<Type>&,
157  const labelList&
158  )
159  {}
160 
161 
162  // Member functions
163 
164  //- Return reference to immersed boundary patch
165  const immersedBoundaryFvPatch& ibPatch() const
166  {
167  return ibPatch_;
168  }
169 
170  //- Write
171  virtual void write(Ostream&) const;
172 
173 
174  // Member operators
175 
176 // virtual void operator=(const fvPatchField<Type>&);
177 };
178 
179 
180 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
181 
182 } // End namespace Foam
183 
184 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
185 
186 #ifdef NoRepository
188 #endif
189 
190 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
191 
192 #endif
193 
194 // ************************************************************************* //
Foam::fvPatchField< Type >
fvsPatchField.H
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:118
Foam::immersedBoundaryFvsPatchField::ibPatch
const immersedBoundaryFvPatch & ibPatch() const
Return reference to immersed boundary patch.
Definition: immersedBoundaryFvsPatchField.H:164
Foam::fvsPatchField
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
Definition: fvsPatchField.H:65
Foam::immersedBoundaryFvsPatchField::write
virtual void write(Ostream &) const
Write.
Definition: immersedBoundaryFvsPatchField.C:117
Foam::immersedBoundaryFvsPatchField::ibPatch_
const immersedBoundaryFvPatch & ibPatch_
Local reference cast into the processor patch.
Definition: immersedBoundaryFvsPatchField.H:65
Foam::immersedBoundaryFvsPatchField::~immersedBoundaryFvsPatchField
virtual ~immersedBoundaryFvsPatchField()
Destructor.
Definition: immersedBoundaryFvsPatchField.H:137
Foam::immersedBoundaryFvPatch
Immersed boundary FV patch.
Definition: immersedBoundaryFvPatch.H:66
Foam::immersedBoundaryFvsPatchField
Foam::immersedBoundaryFvsPatchField.
Definition: immersedBoundaryFvsPatchField.H:58
Foam::fvPatch
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:61
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
Foam::immersedBoundaryFvsPatchField::rmap
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvsPatchField onto this fvsPatchField.
Definition: immersedBoundaryFvsPatchField.H:154
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::immersedBoundaryFvsPatchField::TypeName
TypeName(immersedBoundaryFvPatch::typeName_())
Runtime type information.
Foam::immersedBoundaryFvsPatchField::immersedBoundaryFvsPatchField
immersedBoundaryFvsPatchField(const fvPatch &, const DimensionedField< Type, surfaceMesh > &)
Construct from patch and internal field.
Definition: immersedBoundaryFvsPatchField.C:42
Foam::List
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: HashTable.H:59
immersedBoundaryFvsPatchField.C
Foam::immersedBoundaryFvsPatchField::autoMap
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
Definition: immersedBoundaryFvsPatchField.H:147
immersedBoundaryFvPatch.H
Foam::fvPatchFieldMapper
Foam::fvPatchFieldMapper.
Definition: fvPatchFieldMapper.H:45
Foam::immersedBoundaryFvsPatchField::clone
virtual tmp< fvsPatchField< Type > > clone() const
Construct and return a clone.
Definition: immersedBoundaryFvsPatchField.H:108
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:53
Foam::DimensionedField
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Definition: DimensionedField.H:51