34 template<
class Type,
class CombineOp>
38 const SurfaceField<Type>& ssf,
45 tmp<VolField<Type>> tresult
49 "cellReduce(" + ssf.name() +
')',
56 extrapolatedCalculatedFvPatchField<Type>::typeName
60 VolField<Type>& result = tresult.ref();
68 cop(result[celli], ssf[i]);
73 cop(result[celli], ssf[i]);
76 result.correctBoundaryConditions();
82 template<
class Type,
class CombineOp>
86 const tmp<SurfaceField<Type>>& tssf,
91 tmp<VolField<Type>> tvf
#define forAll(list, i)
Loop across all elements in list.
const labelUList & owner() const
Internal face owner.
const labelUList & neighbour() const
Internal face neighbour.
const polyMesh & mesh() const
Return reference to polyMesh.
A class for managing temporary objects.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
Construct a volume field from a surface field using a combine operator.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
tmp< VolField< Type > > cellReduce(const SurfaceField< Type > &, const CombineOp &cop, const Type &nullValue=pTraits< Type >::zero)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
UList< label > labelUList