39 const DimensionedField<Type, pointMesh>& iF
45 patchType_(word::null)
53 const DimensionedField<Type, pointMesh>& iF,
54 const dictionary&
dict
60 patchType_(
dict.getOrDefault<word>(
"patchType", word::null))
67 const pointPatchField<Type>& ptf,
69 const DimensionedField<Type, pointMesh>& iF,
70 const pointPatchFieldMapper&
76 patchType_(ptf.patchType_)
83 const pointPatchField<Type>& ptf
87 internalField_(ptf.internalField_),
89 patchType_(ptf.patchType_)
96 const pointPatchField<Type>& ptf,
97 const DimensionedField<Type, pointMesh>& iF
103 patchType_(ptf.patchType_)
112 return patch_.boundaryMesh().mesh()();
119 os.writeEntry(
"type",
type());
121 if (patchType_.size())
123 os.writeEntry(
"patchType", patchType_);
132 return patchInternalField(primitiveField());
137 template<
class Type1>
146 if (iF.size() != primitiveField().size())
149 <<
"given internal field does not correspond to the mesh. "
150 <<
"Field size: " << iF.size()
151 <<
" mesh size: " << primitiveField().size()
155 return tmp<Field<Type1>>
::New(iF, meshPoints);
160 template<
class Type1>
167 return patchInternalField(iF,
patch().meshPoints());
172 template<
class Type1>
180 if (iF.size() != primitiveField().size())
183 <<
"given internal field does not correspond to the mesh. "
184 <<
"Field size: " << iF.size()
185 <<
" mesh size: " << primitiveField().size()
189 if (pF.size() != size())
192 <<
"given patch field does not correspond to the mesh. "
193 <<
"Field size: " << pF.size()
194 <<
" mesh size: " << size()
203 iF[
mp[pointi]] += pF[pointi];
209 template<
class Type1>
213 const Field<Type1>& pF,
218 if (iF.size() != primitiveField().size())
221 <<
"given internal field does not correspond to the mesh. "
222 <<
"Field size: " << iF.size()
223 <<
" mesh size: " << primitiveField().size()
227 if (pF.size() != size())
230 <<
"given patch field does not correspond to the mesh. "
231 <<
"Field size: " << pF.size()
232 <<
" mesh size: " << size()
242 iF[
mp[pointi]] += pF[pointi];
248 template<
class Type1>
252 const Field<Type1>& pF,
257 if (iF.size() != primitiveField().size())
260 <<
"given internal field does not correspond to the mesh. "
261 <<
"Field size: " << iF.size()
262 <<
" mesh size: " << primitiveField().size()
266 if (pF.size() != meshPoints.size())
269 <<
"given patch field does not correspond to the meshPoints. "
270 <<
"Field size: " << pF.size()
271 <<
" meshPoints size: " << size()
275 forAll(meshPoints, pointi)
277 iF[meshPoints[pointi]] = pF[pointi];
283 template<
class Type1>
287 const Field<Type1>& pF
290 setInInternalField(iF, pF,
patch().meshPoints());
312 const pointPatchField<Type>& ptf