MURE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Surface.hxx
Go to the documentation of this file.
1 #ifndef _SURFACE_HXX_
2 #define _SURFACE_HXX_
3 
9 #include <fstream>
10 #include <iostream>
11 #include <sstream>
12 #include <vector>
13 #include <string>
14 
15 #include "MureHeaders.hxx"
16 using namespace std;
17 
19 
26 class Surface
27 {
28  public:
33  Surface(int Number=0);
34  Surface(const Surface &s);
35  ~Surface();
36 
37  void AddArgument(double arg);
38  vector<double> GetArgument(){return fArguments;}
39  void SetCode(const char *code){fCode=code;}
40  string GetCode(){return fCode;}
41  void SetNumber(int n){fNumber=n;}
42  int GetNumber(){return fNumber;}
43  int GetNref(){return fNref;}
44  void SetNref(int inc=1){fNref+=inc;}
45 
49  bool operator==(Surface &S);
50  string Print(bool tmpvol=false);
51  void SetReflectingCode(char c){fReflectingCode=c;}
52  char GetReflectingCode(){return fReflectingCode;}
53  void SetPeriodicPlaneNumber(int num=9999999){fPeriodicPlane=num;}
54  void SetArea(double a){fArea=a;}
55  double GetArea(){return fArea;}
56  private:
57  int fNumber;
58  string fCode;
59  vector<double> fArguments;
60  int fNref;
63  double fArea;
64 };
65 
66 #endif
string GetCode()
return the surface code
Definition: Surface.hxx:40
double GetArea()
returns Area of the Surface
Definition: Surface.hxx:55
void SetReflectingCode(char c)
Set the reflecting code (mirror=&#39;*&#39; or white boundary=&#39;+&#39;) to c.
Definition: Surface.hxx:51
Surface class is design to define MCNP surface format.
Definition: Surface.hxx:26
string fCode
the Surface code (Px, Cz, ..)
Definition: Surface.hxx:58
double fArea
Area of the Surface (from MCNP run)
Definition: Surface.hxx:63
int fNref
Number of times this surface is referenced.
Definition: Surface.hxx:60
void SetPeriodicPlaneNumber(int num=9999999)
Set MCNP Number of periodic plane (i.e., where a n goes after leaving)
Definition: Surface.hxx:53
int GetNref()
returns the number of times this surface is referenced
Definition: Surface.hxx:43
vector< double > fArguments
Argument list of the surface.
Definition: Surface.hxx:59
int fPeriodicPlane
MCNP Number of periodic plane.
Definition: Surface.hxx:62
File including all headers.
void SetNumber(int n)
Set the number to the MCNP surface.
Definition: Surface.hxx:41
void SetNref(int inc=1)
increases/decreases the number of times this surface is referenced
Definition: Surface.hxx:44
int fNumber
number of the surface in MCNP
Definition: Surface.hxx:57
vector< double > GetArgument()
return the arguments vector
Definition: Surface.hxx:38
void SetCode(const char *code)
Set the surface code (e.g Px, CZ,...)
Definition: Surface.hxx:39
int GetNumber()
returns the number of the MCNP surface
Definition: Surface.hxx:42
void SetArea(double a)
set Area of the Surface (from MCNP run)
Definition: Surface.hxx:54
char fReflectingCode
the reflecting code (mirror=&#39;*&#39; or white boundary=&#39;+&#39;)
Definition: Surface.hxx:61
char GetReflectingCode()
Returns the reflecting code (mirror=&#39;*&#39; or white boundary=&#39;+&#39;) to c.
Definition: Surface.hxx:52

MURE Project, documentation generated by Doxygen 1.8.5 - Mon Nov 17 2014