| 1 |
#ifndef __MONOPOLE_H_ |
| 2 |
#define __MONOPOLE_H_ |
| 3 |
|
| 4 |
#include "map.h" |
| 5 |
#include "scalar.h" |
| 6 |
|
| 7 |
using namespace Lorene ; |
| 8 |
|
| 9 |
class Monopole { |
| 10 |
|
| 11 |
protected: |
| 12 |
const Map_af& mp ; |
| 13 |
|
| 14 |
|
| 15 |
Scalar radius ; |
| 16 |
int nz ; |
| 17 |
|
| 18 |
|
| 19 |
double beta ; |
| 20 |
|
| 21 |
Scalar big_W ; |
| 22 |
Scalar small_w ; |
| 23 |
|
| 24 |
Scalar big_H ; |
| 25 |
Scalar small_h ; |
| 26 |
|
| 27 |
|
| 28 |
public: |
| 29 |
explicit Monopole (const Map_af&, double) ; |
| 30 |
Monopole (const Monopole&) ; |
| 31 |
|
| 32 |
virtual ~Monopole() ; |
| 33 |
|
| 34 |
|
| 35 |
public: |
| 36 |
void operator= (const Monopole&) ; |
| 37 |
|
| 38 |
|
| 39 |
public: |
| 40 |
const Map_af& get_mp() const {return mp ;} ; |
| 41 |
|
| 42 |
Scalar get_big_W() const {return big_W ;} ; |
| 43 |
|
| 44 |
Scalar get_small_w() const {return small_w ;} ; |
| 45 |
|
| 46 |
Scalar get_big_H() const {return big_H ;} ; |
| 47 |
|
| 48 |
Scalar get_small_h() const {return small_h ;} ; |
| 49 |
|
| 50 |
|
| 51 |
public: |
| 52 |
void init_big_W() ; |
| 53 |
|
| 54 |
void init_big_H() ; |
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
void do_small_w() ; |
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
void do_big_W() ; |
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
void do_small_h() ; |
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
void do_big_H() ; |
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
Scalar compute_source_W() const ; |
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
Scalar compute_source_H() const ; |
| 89 |
|
| 90 |
public: |
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
int solve_config (double prec = 1e-10, int itemax= 200, double relax=0.5) ; |
| 99 |
|
| 100 |
|
| 101 |
double give_a () const ; |
| 102 |
double give_b() const ; |
| 103 |
} ; |
| 104 |
|
| 105 |
# endif |