Go to the documentation of this file.
44 template<
class Type,
class CombineOp>
45 tmp<GeometricField<Type, fvPatchField, volMesh> >
cellReduce
62 "cellReduce(" + ssf.name() +
')',
74 volFieldType& result = tresult();
83 label cellOwn = own[faceI];
84 cop(result[cellOwn], iField[faceI]);
86 label cellNbr = nbr[faceI];
87 cop(result[cellNbr], iField[faceI]);
98 label faceI = start + i;
99 label cellI = own[faceI];
100 cop(result[cellI], pf[i]);
104 result.correctBoundaryConditions();
110 template<
class Type,
class CombineOp>
114 const CombineOp& cop,
115 const Type& nullValue
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
tmp< GeometricField< Type, fvPatchField, volMesh > > cellReduce(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf, const CombineOp &cop, const Type &nullValue)
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
This boundary condition applies a zero-gradient condition from the patch internal field onto the patc...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
InternalField & internalField()
Return internal field.
Mesh data needed to do the Finite Volume discretisation.
const fvPatch & patch() const
Return patch.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
label start() const
Return start label of this patch in the polyMesh face list.
Generic GeometricField class.
Construct a volume field from a surface field using a combine operator.