MURE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | Private Attributes | List of all members
Surface Class Reference

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...
 

Detailed Description

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

Author
PTO
Version
1.0

Constructor & Destructor Documentation

Surface::Surface ( int  Number = 0)

Normal constructor.

Parameters
Number: the surface number in MCNP
Surface::Surface ( const Surface s)

Copy constructor.

Surface::~Surface ( )

destructor.

Member Function Documentation

void Surface::AddArgument ( double  arg)

Add argument "arg", i.e. surface parameters.

double Surface::GetArea ( )
inline

returns Area of the Surface

vector<double> Surface::GetArgument ( )
inline

return the arguments vector

string Surface::GetCode ( )
inline

return the surface code

int Surface::GetNref ( )
inline

returns the number of times this surface is referenced

int Surface::GetNumber ( )
inline

returns the number of the MCNP surface

char Surface::GetReflectingCode ( )
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.

void Surface::SetArea ( double  a)
inline

set Area of the Surface (from MCNP run)

void Surface::SetCode ( const char *  code)
inline

Set the surface code (e.g Px, CZ,...)

void Surface::SetNref ( int  inc = 1)
inline

increases/decreases the number of times this surface is referenced

void Surface::SetNumber ( int  n)
inline

Set the number to the MCNP surface.

void Surface::SetPeriodicPlaneNumber ( int  num = 9999999)
inline

Set MCNP Number of periodic plane (i.e., where a n goes after leaving)

void Surface::SetReflectingCode ( char  c)
inline

Set the reflecting code (mirror='*' or white boundary='+') to c.

Member Data Documentation

double Surface::fArea
private

Area of the Surface (from MCNP run)

vector<double> Surface::fArguments
private

Argument list of the surface.

string Surface::fCode
private

the Surface code (Px, Cz, ..)

int Surface::fNref
private

Number of times this surface is referenced.

int Surface::fNumber
private

number of the surface in MCNP

int Surface::fPeriodicPlane
private

MCNP Number of periodic plane.

char Surface::fReflectingCode
private

the reflecting code (mirror='*' or white boundary='+')


The documentation for this class was generated from the following files:

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