21char ope_helmholtz_minus_2d_solh_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Ope_elementary/Ope_helmholtz_minus_2d/ope_helmholtz_minus_2d_solh.C,v 1.4 2014/10/13 08:53:33 j_novak Exp $" ;
30#include <gsl/gsl_sf_bessel.h>
33#include "ope_elementary.h"
39Tbl _solh_helmholtz_minus_2d_pas_prevu (
int,
int,
double,
double,
double) {
41 cout <<
" Solution homogene pas prevue ..... : "<< endl ;
52Tbl _solh_helmholtz_minus_2d_r_cheb (
int n,
int l,
double masse,
double alpha,
double beta) {
55 double echelle = beta / alpha ;
59 double* coloc =
new double[n] ;
61 int * deg =
new int[3] ;
67 for (
int i=0 ; i<n ; i++)
68 coloc[i] = gsl_sf_bessel_In (l, masse*alpha*(echelle-
cos(M_PI*i/(n-1)))) ;
70 cfrcheb(deg, deg, coloc, deg, coloc) ;
71 for (
int i=0 ; i<n ;i++)
72 res.set(0, i) = coloc[i] ;
75 for (
int i=0 ; i<n ; i++)
76 coloc[i] = gsl_sf_bessel_Kn (l, masse*alpha*(echelle-
cos(M_PI*i/(n-1)))) ;
78 cfrcheb(deg, deg, coloc, deg, coloc) ;
79 for (
int i=0 ; i<n ;i++)
80 res.set(1, i) = coloc[i] ;
92Tbl _solh_helmholtz_minus_2d_r_chebu (
int n,
int l,
double masse,
93 double alpha,
double) {
98 double* coloc =
new double[n] ;
100 int * deg =
new int[3] ;
105 for (
int i=0 ; i<n-1 ; i++)
106 coloc[i] = gsl_sf_bessel_Kn (l, masse/alpha/(-1-
cos(M_PI*i/(n-1)))) ;
109 cfrcheb(deg, deg, coloc, deg, coloc) ;
110 for (
int i=0 ; i<n ;i++)
111 res.set(i) = coloc[i] ;
141 if (
res.get_ndim() == 1) {
153 auxi.set_etat_qcq() ;
154 for (
int i=0 ;
i<
nr ;
i++)
165 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 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)
#define R_CHEB
base de Chebychev ordinaire (fin)