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)
 Construct from 3D locations. Determines local coordinate system. More...
 
 pointToPointPlanarInterpolation (const coordinateSystem &referenceCS, const pointField &sourcePoints, const pointField &destPoints, const scalar perturb)
 Construct from coordinate system and locations. More...
 
const coordinateSystemreferenceCS () const
 Return the coordinateSystem. More...
 
label sourceSize () const
 Number of source points. More...
 
const List< FixedList< label, 3 > > & nearestVertex () const
 
const List< FixedList< scalar, 3 > > & nearestVertexWeight () const
 Current interpolation factors to face centres of underlying. More...
 
template<class Type >
tmp< Field< Type > > interpolate (const Field< Type > &sourceFld) const
 Interpolate from field on source points to dest points. More...
 
template<class Type >
Foam::tmp< Foam::Field< Type > > interpolate (const Field< Type > &sourceFld) const
 

Static Public Member Functions

static wordList timeNames (const instantList &)
 Helper: extract words of times. More...
 
static bool findTime (const instantList &times, const label startSampleTime, const scalar timeVal, label &lo, label &hi)
 Helper: find time. Return true if succesful. More...
 

Detailed Description

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

Source files

Definition at line 51 of file pointToPointPlanarInterpolation.H.

Constructor & Destructor Documentation

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

Construct from 3D locations. Determines local coordinate system.

from sourcePoints and maps onto that. If nearestOnly skips any local coordinate system and triangulation and uses nearest vertex only

Definition at line 317 of file pointToPointPlanarInterpolation.C.

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

Construct from coordinate system and locations.

Definition at line 334 of file pointToPointPlanarInterpolation.C.

References pointToPointPlanarInterpolation::timeNames().

Here is the call graph for this function:

Member Function Documentation

ClassName ( "pointToPointPlanarInterpolation"  )
const coordinateSystem& referenceCS ( ) const
inline

Return the coordinateSystem.

Definition at line 120 of file pointToPointPlanarInterpolation.H.

label sourceSize ( ) const
inline

Number of source points.

Definition at line 126 of file pointToPointPlanarInterpolation.H.

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

Current interpolation factors to face centres of underlying.

patch

Definition at line 139 of file pointToPointPlanarInterpolation.H.

Referenced by pointToPointPlanarInterpolation::nearestVertex().

Here is the caller graph for this function:

Foam::wordList timeNames ( const instantList times)
static

Helper: extract words of times.

Definition at line 353 of file pointToPointPlanarInterpolation.C.

References pointToPointPlanarInterpolation::findTime(), forAll, and List< T >::size().

Referenced by timeVaryingMappedFixedValueFvPatchField< Type >::checkTable(), pointToPointPlanarInterpolation::nearestVertex(), and pointToPointPlanarInterpolation::pointToPointPlanarInterpolation().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Helper: find time. Return true if succesful.

Definition at line 368 of file pointToPointPlanarInterpolation.C.

References Foam::endl(), Foam::Pout, and List< T >::size().

Referenced by pointToPointPlanarInterpolation::nearestVertex(), and pointToPointPlanarInterpolation::timeNames().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Interpolate from field on source points to dest points.

Referenced by pointToPointPlanarInterpolation::nearestVertex().

Here is the caller graph for this function:

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

Definition at line 32 of file pointToPointPlanarInterpolationTemplates.C.

References Foam::exit(), Foam::FatalError, FatalErrorIn, fld(), forAll, and List< Type >::size().

Here is the call graph for this function:


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