source: PSPA/Interface_Web/trunk/pspaWT/include/elementSoleno.h @ 41

Last change on this file since 41 was 41, checked in by lemeur, 12 years ago

renommages

File size: 892 bytes
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 
11using namespace std;
12class 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
32virtual  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.