27 #include "writeFuns.H" 34 const GeometricField<Type, fvsPatchField, surfaceMesh>& sfld
37 const polyBoundaryMesh& patches = sfld.mesh().boundaryMesh();
39 tmp<Field<Type>> tfld(
new Field<Type>(pp_.size()));
40 Field<Type>& fld = tfld.ref();
42 forAll(pp_.addressing(), i)
44 label facei = pp_.addressing()[i];
46 label patchi = patches.whichPatch(facei);
55 fld[i] = sfld.boundaryField()[
patchi][localFacei];
68 const GeometricField<Type, fvsPatchField, surfaceMesh>
74 const GeometricField<Type, fvsPatchField, surfaceMesh>& fld =
77 os_ << fld.name() <<
' ' << pTraits<Type>::nComponents <<
' ' 80 DynamicList<floatScalar> fField(pTraits<Type>::nComponents*pp_.size());
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void insert(const point &, DynamicList< floatScalar > &dest)
Append point to given DynamicList.
static void write(std::ostream &, const bool, DynamicList< floatScalar > &)
Write floats ascii or binary.
void write(const UPtrList< const GeometricField< Type, fvsPatchField, surfaceMesh > > &)
Write surfaceFields.
A class for managing temporary objects.
tmp< Field< Type > > getFaceField(const GeometricField< Type, fvsPatchField, surfaceMesh > &) const
Extract face data.