34 template<
class Type,
class CombineOp>
38 const GeometricField<Type, fvsPatchField, surfaceMesh>& ssf,
43 typedef GeometricField<Type, fvPatchField, volMesh> volFieldType;
45 const fvMesh& mesh = ssf.mesh();
47 tmp<volFieldType> tresult
51 "cellReduce(" + ssf.name() +
')',
58 extrapolatedCalculatedFvPatchField<Type>::typeName
62 volFieldType& result = tresult.ref();
70 cop(result[celli], ssf[i]);
75 cop(result[celli], ssf[i]);
78 result.correctBoundaryConditions();
84 template<
class Type,
class CombineOp>
88 const tmp<GeometricField<Type, fvsPatchField, surfaceMesh>>& tssf,
93 tmp<GeometricField<Type, fvPatchField, volMesh>> tvf
#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.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
Construct a volume field from a surface field using a combine operator.
UList< label > labelUList
tmp< GeometricField< Type, fvPatchField, volMesh > > cellReduce(const GeometricField< Type, fvsPatchField, surfaceMesh > &, const CombineOp &cop, const Type &nullValue=pTraits< Type >::zero)
A class for managing temporary objects.