Go to the documentation of this file.
40 return AMI().interpolateToSource(
fld, defaultValues);
44 return neighbPatch().AMI().interpolateToTarget(
fld, defaultValues);
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)
161 template<
class Type,
class CombineOp>
165 const CombineOp& cop,
224 AMI().interpolateToSource
234 neighbPatch().AMI().interpolateToTarget
int debug
Static debugging option.
A class for managing temporary objects.
Type gAverage(const FieldField< Field, Type > &f)
bool valid() const noexcept
Identical to good(), or bool operator.
Ostream & endl(Ostream &os)
Add newline and flush stream.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
#define forAll(list, i)
Loop across all elements in list.
tmp< Field< Type > > interpolateUntransformed(const Field< Type > &fld, const UList< Type > &defaultValues) const
Interpolate without periodic.
SubField is a Field obtained as a section of another Field, without its own allocation....
#define R(A, B, C, D, E, F, K, M)
Generic templated field type.
coordSystem::cylindrical cylindricalCS
Compatibility typedef 1806.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
tmp< Field< Type > > interpolate(const Field< Type > &fld, const UList< Type > &defaultValues=UList< Type >()) const
Interpolate field.
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const vectorField::subField faceCentres() const
Return face centres.
A traits class, which is primarily used for primitives.
dimensionSet invTransform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
const word & name() const noexcept
The patch name.
void size(const label n)
Older name for setAddressableSize.
static tmp< GeometricField< Type, faePatchField, edgeMesh > > interpolate(const GeometricField< Type, faPatchField, areaMesh > &tvf, const edgeScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
Cyclic patch for Arbitrary Mesh Interface (AMI)