OpenFAST
Wind turbine multiphysics simulator
Public Member Functions | List of all members
nwtc_num::interpbin Interface Reference

This funtion returns a y-value that corresponds to an input x-value by interpolating into the arrays. More...

Public Member Functions

complex(reki) function interpbincomp (XVal, XAry, YAry, ILo, AryLen)
 This funtion returns a y-value that corresponds to an input x-value by interpolating into the arrays. More...
 
real(reki) function interpbinreal (XVal, XAry, YAry, ILo, AryLen)
 This funtion returns a y-value that corresponds to an input x-value by interpolating into the arrays. More...
 

Detailed Description

This funtion returns a y-value that corresponds to an input x-value by interpolating into the arrays.

It uses a binary interpolation scheme that takes about log(AryLen) / log(2) steps to converge. It returns the first or last YAry() value if XVal is outside the limits of XAry().

Use InterpBin (nwtc_num::interpbin) instead of directly calling a specific routine in the generic interface.

Returns
The interpolated value of Y at XVal
Parameters
[in]arylenLength of the arrays.
[in,out]iloThe low index into the arrays.
[in]xaryArray of X values to be interpolated.
[in]xvalX value to be interpolated.
[in]yaryArray of Y values to be interpolated.

Member Function/Subroutine Documentation

◆ interpbincomp()

complex(reki) function nwtc_num::interpbin::interpbincomp ( real(reki), intent(in)  XVal,
real(reki), dimension (arylen), intent(in)  XAry,
complex(reki), dimension (arylen), intent(in)  YAry,
integer, intent(inout)  ILo,
integer, intent(in)  AryLen 
)

This funtion returns a y-value that corresponds to an input x-value by interpolating into the arrays.

It uses a binary interpolation scheme that takes about log(AryLen) / log(2) steps to converge. It returns the first or last YAry() value if XVal is outside the limits of XAry().

Use InterpBin (nwtc_num::interpbin) instead of directly calling a specific routine in the generic interface.

Returns
The interpolated value of Y at XVal
Parameters
[in]arylenLength of the arrays.
[in,out]iloThe low index into the arrays.
[in]xaryArray of X values to be interpolated.
[in]xvalX value to be interpolated.
[in]yaryArray of Y values to be interpolated.

◆ interpbinreal()

real(reki) function nwtc_num::interpbin::interpbinreal ( real(reki), intent(in)  XVal,
real(reki), dimension (arylen), intent(in)  XAry,
real(reki), dimension (arylen), intent(in)  YAry,
integer, intent(inout)  ILo,
integer, intent(in)  AryLen 
)

This funtion returns a y-value that corresponds to an input x-value by interpolating into the arrays.

It uses a binary interpolation scheme that takes about log(AryLen) / log(2) steps to converge. It returns the first or last YAry() value if XVal is outside the limits of XAry().

Use InterpBin (nwtc_num::interpbin) instead of directly calling a specific routine in the generic interface.

Returns
The interpolated value of Y at XVal
Parameters
[in]arylenLength of the arrays.
[in,out]iloThe low index into the arrays.
[in]xaryArray of X values to be interpolated.
[in]xvalX value to be interpolated.
[in]yaryArray of Y values to be interpolated.
Returns
The interpolated value of Y at XVal
Parameters
[in]arylenLength of the arrays.
[in,out]iloThe low index into the arrays.
[in]xaryArray of X values to be interpolated.
[in]xvalX value to be interpolated.
[in]yaryArray of Y values to be interpolated.

The documentation for this interface was generated from the following file: