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.
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< Field< Type > > getFaceField(const GeometricField< Type, fvsPatchField, surfaceMesh > &) const
Extract face data.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void insert(const scalar, DynamicList< floatScalar > &)
Append scalar to given DynamicList.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
void write(const UPtrList< const GeometricField< Type, fvsPatchField, surfaceMesh > > &)
Write surfaceFields.
A class for managing temporary objects.