Line | |
---|
1 | #ifndef SOLEDEFINITION_SEEN |
---|
2 | #define SOLEDEFINITION_SEEN |
---|
3 | |
---|
4 | #include <iostream> |
---|
5 | #include <string> |
---|
6 | #include "abstractElement.h" |
---|
7 | |
---|
8 | #include "mathematicalTools.h" |
---|
9 | #include "PhysicalConstants.h" |
---|
10 | |
---|
11 | using namespace std; |
---|
12 | class elementSoleno : public abstractElement |
---|
13 | { |
---|
14 | |
---|
15 | double B0_; // en unites internes ( cm^(-1) ) |
---|
16 | |
---|
17 | public : |
---|
18 | |
---|
19 | elementSoleno() : abstractElement() {elementName_ = sole;} |
---|
20 | |
---|
21 | elementSoleno(string lab) : abstractElement(lab) |
---|
22 | { |
---|
23 | elementName_ = sole; |
---|
24 | cout << " creation d'un SOLENOIDE l= " << ll << ", ap= " << ap << ", pas max " << stepmaxcm_ << endl; |
---|
25 | |
---|
26 | B0_ = GAUSSToCMm1*BGauss; |
---|
27 | cout << " champ (Gauss) " << BGauss << ", (cm-1) " << B0_ << endl; |
---|
28 | } |
---|
29 | |
---|
30 | ~elementSoleno() {;} |
---|
31 | |
---|
32 | virtual string parmelaOutputFlow() const |
---|
33 | { |
---|
34 | ostringstream sortie; |
---|
35 | cout << " SOLE sortie parmela non progerammee " << endl; |
---|
36 | return sortie.str(); |
---|
37 | } |
---|
38 | |
---|
39 | }; |
---|
40 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.