00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef __PARAM_ELLIPTIC_H_
00027 #define __PARAM_ELLIPTIC_H_
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112 #include "map.h"
00113 #include "ope_elementary.h"
00114 #include "scalar.h"
00115
00116 #define MAP_AFF 0
00117 #define MAP_LOG 1
00118
00131 class Param_elliptic {
00132
00133 protected:
00134 int type_map ;
00135 const Map_af* mp_af ;
00136 const Map_log* mp_log ;
00137
00138 Ope_elementary** operateurs ;
00139
00140 Scalar var_F ;
00141 Scalar var_G ;
00142
00143 mutable Itbl done_F ;
00144 mutable Itbl done_G ;
00145 mutable Tbl val_F_plus ;
00146 mutable Tbl val_F_minus ;
00147 mutable Tbl val_dF_plus ;
00148 mutable Tbl val_dF_minus ;
00149 mutable Tbl val_G_plus ;
00150 mutable Tbl val_G_minus ;
00151 mutable Tbl val_dG_plus ;
00152 mutable Tbl val_dG_minus ;
00153
00154 private:
00155 void compute_val_F(int, int, int) const ;
00156 void compute_val_G(int) const ;
00157
00158 public:
00169 Param_elliptic (const Scalar&) ;
00170 ~Param_elliptic() ;
00171
00173 const Map_radial& get_mp() const ;
00174 double get_alpha (int) const ;
00175 double get_beta (int) const ;
00176 int get_type (int) const ;
00177
00178 public:
00187 void set_helmholtz_minus (int zone, double mas, Scalar& so) ;
00194 void set_poisson_pseudo_1d (Scalar& so) ;
00202 void set_helmholtz_minus_pseudo_1d (int zone, double mas, Scalar& so) ;
00203
00212 void set_helmholtz_plus (int zone, double mas, Scalar& so) ;
00213
00217 void set_poisson_2d (const Scalar &, bool indic = false) ;
00218
00225 void set_helmholtz_minus_2d (int zone, double mas, const Scalar&) ;
00226
00236 void set_sec_order_r2 (int zone, double a, double b, double c) ;
00237
00247 void set_sec_order (int zone, double a, double b, double c) ;
00248
00255 void set_ope_vorton (int zone, Scalar& so) ;
00265 void set_poisson_vect_r(int zone, bool only_l_zero = false) ;
00266
00282 void set_poisson_vect_eta(int zone) ;
00283
00290 void set_poisson_tens_rr(int zone) ;
00291
00295 void inc_l_quant (int zone) ;
00296
00300 void set_variable_F (const Scalar&) ;
00301
00305 void set_variable_G (const Scalar&) ;
00306
00311 double F_plus (int zone, int k, int j) const ;
00312
00317 double F_minus (int zone, int k, int j) const ;
00318
00324 double dF_plus (int zone, int k, int j) const ;
00325
00331 double dF_minus (int zone, int k, int j) const ;
00332
00337 double G_plus (int zone) const ;
00338
00343 double G_minus (int zone) const ;
00344
00350 double dG_plus (int zone) const ;
00351
00357 double dG_minus (int zone) const ;
00358
00359
00360 friend Mtbl_cf elliptic_solver (const Param_elliptic&, const Mtbl_cf&) ;
00361 friend Mtbl_cf elliptic_solver_boundary (const Param_elliptic&, const Mtbl_cf&, const Mtbl_cf& bound, double fact_dir, double fact_neu ) ;
00362 friend Mtbl_cf elliptic_solver_no_zec
00363 (const Param_elliptic&, const Mtbl_cf&, double) ;
00364 friend Mtbl_cf elliptic_solver_only_zec
00365 (const Param_elliptic&, const Mtbl_cf&, double) ;
00366 friend Mtbl_cf elliptic_solver_sin_zec
00367 (const Param_elliptic&, const Mtbl_cf&, double*, double*) ;
00368 friend Mtbl_cf elliptic_solver_fixe_der_zero
00369 (double, const Param_elliptic&, const Mtbl_cf&) ;
00370
00371 friend void Map_af::sol_elliptic(Param_elliptic&, const Scalar&, Scalar&) const ;
00372 friend void Map_af::sol_elliptic_boundary(Param_elliptic&, const Scalar&, Scalar&, const Mtbl_cf& ,
00373 double , double ) const ;
00374 friend void Map_af::sol_elliptic_boundary(Param_elliptic&, const Scalar&, Scalar&, const Scalar& ,
00375 double , double ) const ;
00376
00377
00378 friend void Map_af::sol_elliptic_no_zec(Param_elliptic&, const Scalar&, Scalar&, double) const ;
00379 friend void Map_af::sol_elliptic_only_zec(Param_elliptic&, const Scalar&, Scalar&, double) const ;
00380 friend void Map_af::sol_elliptic_sin_zec(Param_elliptic&, const Scalar&, Scalar&, double*, double*) const ;
00381 friend void Map_af::sol_elliptic_fixe_der_zero(double, Param_elliptic&, const Scalar&, Scalar&) const ;
00382
00383 friend void Map_af::sol_elliptic_2d(Param_elliptic&, const Scalar&, Scalar&) const ;
00384 friend void Map_af::sol_elliptic_pseudo_1d(Param_elliptic&, const Scalar&, Scalar&) const ;
00385
00386 friend void Map_log::sol_elliptic(Param_elliptic&, const Scalar&, Scalar&) const ;
00387 friend void Map_log::sol_elliptic_boundary(Param_elliptic&, const Scalar&, Scalar&, const Mtbl_cf&,
00388 double, double) const ;
00389
00390 friend void Map_log::sol_elliptic_boundary(Param_elliptic&, const Scalar&, Scalar&, const Scalar&,
00391 double, double) const ;
00392
00393
00394 friend void Map_log::sol_elliptic_no_zec(Param_elliptic&, const Scalar&, Scalar&, double) const ;
00395 } ;
00396
00397 #endif