MURE
|
SerpentSurfaceCard class print a mathematical surface in Serpent output format. More...
#include <SerpentSurfaceCard.hxx>
Public Member Functions | |
SerpentSurfaceCard () | |
SerpentSurfaceCard (const SerpentSurfaceCard &other) | |
Copy constructor. | |
SerpentSurfaceCard * | Clone () override |
string | Print (bool tmpvol=false) |
Print a surface in the Serpent input file. | |
string | GetId (int sign=1) const override |
return the surface card "name" with a sign for inside/ouside of a shape | |
SerpentSurfaceCard * | FindExistingSurfaceCard (SerpentSurfaceCard *&S) |
find if a surface card has already been defined | |
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 (SerpentSurfaceCard *&S) |
verify that if the card exist or not ; if not adds it to MURE vector | |
Private Member Functions | |
string | GetArgumentString () const |
argument of the surface card (such as the radius of a sphere) | |
Static Private Attributes | |
static const string | NAME_PREFIX = string("s") |
a prefix string associated to the surface number ("s"=> "s1") | |
static const string | SERPENT_SURFACE_COMMAND = string("surf") |
the "surf" serpent card | |
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. | |
SerpentSurfaceCard class print a mathematical surface in Serpent output format.
This class is used to generate math surfaces only once, suppressing identical surfaces with 2 different numbers in the Surface
SerpentSurfaceCard::SerpentSurfaceCard | ( | ) |
|
default |
Copy constructor.
|
inlineoverridevirtual |
Implements SurfaceCard.
SerpentSurfaceCard * SerpentSurfaceCard::FindExistingSurfaceCard | ( | SerpentSurfaceCard *& | S | ) |
find if a surface card has already been defined
|
private |
argument of the surface card (such as the radius of a sphere)
|
overridevirtual |
return the surface card "name" with a sign for inside/ouside of a shape
Implements SurfaceCard.
string SerpentSurfaceCard::Print | ( | bool | tmpvol = false | ) |
Print a surface in the Serpent input file.
|
static |
verify that if the card exist or not ; if not adds it to MURE vector
|
staticprivate |
a prefix string associated to the surface number ("s"=> "s1")
|
staticprivate |
the "surf" serpent card