39template<
class FromPatch,
class ToPatch>
47 if (pf.
size() != fromPatch_.nPoints())
50 <<
"given field does not correspond to patch. Patch size: "
51 << fromPatch_.nPoints() <<
" field size: " << pf.
size()
63 fromPatch_.localFaces();
73 if (addr[pointi] > -1)
76 fromPatchLocalFaces[addr[pointi]];
80 result[pointi] += curWeights[wI]*pf[hitFacePoints[wI]];
89template<
class FromPatch,
class ToPatch>
103template<
class FromPatch,
class ToPatch>
111 if (ff.size() != fromPatch_.size())
114 <<
"given field does not correspond to patch. Patch size: "
115 << fromPatch_.size() <<
" field size: " << ff.size()
126 const labelListList& fromPatchFaceFaces = fromPatch_.faceFaces();
136 if (addr[facei] > -1)
139 fromPatchFaceFaces[addr[facei]];
142 result[facei] += ff[addr[facei]]*curWeights[0];
144 for (label wI = 1; wI < curWeights.size(); wI++)
146 result[facei] += ff[hitFaceFaces[wI - 1]]*curWeights[wI];
155template<
class FromPatch,
class ToPatch>
A field of fields is a PtrList of fields with reference counting.
Generic templated field type.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
tmp< Field< Type > > pointInterpolate(const Field< Type > &pf) const
Interpolate point field.
tmp< Field< Type > > faceInterpolate(const Field< Type > &pf) const
Interpolate face field.
void size(const label n)
Older name for setAddressableSize.
A class for managing temporary objects.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManip< error > abort(error &err)
static constexpr const zero Zero
Global zero (0)
#define forAll(list, i)
Loop across all elements in list.