Public Member Functions | Static Public Member Functions | List of all members
pointToPointPlanarInterpolation Class Reference

Interpolates between two sets of unstructured points using 2D Delaunay triangulation. Used in e.g. timeVaryingMapped bcs. More...

Public Member Functions

 ClassName ("pointToPointPlanarInterpolation")
 
 pointToPointPlanarInterpolation (const pointField &sourcePoints, const pointField &destPoints, const scalar perturb, const bool nearestOnly=false)
 
 pointToPointPlanarInterpolation (const coordinateSystem &referenceCS, const pointField &sourcePoints, const pointField &destPoints, const scalar perturb)
 
 pointToPointPlanarInterpolation (const scalar perturb, const bool nearestOnly, const coordinateSystem &referenceCS, const label sourceSize, const List< FixedList< label, 3 >> &nearestVertex, const List< FixedList< scalar, 3 >> &nearestVertexWeight)
 
autoPtr< pointToPointPlanarInterpolationclone () const
 
scalar perturb () const
 
bool nearestOnly () const
 
const coordSystem::cartesianreferenceCS () const
 
label sourceSize () const
 
const List< FixedList< label, 3 > > & nearestVertex () const
 
const List< FixedList< scalar, 3 > > & nearestVertexWeight () const
 
template<class Type >
tmp< Field< Type > > interpolate (const Field< Type > &sourceFld) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > interpolate (const Field< Type > &sourceFld) const
 

Static Public Member Functions

static wordList timeNames (const instantList &)
 
static bool findTime (const instantList &times, const label startSampleTime, const scalar timeVal, label &lo, label &hi)
 

Detailed Description

Interpolates between two sets of unstructured points using 2D Delaunay triangulation. Used in e.g. timeVaryingMapped bcs.

Source files

Definition at line 49 of file pointToPointPlanarInterpolation.H.

Constructor & Destructor Documentation

◆ pointToPointPlanarInterpolation() [1/3]

pointToPointPlanarInterpolation ( const pointField sourcePoints,
const pointField destPoints,
const scalar  perturb,
const bool  nearestOnly = false 
)

Definition at line 308 of file pointToPointPlanarInterpolation.C.

◆ pointToPointPlanarInterpolation() [2/3]

pointToPointPlanarInterpolation ( const coordinateSystem referenceCS,
const pointField sourcePoints,
const pointField destPoints,
const scalar  perturb 
)

Definition at line 329 of file pointToPointPlanarInterpolation.C.

◆ pointToPointPlanarInterpolation() [3/3]

pointToPointPlanarInterpolation ( const scalar  perturb,
const bool  nearestOnly,
const coordinateSystem referenceCS,
const label  sourceSize,
const List< FixedList< label, 3 >> &  nearestVertex,
const List< FixedList< scalar, 3 >> &  nearestVertexWeight 
)

Definition at line 346 of file pointToPointPlanarInterpolation.C.

Member Function Documentation

◆ ClassName()

ClassName ( "pointToPointPlanarInterpolation"  )

◆ clone()

Definition at line 365 of file pointToPointPlanarInterpolation.C.

References autoPtr::New().

Here is the call graph for this function:

◆ perturb()

scalar perturb ( ) const
inline

Definition at line 134 of file pointToPointPlanarInterpolation.H.

◆ nearestOnly()

bool nearestOnly ( ) const
inline

Definition at line 140 of file pointToPointPlanarInterpolation.H.

◆ referenceCS()

const coordSystem::cartesian& referenceCS ( ) const
inline

Definition at line 146 of file pointToPointPlanarInterpolation.H.

◆ sourceSize()

label sourceSize ( ) const
inline

Definition at line 152 of file pointToPointPlanarInterpolation.H.

◆ nearestVertex()

const List<FixedList<label, 3> >& nearestVertex ( ) const
inline

Definition at line 158 of file pointToPointPlanarInterpolation.H.

◆ nearestVertexWeight()

const List<FixedList<scalar, 3> >& nearestVertexWeight ( ) const
inline

Definition at line 165 of file pointToPointPlanarInterpolation.H.

◆ timeNames()

Foam::wordList timeNames ( const instantList times)
static

Definition at line 382 of file pointToPointPlanarInterpolation.C.

References forAll, and Foam::PtrListOps::names().

Here is the call graph for this function:

◆ findTime()

bool findTime ( const instantList times,
const label  startSampleTime,
const scalar  timeVal,
label &  lo,
label &  hi 
)
static

Definition at line 397 of file pointToPointPlanarInterpolation.C.

References Foam::expressions::patchExpr::debug, Foam::endl(), and Foam::Pout.

Here is the call graph for this function:

◆ interpolate() [1/2]

tmp<Field<Type> > interpolate ( const Field< Type > &  sourceFld) const

◆ interpolate() [2/2]

Foam::tmp<Foam::Field<Type> > interpolate ( const Field< Type > &  sourceFld) const

Definition at line 27 of file pointToPointPlanarInterpolationTemplates.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, fld, forAll, and tmp::ref().

Here is the call graph for this function:

The documentation for this class was generated from the following files: