Nearest-face Arbitrary Mesh Interface (AMI) method. More...
Classes | |
class | nearestEqOp |
Public Types | |
typedef Tuple2< pointIndexHit, scalar > | nearestAndDist |
Public Member Functions | |
TypeName ("nearestFaceAMI") | |
nearestFaceAMI (const dictionary &dict, const bool reverseTarget=false) | |
nearestFaceAMI (const bool requireMatch=true, const bool reverseTarget=false, const scalar lowWeightCorrection=-1) | |
nearestFaceAMI (const nearestFaceAMI &ami) | |
virtual autoPtr< AMIInterpolation > | clone () const |
virtual | ~nearestFaceAMI ()=default |
virtual bool | calculate (const primitivePatch &srcPatch, const primitivePatch &tgtPatch, const autoPtr< searchableSurface > &surfPtr=nullptr) |
![]() | |
TypeName ("AMIInterpolation") | |
declareRunTimeSelectionTable (autoPtr, AMIInterpolation, dict,(const dictionary &dict, const bool reverseTarget),(dict, reverseTarget)) | |
declareRunTimeSelectionTable (autoPtr, AMIInterpolation, component,(const bool requireMatch, const bool reverseTarget, const scalar lowWeightCorrection),(requireMatch, reverseTarget, lowWeightCorrection)) | |
AMIInterpolation (const dictionary &dict, const bool reverseTarget=false) | |
AMIInterpolation (const bool requireMatch=true, const bool reverseTarget=false, const scalar lowWeightCorrection=-1) | |
AMIInterpolation (const AMIInterpolation &fineAMI, const labelList &sourceRestrictAddressing, const labelList &neighbourRestrictAddressing) | |
AMIInterpolation (const AMIInterpolation &ami) | |
virtual | ~AMIInterpolation ()=default |
bool | upToDate () const |
bool & | upToDate () |
bool | distributed () const |
bool | requireMatch () const |
bool | setRequireMatch (const bool flag) |
bool | mustMatchFaces () const |
bool | reverseTarget () const |
scalar | lowWeightCorrection () const |
bool | applyLowWeightCorrection () const |
label | singlePatchProc () const |
const List< scalar > & | srcMagSf () const |
List< scalar > & | srcMagSf () |
const labelListList & | srcAddress () const |
labelListList & | srcAddress () |
const scalarListList & | srcWeights () const |
scalarListList & | srcWeights () |
const scalarField & | srcWeightsSum () const |
scalarField & | srcWeightsSum () |
const pointListList & | srcCentroids () const |
pointListList & | srcCentroids () |
const mapDistribute & | srcMap () const |
const List< scalar > & | tgtMagSf () const |
List< scalar > & | tgtMagSf () |
const labelListList & | tgtAddress () const |
labelListList & | tgtAddress () |
const scalarListList & | tgtWeights () const |
scalarListList & | tgtWeights () |
const scalarField & | tgtWeightsSum () const |
scalarField & | tgtWeightsSum () |
const mapDistribute & | tgtMap () const |
void | reset (autoPtr< mapDistribute > &&srcToTgtMap, autoPtr< mapDistribute > &&tgtToSrcMap, labelListList &&srcAddress, scalarListList &&srcWeights, labelListList &&tgtAddress, scalarListList &&tgtWeights) |
void | append (const primitivePatch &srcPatch, const primitivePatch &tgtPatch) |
void | normaliseWeights (const bool conformal, const bool output) |
template<class Type , class CombineOp > | |
void | interpolateToSource (const UList< Type > &fld, const CombineOp &cop, List< Type > &result, const UList< Type > &defaultValues=UList< Type >::null()) const |
template<class Type , class CombineOp > | |
void | interpolateToTarget (const UList< Type > &fld, const CombineOp &cop, List< Type > &result, const UList< Type > &defaultValues=UList< Type >::null()) const |
template<class Type , class CombineOp > | |
tmp< Field< Type > > | interpolateToSource (const Field< Type > &fld, const CombineOp &cop, const UList< Type > &defaultValues=UList< Type >::null()) const |
template<class Type , class CombineOp > | |
tmp< Field< Type > > | interpolateToSource (const tmp< Field< Type >> &tFld, const CombineOp &cop, const UList< Type > &defaultValues=UList< Type >::null()) const |
template<class Type , class CombineOp > | |
tmp< Field< Type > > | interpolateToTarget (const Field< Type > &fld, const CombineOp &cop, const UList< Type > &defaultValues=UList< Type >::null()) const |
template<class Type , class CombineOp > | |
tmp< Field< Type > > | interpolateToTarget (const tmp< Field< Type >> &tFld, const CombineOp &cop, const UList< Type > &defaultValues=UList< Type >::null()) const |
template<class Type > | |
tmp< Field< Type > > | interpolateToSource (const Field< Type > &fld, const UList< Type > &defaultValues=UList< Type >::null()) const |
template<class Type > | |
tmp< Field< Type > > | interpolateToSource (const tmp< Field< Type >> &tFld, const UList< Type > &defaultValues=UList< Type >::null()) const |
template<class Type > | |
tmp< Field< Type > > | interpolateToTarget (const Field< Type > &fld, const UList< Type > &defaultValues=UList< Type >::null()) const |
template<class Type > | |
tmp< Field< Type > > | interpolateToTarget (const tmp< Field< Type >> &tFld, const UList< Type > &defaultValues=UList< Type >::null()) const |
label | srcPointFace (const primitivePatch &srcPatch, const primitivePatch &tgtPatch, const vector &n, const label tgtFacei, point &tgtPoint) const |
label | tgtPointFace (const primitivePatch &srcPatch, const primitivePatch &tgtPatch, const vector &n, const label srcFacei, point &srcPoint) const |
bool | checkSymmetricWeights (const bool log) const |
void | writeFaceConnectivity (const primitivePatch &srcPatch, const primitivePatch &tgtPatch, const labelListList &srcAddress) const |
virtual void | write (Ostream &os) const |
template<class Type , class CombineOp > | |
Foam::tmp< Foam::Field< Type > > | interpolateToSource (const Field< Type > &fld, const CombineOp &cop, const UList< Type > &defaultValues) const |
template<class Type , class CombineOp > | |
Foam::tmp< Foam::Field< Type > > | interpolateToSource (const tmp< Field< Type >> &tFld, const CombineOp &cop, const UList< Type > &defaultValues) const |
template<class Type , class CombineOp > | |
Foam::tmp< Foam::Field< Type > > | interpolateToTarget (const Field< Type > &fld, const CombineOp &cop, const UList< Type > &defaultValues) const |
template<class Type , class CombineOp > | |
Foam::tmp< Foam::Field< Type > > | interpolateToTarget (const tmp< Field< Type >> &tFld, const CombineOp &cop, const UList< Type > &defaultValues) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | interpolateToSource (const Field< Type > &fld, const UList< Type > &defaultValues) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | interpolateToSource (const tmp< Field< Type >> &tFld, const UList< Type > &defaultValues) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | interpolateToTarget (const Field< Type > &fld, const UList< Type > &defaultValues) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | interpolateToTarget (const tmp< Field< Type >> &tFld, const UList< Type > &defaultValues) const |
Nearest-face Arbitrary Mesh Interface (AMI) method.
Definition at line 47 of file nearestFaceAMI.H.
typedef Tuple2<pointIndexHit, scalar> nearestAndDist |
Definition at line 53 of file nearestFaceAMI.H.
nearestFaceAMI | ( | const dictionary & | dict, |
const bool | reverseTarget = false |
||
) |
Definition at line 228 of file nearestFaceAMI.C.
Referenced by nearestFaceAMI::clone().
nearestFaceAMI | ( | const bool | requireMatch = true , |
const bool | reverseTarget = false , |
||
const scalar | lowWeightCorrection = -1 |
||
) |
Definition at line 239 of file nearestFaceAMI.C.
nearestFaceAMI | ( | const nearestFaceAMI & | ami | ) |
Definition at line 250 of file nearestFaceAMI.C.
|
virtualdefault |
TypeName | ( | "nearestFaceAMI" | ) |
|
inlinevirtual |
Reimplemented from AMIInterpolation.
Definition at line 134 of file nearestFaceAMI.H.
References nearestFaceAMI::nearestFaceAMI().
|
virtual |
Reimplemented from AMIInterpolation.
Definition at line 260 of file nearestFaceAMI.C.
References AMIInterpolation::calculate(), Foam::expressions::patchExpr::debug, Foam::endl(), forAll, PointIndexHit::hit(), PointIndexHit::index(), Foam::mag(), Foam::magSqr(), and WarningInFunction.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.