| 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_W ; |
| 13 |
const Map_af& mp_H ; |
| 14 |
|
| 15 |
|
| 16 |
Scalar radius_on_W ; |
| 17 |
Scalar radius_on_H ; |
| 18 |
int nz_W ; |
| 19 |
int nz_H ; |
| 20 |
|
| 21 |
|
| 22 |
double beta ; |
| 23 |
|
| 24 |
Scalar big_W ; |
| 25 |
Scalar small_w ; |
| 26 |
|
| 27 |
Scalar big_H ; |
| 28 |
Scalar small_h ; |
| 29 |
|
| 30 |
Scalar big_W_on_H ; |
| 31 |
Scalar small_w_on_H ; |
| 32 |
|
| 33 |
Scalar big_H_on_W ; |
| 34 |
Scalar small_h_on_W ; |
| 35 |
|
| 36 |
|
| 37 |
public: |
| 38 |
explicit Monopole (const Map_af&, const Map_af&, double) ; |
| 39 |
|
| 40 |
Monopole (const Monopole&) ; |
| 41 |
Monopole(const Map_af& , const Map_af&, FILE*) ; |
| 42 |
|
| 43 |
virtual ~Monopole() ; |
| 44 |
|
| 45 |
|
| 46 |
public: |
| 47 |
void operator= (const Monopole&) ; |
| 48 |
|
| 49 |
|
| 50 |
public: |
| 51 |
const Map_af& get_mp_on_W() const {return mp_W ;} ; |
| 52 |
const Map_af& get_mp_on_H() const {return mp_H ;} ; |
| 53 |
|
| 54 |
Scalar get_big_W() const {return big_W ;} ; |
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
Scalar get_small_w() const {return small_w ;} ; |
| 59 |
|
| 60 |
Scalar get_big_H() const {return big_H ;} ; |
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
Scalar get_small_h() const {return small_h ;} ; |
| 65 |
|
| 66 |
Scalar get_big_W_on_H() const {return big_W_on_H ;} ; |
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
Scalar get_small_w_on_H() const {return small_w_on_H ;} ; |
| 71 |
|
| 72 |
Scalar get_big_H_on_W() const {return big_H_on_W ;} ; |
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
Scalar get_small_h_on_W() const {return small_h_on_W ;} ; |
| 77 |
|
| 78 |
|
| 79 |
public : |
| 80 |
void sauve(FILE *) const ; |
| 81 |
|
| 82 |
|
| 83 |
private: |
| 84 |
void init_big_W() ; |
| 85 |
|
| 86 |
void init_big_H() ; |
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
void do_small_w() ; |
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
void do_big_W() ; |
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
void do_small_h() ; |
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
void do_big_H() ; |
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
Scalar compute_source_W() const ; |
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
Scalar compute_source_H() const ; |
| 122 |
|
| 123 |
public: |
| 124 |
|
| 125 |
|
| 126 |
|
| 127 |
|
| 128 |
int solve_config (double, int, double) ; |
| 129 |
|
| 130 |
double give_a () const ; |
| 131 |
double give_b() const ; |
| 132 |
Scalar density_on_W() const ; |
| 133 |
Scalar density_on_H() const ; |
| 134 |
double energy () const ; |
| 135 |
} ; |
| 136 |
|
| 137 |
#endif |