Documentation 6b54b78464
Loading...
Searching...
No Matches
CCubicSpline Class Referencefinal

Cubic spline interpolation. More...

#include <C1DInterpolation.hpp>

Inheritance diagram for CCubicSpline:
[legend]

Public Types

enum  END_TYPE { SECOND , FIRST }
 

Public Member Functions

 CCubicSpline ()=default
 
 CCubicSpline (const std::vector< su2double > &X, const std::vector< su2double > &Data, END_TYPE startCondition=SECOND, su2double startValue=0.0, END_TYPE endCondition=SECOND, su2double endValue=0.0)
 Constructor of the CCubicSpline class (defaults to natural spline).
 
void SetSpline (const std::vector< su2double > &X, const std::vector< su2double > &Data) override
 Build the spline.
 
- Public Member Functions inherited from CAkimaInterpolation
 CAkimaInterpolation ()=default
 
 CAkimaInterpolation (const std::vector< su2double > &X, const std::vector< su2double > &Data)
 Constructor of the CAkimaInterpolation class.
 
su2double EvaluateSpline (su2double Point_Interp) const final
 Evaluate the value of the spline at a point.
 
- Public Member Functions inherited from C1DInterpolation
virtual ~C1DInterpolation ()=default
 Virtual destructor of the C1DInterpolation class.
 
su2double operator() (su2double Point_Interp) const
 

Additional Inherited Members

- Protected Member Functions inherited from C1DInterpolation
size_t lower_bound (su2double xi) const
 Find containing interval.
 
- Protected Attributes inherited from CAkimaInterpolation
std::vector< su2double > b
 
std::vector< su2double > c
 
std::vector< su2double > d
 local variables for Akima spline cooefficients
 
- Protected Attributes inherited from C1DInterpolation
std::vector< su2double > x
 
std::vector< su2double > y
 Data points.
 

Detailed Description

Cubic spline interpolation.

Member Enumeration Documentation

◆ END_TYPE

Enumerator
SECOND 
FIRST 

Constructor & Destructor Documentation

◆ CCubicSpline() [1/2]

CCubicSpline::CCubicSpline ( )
default

◆ CCubicSpline() [2/2]

CCubicSpline::CCubicSpline ( const std::vector< su2double > &  X,
const std::vector< su2double > &  Data,
END_TYPE  startCondition = SECOND,
su2double  startValue = 0.0,
END_TYPE  endCondition = SECOND,
su2double  endValue = 0.0 
)
inline

Constructor of the CCubicSpline class (defaults to natural spline).

Parameters
[in]X- the x values (sorted low to high).
[in]Data- the f(x) values.
[in]startCondition- 1st or 2nd derivative imposed at the start.
[in]startValue- value of the derivative imposed at the start.
[in]endCondition- 1st or 2nd derivative imposed at the end.
[in]endValue- value of the derivative imposed at the end.

Member Function Documentation

◆ SetSpline()

void CCubicSpline::SetSpline ( const std::vector< su2double > &  X,
const std::vector< su2double > &  Data 
)
overridevirtual

Build the spline.

Reimplemented from CAkimaInterpolation.


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