immersedBoundaryFvsPatchField.C
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 \*---------------------------------------------------------------------------*/
25 
27 #include "fvPatchFieldMapper.H"
28 #include "surfaceMesh.H"
29 
30 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
31 
32 namespace Foam
33 {
34 
35 // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
36 
37 
38 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
39 
40 template<class Type>
42 (
43  const fvPatch& p,
45 )
46 :
48  ibPatch_(refCast<const immersedBoundaryFvPatch>(p))
49 {}
50 
51 
52 template<class Type>
54 (
55  const fvPatch& p,
57  const dictionary& dict
58 )
59 :
61  ibPatch_(refCast<const immersedBoundaryFvPatch>(p))
62 {}
63 
64 
65 template<class Type>
67 (
69  const fvPatch& p,
71  const fvPatchFieldMapper& mapper
72 )
73 :
74  fvsPatchField<Type>(ptf, p, iF, mapper),
75  ibPatch_(refCast<const immersedBoundaryFvPatch>(p))
76 {}
77 
78 
79 template<class Type>
81 (
83 )
84 :
86  ibPatch_(ptf.ibPatch())
87 {}
88 
89 
90 template<class Type>
92 (
95 )
96 :
97  fvsPatchField<Type>(ptf, iF),
98  ibPatch_(ptf.ibPatch())
99 {}
100 
101 
102 // template<class Type>
103 // void immersedBoundaryFvsPatchField<Type>::operator=
104 // (
105 // const fvPatchField<Type>& ptf
106 // )
107 // {
108 // const immersedBoundaryFvPatchField<Type>& ibf =
109 // refCast<const immersedBoundaryFvPatchField<Type> > (ptf);
110 
111 // this->check(ptf);
112 // fvsPatchField<Type>::operator=(ptf);
113 // }
114 
115 
116 template<class Type>
118 {
120  this->writeEntry("value", os);
121 }
122 
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 } // End namespace Foam
127 
128 // ************************************************************************* //
p
p
Definition: pEqn.H:62
Foam::immersedBoundaryFvsPatchField::ibPatch
const immersedBoundaryFvPatch & ibPatch() const
Return reference to immersed boundary patch.
Definition: immersedBoundaryFvsPatchField.H:164
Foam::fvsPatchField< Type >
fvPatchFieldMapper.H
Foam::immersedBoundaryFvsPatchField::write
virtual void write(Ostream &) const
Write.
Definition: immersedBoundaryFvsPatchField.C:117
Foam::immersedBoundaryFvsPatchField
Foam::immersedBoundaryFvsPatchField.
Definition: immersedBoundaryFvsPatchField.H:58
Foam::fvPatch
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.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
surfaceMesh.H
Foam::fvsPatchField::write
virtual void write(Ostream &) const
Write.
Definition: fvsPatchField.C:181
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::immersedBoundaryFvsPatchField::immersedBoundaryFvsPatchField
immersedBoundaryFvsPatchField(const fvPatch &, const DimensionedField< Type, surfaceMesh > &)
Construct from patch and internal field.
Definition: immersedBoundaryFvsPatchField.C:42
Foam::fvPatchFieldMapper
Foam::fvPatchFieldMapper.
Definition: fvPatchFieldMapper.H:45
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:53
immersedBoundaryFvsPatchField.H
Foam::DimensionedField
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Definition: DimensionedField.H:51