34 template<
class>
class PatchField,
35 template<
class>
class SlicedPatchField,
43 const Field<Type>& completeField,
44 const bool preserveCouples,
45 const bool preserveProcessorOnly
48 tmp<FieldField<PatchField, Type>> tbf
50 new FieldField<PatchField, Type>(mesh.boundary().size())
52 FieldField<PatchField, Type>& bf = tbf.ref();
59 && mesh.boundary()[
patchi].coupled()
61 !preserveProcessorOnly
62 || isA<processorFvPatch>(mesh.boundary()[
patchi])
72 mesh.boundary()[
patchi].type(),
82 bf[
patchi] = SlicedPatchField<Type>
85 DimensionedField<Type, GeoMesh>::null(),
94 new SlicedPatchField<Type>
97 DimensionedField<Type, GeoMesh>::null(),
111 template<
class>
class PatchField,
112 template<
class>
class SlicedPatchField,
120 const FieldField<PatchField, Type>& bField,
121 const bool preserveCouples
124 tmp<FieldField<PatchField, Type>> tbf
126 new FieldField<PatchField, Type>(mesh.boundary().size())
128 FieldField<PatchField, Type>& bf = tbf.ref();
132 if (preserveCouples && mesh.boundary()[
patchi].coupled())
140 mesh.boundary()[
patchi].type(),
155 new SlicedPatchField<Type>
158 DimensionedField<Type, GeoMesh>::null()
174 template<
class>
class PatchField,
175 template<
class>
class SlicedPatchField,
206 template<
class>
class PatchField,
207 template<
class>
class SlicedPatchField,
217 const bool preserveCouples
226 slicedBoundaryField(mesh, completeField, preserveCouples)
242 template<
class>
class PatchField,
243 template<
class>
class SlicedPatchField,
254 const bool preserveCouples,
255 const bool preserveProcessorOnly
269 preserveProcessorOnly
286 template<
class>
class PatchField,
287 template<
class>
class SlicedPatchField,
295 const bool preserveCouples
317 template<
class>
class PatchField,
318 template<
class>
class SlicedPatchField,
344 template<
class>
class PatchField,
345 template<
class>
class SlicedPatchField,
373 template<
class>
class PatchField,
374 template<
class>
class SlicedPatchField,
389 template<
class>
class PatchField,
390 template<
class>
class SlicedPatchField,
407 template<
class>
class PatchField,
408 template<
class>
class SlicedPatchField,
#define forAll(list, i)
Loop across all elements in list.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
const Internal::FieldType & primitiveField() const
Return a const-reference to the internal field.
Generic GeometricField class.
Pre-declare related SubField type.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
~SlicedGeometricField()
Destructor.
const dimensionSet & dimensions() const
Return dimensions.
Dimension set for the base types.
Pre-declare SubField and related Field type.
GeoMesh::Mesh Mesh
Type of mesh on which this DimensionedField is instantiated.
Internal(const IOobject &, const Mesh &, const dimensionSet &, const Field< Type > &iField)
Construct from components and field to slice.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
const Mesh & mesh() const
Return mesh.
tmp< SlicedGeometricField< Type, PatchField, SlicedPatchField, GeoMesh > > clone() const
Clone.
void correctBoundaryConditions()
Correct boundary field.
U correctBoundaryConditions()
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
SlicedGeometricField(const IOobject &, const Mesh &, const dimensionSet &, const Field< Type > &completeField, const bool preserveCouples=true)
Construct from components and field to slice.
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
A class for managing temporary objects.
Specialization of GeometricField which holds slices of given complete fields in a form that they act ...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...