36 template<
class>
class PatchField,
37 template<
class>
class SlicedPatchField,
45 const Field<Type>& completeField,
46 const bool preserveCouples,
47 const bool preserveProcessorOnly
50 tmp<FieldField<PatchField, Type>> tbf
52 new FieldField<PatchField, Type>(
mesh.boundary().size())
54 FieldField<PatchField, Type>& bf = tbf.ref();
61 &&
mesh.boundary()[patchi].coupled()
63 !preserveProcessorOnly
64 || isA<processorFvPatch>(
mesh.boundary()[patchi])
74 mesh.boundary()[patchi].type(),
75 mesh.boundary()[patchi],
84 bf[patchi] = SlicedPatchField<Type>
86 mesh.boundary()[patchi],
87 DimensionedField<Type, GeoMesh>::null(),
96 new SlicedPatchField<Type>
98 mesh.boundary()[patchi],
99 DimensionedField<Type, GeoMesh>::null(),
113 template<
class>
class PatchField,
114 template<
class>
class SlicedPatchField,
122 const FieldField<PatchField, Type>& bField,
123 const bool preserveCouples
126 tmp<FieldField<PatchField, Type>> tbf
128 new FieldField<PatchField, Type>(
mesh.boundary().size())
130 FieldField<PatchField, Type>& bf = tbf.ref();
134 if (preserveCouples &&
mesh.boundary()[patchi].coupled())
142 mesh.boundary()[patchi].type(),
143 mesh.boundary()[patchi],
149 bf[patchi] == bField[patchi];
157 new SlicedPatchField<Type>
159 mesh.boundary()[patchi],
160 DimensionedField<Type, GeoMesh>::null()
163 bf[patchi].UList<Type>::shallowCopy(bField[patchi]);
176 template<
class>
class PatchField,
177 template<
class>
class SlicedPatchField,
208 template<
class>
class PatchField,
209 template<
class>
class SlicedPatchField,
219 const bool preserveCouples
228 slicedBoundaryField(
mesh, completeField, preserveCouples)
244 template<
class>
class PatchField,
245 template<
class>
class SlicedPatchField,
256 const bool preserveCouples,
257 const bool preserveProcessorOnly
271 preserveProcessorOnly
288 template<
class>
class PatchField,
289 template<
class>
class SlicedPatchField,
296 const GeometricField<Type, PatchField, GeoMesh>& gf,
297 const bool preserveCouples
300 GeometricField<Type, PatchField, GeoMesh>
306 slicedBoundaryField(gf.
mesh(), gf.boundaryField(), preserveCouples)
319 template<
class>
class PatchField,
320 template<
class>
class SlicedPatchField,
326 const SlicedGeometricField<Type, PatchField, SlicedPatchField, GeoMesh>& gf
329 GeometricField<Type, PatchField, GeoMesh>
335 slicedBoundaryField(gf.
mesh(), gf.boundaryField(), true)
346 template<
class>
class PatchField,
347 template<
class>
class SlicedPatchField,
359 SlicedGeometricField<Type, PatchField, SlicedPatchField, GeoMesh>
362 new SlicedGeometricField<Type, PatchField, SlicedPatchField, GeoMesh>
375 template<
class>
class PatchField,
376 template<
class>
class SlicedPatchField,
391 template<
class>
class PatchField,
392 template<
class>
class SlicedPatchField,
409 template<
class>
class PatchField,
410 template<
class>
class SlicedPatchField,