21char ope_helmholtz_minus_pseudo_1d_solh_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Ope_elementary/Ope_helmholtz_minus_pseudo_1d/ope_helmholtz_minus_pseudo_1d_solh.C,v 1.4 2014/10/13 08:53:34 j_novak Exp $" ;
30#include <gsl/gsl_sf_bessel.h>
33#include "ope_elementary.h"
39Tbl _solh_helmholtz_minus_pseudo_1d_pas_prevu (
int,
int,
40 double,
double,
double) {
42 cout <<
" Solution homogene pas prevue ..... : "<< endl ;
53Tbl _solh_helmholtz_minus_pseudo_1d_r_chebu (
int n,
int l,
55 double alpha,
double) {
60 double* coloc =
new double[n] ;
62 int * deg =
new int[3] ;
67 for (
int i=0 ; i<n-1 ; i++) {
68 double air = 1./(alpha*(-1-
cos(M_PI*i/(n-1)))) ;
69 if ((l !=0) && (l!=1))
70 coloc[i] = gsl_sf_bessel_kl_scaled (l-1, masse*air) /
exp(masse*air) * air;
72 coloc[i] =
exp(-masse*air) ;
76 cfrcheb(deg, deg, coloc, deg, coloc) ;
77 for (
int i=0 ; i<n ;i++)
78 res.set(i) = coloc[i] ;
107 if (
res.get_ndim() == 1) {
119 auxi.set_etat_qcq() ;
120 for (
int i=0 ;
i<
nr ;
i++)
131 for (
int i=0 ;
i<
nr ;
i++)
Time evolution with partial storage (*** under development ***).
double ds_two_minus
Value of the derivative of the second homogeneous solution at the inner boundary.
double s_two_plus
Value of the second homogeneous solution at the outer boundary.
double s_one_minus
Value of the first homogeneous solution at the inner boundary.
double beta
Parameter of the associated mapping.
double ds_one_plus
Value of the derivative of the first homogeneous solution at the outer boundary.
double ds_one_minus
Value of the derivative of the first homogeneous solution at the inner boundary.
double alpha
Parameter of the associated mapping.
double s_two_minus
Value of the second homogeneous solution at the inner boundary.
int base_r
Radial basis of decomposition.
double s_one_plus
Value of the first homogeneous solution at the outer boundary.
double ds_two_plus
Value of the derivative of the second homogeneous solution at the outer boundary.
int nr
Number of radial points.
virtual Tbl get_solh() const
Computes the homogeneous solutions(s).
double masse
The mass term.
int l_quant
quantum number
Cmp sqrt(const Cmp &)
Square root.
Cmp exp(const Cmp &)
Exponential.
Cmp cos(const Cmp &)
Cosine.
#define MAX_BASE
Nombre max. de bases differentes.
#define R_CHEBU
base de Chebychev ordinaire (fin), dev. en 1/r
#define TRA_R
Translation en R, used for a bitwise shift (in hex)