Surface class is design to define MCNP surface format. More...
#include <Surface.hxx>
Public Member Functions | |
Surface (int Number=0) | |
Surface (const Surface &s) | |
Copy constructor. More... | |
~Surface () | |
destructor. More... | |
void | AddArgument (double arg) |
Add argument "arg", i.e. surface parameters. More... | |
vector< double > | GetArgument () |
return the arguments vector More... | |
void | SetCode (const char *code) |
Set the surface code (e.g Px, CZ,...) More... | |
string | GetCode () |
return the surface code More... | |
void | SetNumber (int n) |
Set the number to the MCNP surface. More... | |
int | GetNumber () |
returns the number of the MCNP surface More... | |
int | GetNref () |
returns the number of times this surface is referenced More... | |
void | SetNref (int inc=1) |
increases/decreases the number of times this surface is referenced More... | |
bool | operator== (Surface &S) |
string | Print (bool tmpvol=false) |
Print a MCNP surface in the surface block. More... | |
void | SetReflectingCode (char c) |
Set the reflecting code (mirror='*' or white boundary='+') to c. More... | |
char | GetReflectingCode () |
Returns the reflecting code (mirror='*' or white boundary='+') to c. More... | |
void | SetPeriodicPlaneNumber (int num=9999999) |
Set MCNP Number of periodic plane (i.e., where a n goes after leaving) More... | |
void | SetArea (double a) |
set Area of the Surface (from MCNP run) More... | |
double | GetArea () |
returns Area of the Surface More... | |
Private Attributes | |
int | fNumber |
number of the surface in MCNP More... | |
string | fCode |
the Surface code (Px, Cz, ..) More... | |
vector< double > | fArguments |
Argument list of the surface. More... | |
int | fNref |
Number of times this surface is referenced. More... | |
char | fReflectingCode |
the reflecting code (mirror='*' or white boundary='+') More... | |
int | fPeriodicPlane |
MCNP Number of periodic plane. More... | |
double | fArea |
Area of the Surface (from MCNP run) More... | |
Surface class is design to define MCNP surface format.
This class is used to generate surfaces only once, suppressing identical surfaces with 2 different numbers
Surface::Surface | ( | int | Number = 0 | ) |
Normal constructor.
Number | : the surface number in MCNP |
Surface::Surface | ( | const Surface & | s | ) |
Copy constructor.
Surface::~Surface | ( | ) |
destructor.
void Surface::AddArgument | ( | double | arg | ) |
Add argument "arg", i.e. surface parameters.
|
inline |
returns Area of the Surface
|
inline |
return the arguments vector
|
inline |
return the surface code
|
inline |
returns the number of times this surface is referenced
|
inline |
returns the number of the MCNP surface
|
inline |
Returns the reflecting code (mirror='*' or white boundary='+') to c.
bool Surface::operator== | ( | Surface & | S | ) |
Comparaison of 2 surfaces. They are egual if there fCodes and there fArguments are egual. fNumber is not used.
string Surface::Print | ( | bool | tmpvol = false | ) |
Print a MCNP surface in the surface block.
|
inline |
set Area of the Surface (from MCNP run)
|
inline |
Set the surface code (e.g Px, CZ,...)
|
inline |
increases/decreases the number of times this surface is referenced
|
inline |
Set the number to the MCNP surface.
|
inline |
Set MCNP Number of periodic plane (i.e., where a n goes after leaving)
|
inline |
Set the reflecting code (mirror='*' or white boundary='+') to c.
|
private |
Area of the Surface (from MCNP run)
|
private |
Argument list of the surface.
|
private |
the Surface code (Px, Cz, ..)
|
private |
Number of times this surface is referenced.
|
private |
number of the surface in MCNP
|
private |
MCNP Number of periodic plane.
|
private |
the reflecting code (mirror='*' or white boundary='+')