MURE
|
MCNPSurfaceCard class print a mathematical surface in MCNP output format. More...
#include <MCNPSurfaceCard.hxx>
Public Member Functions | |
MCNPSurfaceCard (int Number=0) | |
MCNPSurfaceCard (const MCNPSurfaceCard &s) | |
Copy constructor. | |
~MCNPSurfaceCard ()=default | |
destructor. | |
MCNPSurfaceCard * | Clone () override |
string | Print (bool tmpvol=false) |
Print a MCNP surface in the surface block. | |
void | SetReflectingCode (char c) |
char | GetReflectingCode () |
void | SetPeriodicPlaneNumber (int num) |
MCNPSurfaceCard * | FindExistingSurfaceCard (MCNPSurfaceCard *&S) |
string | GetId (int sign=1) const override |
Public Member Functions inherited from SurfaceCard | |
SurfaceCard () | |
SurfaceCard (const SurfaceCard &s) | |
Copy constructor. | |
virtual SurfaceCard * | Clone ()=0 |
virtual | ~SurfaceCard () |
destructor. | |
void | AddArgument (double arg) |
Add argument "arg", i.e. surface parameters. | |
vector< double > | GetArgument () |
void | SetMCCode (string code) |
string | GetMCCode () |
void | SetArea (double a) |
double | GetArea () |
int | GetNref () |
void | AddNref (int inc=1) |
void | PrintDebug () |
for debug only | |
bool | operator== (SurfaceCard &S) |
int | GetNumber () |
void | SetNumber (int n) |
virtual string | GetId (int sign=1) const =0 |
Static Public Member Functions | |
static void | UpdateMureSurfaceCardVector (MCNPSurfaceCard *&S) |
Private Attributes | |
char | fReflectingCode |
the reflecting code (mirror='*' or white boundary='+') | |
int | fPeriodicPlane |
MCNP Number of periodic plane. | |
Additional Inherited Members | |
Protected Attributes inherited from SurfaceCard | |
int | fNumber |
number of the surface in MC code | |
string | fMCCode |
the Surface code (Px, Cz, ..) | |
vector< double > | fArguments |
Argument list of the surface. | |
double | fArea |
Area of the Surface (from MC run) | |
int | fNref |
Number of times this surface is referenced. | |
MCNPSurfaceCard class print a mathematical surface in MCNP output format.
This class is used to generate math surfaces only once, suppressing identical surfaces with 2 different numbers in the Surface block of MCNP
MCNPSurfaceCard::MCNPSurfaceCard | ( | int | Number = 0 | ) |
Normal constructor.
Number | : the surface number in MCNP |
MCNPSurfaceCard::MCNPSurfaceCard | ( | const MCNPSurfaceCard & | s | ) |
Copy constructor.
|
default |
destructor.
|
inlineoverridevirtual |
Implements SurfaceCard.
MCNPSurfaceCard * MCNPSurfaceCard::FindExistingSurfaceCard | ( | MCNPSurfaceCard *& | S | ) |
|
overridevirtual |
Implements SurfaceCard.
|
inline |
< Returns the reflecting code (mirror='*' or white boundary='+') to c
string MCNPSurfaceCard::Print | ( | bool | tmpvol = false | ) |
Print a MCNP surface in the surface block.
|
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
|
static |
|
private |
MCNP Number of periodic plane.
|
private |
the reflecting code (mirror='*' or white boundary='+')