41 const DimensionedField<Type, pointMesh>& iF
47 patchType_(word::null)
55 const DimensionedField<Type, pointMesh>& iF,
56 const dictionary&
dict
62 patchType_(
dict.lookupOrDefault<word>(
"patchType", word::null))
69 const pointPatchField<Type>& ptf,
71 const DimensionedField<Type, pointMesh>& iF,
72 const pointPatchFieldMapper&
78 patchType_(ptf.patchType_)
85 const pointPatchField<Type>& ptf
89 internalField_(ptf.internalField_),
91 patchType_(ptf.patchType_)
98 const pointPatchField<Type>& ptf,
99 const DimensionedField<Type, pointMesh>& iF
105 patchType_(ptf.patchType_)
114 return patch_.boundaryMesh().mesh()();
123 if (patchType_.size())
126 << token::END_STATEMENT <<
nl;
139 template<
class Type1>
150 <<
"given internal field does not correspond to the mesh. "
151 <<
"Field size: " << iF.size()
161 template<
class Type1>
167 return patchInternalField(iF, patch().meshPoints());
172 template<
class Type1>
183 <<
"given internal field does not correspond to the mesh. "
184 <<
"Field size: " << iF.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>
221 <<
"given internal field does not correspond to the mesh. "
222 <<
"Field size: " << iF.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>
260 <<
"given internal field does not correspond to the mesh. "
261 <<
"Field size: " << iF.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>
290 setInInternalField(iF, pF, patch().meshPoints());
317 os.
check(
"Ostream& operator<<(Ostream&, const pointPatchField<Type>&)");