BilinearSpline Class ReferenceΒΆ

Splines: Splines::BilinearSpline Class Reference
Splines
Splines::BilinearSpline Class Reference

bilinear spline base class More...

#include <SplineBilinear.hxx>

Inheritance diagram for Splines::BilinearSpline:
Splines::SplineSurf

Public Member Functions

 BilinearSpline (string const &name="BilinearSpline")
 
 ~BilinearSpline () override
 
real_type eval (real_type x, real_type y) const override
 
void D (real_type x, real_type y, real_type d[3]) const override
 
real_type Dx (real_type x, real_type y) const override
 
real_type Dy (real_type x, real_type y) const override
 
void DD (real_type x, real_type y, real_type dd[6]) const override
 
real_type Dxx (real_type, real_type) const override
 
real_type Dxy (real_type, real_type) const override
 
real_type Dyy (real_type, real_type) const override
 
void write_to_stream (ostream_type &s) const override
 
char const * type_name () const override
 
- Public Member Functions inherited from Splines::SplineSurf
 SplineSurf (string const &name="Spline")
 
virtual ~SplineSurf ()
 
void clear ()
 
virtual string info () const
 
void info (ostream_type &stream) const
 
void dump_data (ostream_type &s) const
 
bool is_x_closed () const
 
void make_x_closed ()
 
void make_x_opened ()
 
bool is_y_closed () const
 
void make_y_closed ()
 
void make_y_opened ()
 
bool is_x_bounded () const
 
void make_x_unbounded ()
 
void make_x_bounded ()
 
bool is_y_bounded () const
 
void make_y_unbounded ()
 
void make_y_bounded ()
 
string const & name () const
 
integer num_point_x () const
 
integer num_point_y () const
 
real_type x_node (integer i) const
 
real_type y_node (integer i) const
 
real_type z_node (integer i, integer j) const
 
real_type x_min () const
 
real_type x_max () const
 
real_type y_min () const
 
real_type y_max () const
 
real_type z_min () const
 
real_type z_max () const
 
void build (real_type const x[], integer incx, real_type const y[], integer incy, real_type const z[], integer ldZ, integer nx, integer ny, bool fortran_storage=false, bool transposed=false)
 
void build (vector< real_type > const &x, vector< real_type > const &y, vector< real_type > const &z, bool fortran_storage=false, bool transposed=false)
 
void build (real_type const z[], integer ldZ, integer nx, integer ny, bool fortran_storage=false, bool transposed=false)
 
void build (vector< real_type > const &z, integer nx, integer ny, bool fortran_storage=false, bool transposed=false)
 
void setup (GenericContainer const &gc)
 
void build (GenericContainer const &gc)
 
real_type operator() (real_type x, real_type y) const
 
real_type eval_D_1 (real_type x, real_type y) const
 
real_type eval_D_2 (real_type x, real_type y) const
 
real_type eval_D_1_1 (real_type x, real_type y) const
 
real_type eval_D_1_2 (real_type x, real_type y) const
 
real_type eval_D_2_2 (real_type x, real_type y) const
 

Detailed Description

bilinear spline base class

Constructor & Destructor Documentation

◆ BilinearSpline()

Splines::BilinearSpline::BilinearSpline ( string const & name = "BilinearSpline")
inline

Build an empty spline of BilinearSpline type

Parameters
namethe name of the spline

◆ ~BilinearSpline()

Splines::BilinearSpline::~BilinearSpline ( )
inlineoverride

Spline destructor.

Member Function Documentation

◆ D()

void Splines::BilinearSpline::D ( real_type x,
real_type y,
real_type d[3] ) const
overridevirtual

Value and first derivatives at point \( (x,y) \):

  • d[0] value of the spline \( S(x,y) \)
  • d[1] derivative respect to \( x \) of the spline: \( S_x(x,y) \)
  • d[2] derivative respect to \( y \) of the spline: \( S_y(x,y) \)

Implements Splines::SplineSurf.

◆ DD()

void Splines::BilinearSpline::DD ( real_type x,
real_type y,
real_type dd[6] ) const
overridevirtual

Value, first and second derivatives at point \( (x,y) \):

  • dd[0] value of the spline \( S(x,y) \)
  • dd[1] derivative respect to \( x \) of the spline: \( S_x(x,y) \)
  • dd[2] derivative respect to \( y \) of the spline: \( S_y(x,y) \)
  • dd[3] second derivative respect to \( x \) of the spline: \( S_{xx}(x,y) \)
  • dd[4] mixed second derivative: \( S_{xy}(x,y) \)
  • dd[5] second derivative respect to \( y \) of the spline: \( S_{yy}(x,y) \)

Implements Splines::SplineSurf.

◆ Dx()

real_type Splines::BilinearSpline::Dx ( real_type x,
real_type y ) const
overridevirtual

First derivatives respect to \( x \) at point \( (x,y) \) of the spline: \( S_x(x,y) \).

Implements Splines::SplineSurf.

◆ Dxx()

real_type Splines::BilinearSpline::Dxx ( real_type x,
real_type y ) const
inlineoverridevirtual

Second derivatives respect to \( x \) at point \( (x,y) \) of the spline: \( S_{xx}(x,y) \).

Implements Splines::SplineSurf.

◆ Dxy()

real_type Splines::BilinearSpline::Dxy ( real_type x,
real_type y ) const
inlineoverridevirtual

Mixed second derivatives: \( S_{xy}(x,y) \).

Implements Splines::SplineSurf.

◆ Dy()

real_type Splines::BilinearSpline::Dy ( real_type x,
real_type y ) const
overridevirtual

First derivatives respect to \( y \) at point \( (x,y) \) of the spline: \( S_y(x,y) \).

Implements Splines::SplineSurf.

◆ Dyy()

real_type Splines::BilinearSpline::Dyy ( real_type x,
real_type y ) const
inlineoverridevirtual

Second derivatives respect to \( y \) at point \( (x,y) \) of the spline: \( S_{yy}(x,y) \).

Implements Splines::SplineSurf.

◆ eval()

real_type Splines::BilinearSpline::eval ( real_type x,
real_type y ) const
overridevirtual

Evaluate spline value at point \( (x,y) \).

Implements Splines::SplineSurf.

◆ type_name()

char const * Splines::BilinearSpline::type_name ( ) const
overridevirtual

Return spline type as a string pointer.

Implements Splines::SplineSurf.

◆ write_to_stream()

void Splines::BilinearSpline::write_to_stream ( ostream_type & s) const
overridevirtual

Print spline coefficients.

Implements Splines::SplineSurf.


The documentation for this class was generated from the following files:
  • /Users/enrico/Ricerca/develop/PINS/pins-mechatronix/LibSources/submodules/Splines/src/Splines/SplineBilinear.hxx
  • /Users/enrico/Ricerca/develop/PINS/pins-mechatronix/LibSources/submodules/Splines/src/SplineBilinear.cc