44 result[
faceCells[elemi]] += coeffs[elemi]*vals[elemi];
51 result[
faceCells[elemi]] -= coeffs[elemi]*vals[elemi];
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
Smooth ATC in cells next to a set of patches supplied by type.
void addToInternalField(Field< Type > &result, const bool add, const labelUList &faceCells, const scalarField &coeffs, const Field< Type > &vals) const
Add/subtract weighted contributions to internal field.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void add(DimensionedField< scalar, GeoMesh > &result, const dimensioned< scalar > &dt1, const DimensionedField< scalar, GeoMesh > &f2)
UList< label > labelUList
A UList of labels.
#define forAll(list, i)
Loop across all elements in list.