MURE
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
SerpentSurfaceCard Class Reference

SerpentSurfaceCard class print a mathematical surface in Serpent output format. More...

#include <SerpentSurfaceCard.hxx>

Inheritance diagram for SerpentSurfaceCard:
SurfaceCard

Public Member Functions

 SerpentSurfaceCard ()
 
 SerpentSurfaceCard (const SerpentSurfaceCard &other)
 Copy constructor.
 
SerpentSurfaceCardClone () 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
 
SerpentSurfaceCardFindExistingSurfaceCard (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 SurfaceCardClone ()=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.
 

Detailed Description

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

Author
J. Hajnrych
Version
1.0

Constructor & Destructor Documentation

◆ SerpentSurfaceCard() [1/2]

SerpentSurfaceCard::SerpentSurfaceCard ( )

◆ SerpentSurfaceCard() [2/2]

SerpentSurfaceCard::SerpentSurfaceCard ( const SerpentSurfaceCard other)
default

Copy constructor.

Member Function Documentation

◆ Clone()

SerpentSurfaceCard * SerpentSurfaceCard::Clone ( )
inlineoverridevirtual

Implements SurfaceCard.

◆ FindExistingSurfaceCard()

SerpentSurfaceCard * SerpentSurfaceCard::FindExistingSurfaceCard ( SerpentSurfaceCard *&  S)

find if a surface card has already been defined

◆ GetArgumentString()

string SerpentSurfaceCard::GetArgumentString ( ) const
private

argument of the surface card (such as the radius of a sphere)

◆ GetId()

string SerpentSurfaceCard::GetId ( int  sign = 1) const
overridevirtual

return the surface card "name" with a sign for inside/ouside of a shape

Implements SurfaceCard.

◆ Print()

string SerpentSurfaceCard::Print ( bool  tmpvol = false)

Print a surface in the Serpent input file.

◆ UpdateMureSurfaceCardVector()

void SerpentSurfaceCard::UpdateMureSurfaceCardVector ( SerpentSurfaceCard *&  S)
static

verify that if the card exist or not ; if not adds it to MURE vector

Member Data Documentation

◆ NAME_PREFIX

const string SerpentSurfaceCard::NAME_PREFIX = string("s")
staticprivate

a prefix string associated to the surface number ("s"=> "s1")

◆ SERPENT_SURFACE_COMMAND

const string SerpentSurfaceCard::SERPENT_SURFACE_COMMAND = string("surf")
staticprivate

the "surf" serpent card


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

MURE Project, documentation generated by Doxygen 1.9.7 - Fri Jan 19 2024