58 return interpolateUntransformed(
fld, defaultValues);
65 return interpolateUntransformed(
fld, defaultValues);
73 Pout<<
"cyclicAMIPolyPatch::interpolate :"
74 <<
" patch:" << this->
name()
75 <<
" size:" << this->size()
76 <<
" nbrPatch:" << nbrPp.
name()
77 <<
" size:" << nbrPp.size()
81 if (
fld.size() != nbrPp.size())
84 <<
"Patch:" << this->
name()
85 <<
" size:" << this->size()
86 <<
" neighbour patch:" << nbrPp.
name()
87 <<
" size:" << nbrPp.size()
88 <<
" fld size:" <<
fld.size()
107 <<
" size:" << this->size()
108 <<
" fc:" <<
gAverage(this->faceCentres())
109 <<
" getting remote data from:" << nbrPp.
name()
110 <<
" size:" << nbrPp.size()
116 Pout<<
"At:" << nbrFc[i] <<
nl
117 <<
" cart:" <<
fld[i] <<
nl
118 <<
" cyli:" << localFld[i] <<
nl
127 if (defaultValues.
size() == size())
143 interpolateUntransformed(localFld, localDeflt)
161template<
class Type,
class CombineOp>
165 const CombineOp& cop,
224 AMI().interpolateToSource
234 neighbPatch().AMI().interpolateToTarget
#define R(A, B, C, D, E, F, K, M)
Info<< nl<< "Wrote faMesh in vtk format: "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.mesh().time().globalPath()/"finiteArea-edges"));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
void interpolateToSource(const UList< Type > &fld, const CombineOp &cop, List< Type > &result, const UList< Type > &defaultValues=UList< Type >::null()) const
void interpolateToTarget(const UList< Type > &fld, const CombineOp &cop, List< Type > &result, const UList< Type > &defaultValues=UList< Type >::null()) const
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...
SubField is a Field obtained as a section of another Field, without its own allocation....
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void size(const label n)
Older name for setAddressableSize.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Cyclic patch for Arbitrary Mesh Interface (AMI)
virtual bool owner() const
Does this side own the patch?
tmp< Field< Type > > interpolateUntransformed(const Field< Type > &fld, const UList< Type > &defaultValues) const
Interpolate without periodic.
const AMIPatchToPatchInterpolation & AMI() const
Return a reference to the AMI interpolator.
virtual const cyclicAMIPolyPatch & neighbPatch() const
Return a reference to the neighbour patch.
A traits class, which is primarily used for primitives.
const word & name() const noexcept
The patch name.
const vectorField::subField faceCentres() const
Return face centres.
bool interpolate() const noexcept
Same as isPointData()
A class for managing temporary objects.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionSet invTransform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
Ostream & endl(Ostream &os)
Add newline and flush stream.
coordSystem::cylindrical cylindricalCS
Compatibility typedef 1806.
Type gAverage(const FieldField< Field, Type > &f)
bool interpolate(const vector &p1, const vector &p2, const vector &o, vector &n, scalar l)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.