MURE
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
SurfaceCard Class Referenceabstract

SurfaceCard class is used to define geometrical math surface for MC output format. More...

#include <SurfaceCard.hxx>

Inheritance diagram for SurfaceCard:
MCNPSurfaceCard SerpentSurfaceCard

Public Member Functions

 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
 

Protected Attributes

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

SurfaceCard class is used to define geometrical math surface for MC output format.

This is an abstract class and MCNP or Serpent version should be used.

Author
J. Hajnrych
PTO
Version
1.0

Constructor & Destructor Documentation

◆ SurfaceCard() [1/2]

SurfaceCard::SurfaceCard ( )

Normal constructor.

◆ SurfaceCard() [2/2]

SurfaceCard::SurfaceCard ( const SurfaceCard s)

Copy constructor.

◆ ~SurfaceCard()

SurfaceCard::~SurfaceCard ( )
virtual

destructor.

Member Function Documentation

◆ AddArgument()

void SurfaceCard::AddArgument ( double  arg)

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

◆ AddNref()

void SurfaceCard::AddNref ( int  inc = 1)
inline

< increases/decreases the number of times this surface is referenced

◆ Clone()

virtual SurfaceCard * SurfaceCard::Clone ( )
pure virtual

Implemented in MCNPSurfaceCard, and SerpentSurfaceCard.

◆ GetArea()

double SurfaceCard::GetArea ( )
inline

< returns Area of the Surface

◆ GetArgument()

vector< double > SurfaceCard::GetArgument ( )
inline

< return the arguments vector

◆ GetId()

virtual string SurfaceCard::GetId ( int  sign = 1) const
pure virtual

Implemented in MCNPSurfaceCard, and SerpentSurfaceCard.

◆ GetMCCode()

string SurfaceCard::GetMCCode ( )
inline

< return the surface code

◆ GetNref()

int SurfaceCard::GetNref ( )
inline

< returns the number of times this surface is referenced

◆ GetNumber()

int SurfaceCard::GetNumber ( )
inline

< returns the number of the MCNP surface

◆ operator==()

bool SurfaceCard::operator== ( SurfaceCard S)

Comparaison of 2 surfaces. They are egual if there fCodes and there fArguments are egual. fNumber is not used.

◆ PrintDebug()

void SurfaceCard::PrintDebug ( )

for debug only

◆ SetArea()

void SurfaceCard::SetArea ( double  a)
inline

< set Area of the Surface (from MC run)

◆ SetMCCode()

void SurfaceCard::SetMCCode ( string  code)
inline

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

◆ SetNumber()

void SurfaceCard::SetNumber ( int  n)
inline

< Set the number to the MCNP surface

Member Data Documentation

◆ fArea

double SurfaceCard::fArea
protected

Area of the Surface (from MC run)

◆ fArguments

vector< double > SurfaceCard::fArguments
protected

Argument list of the surface.

◆ fMCCode

string SurfaceCard::fMCCode
protected

the Surface code (Px, Cz, ..)

◆ fNref

int SurfaceCard::fNref
protected

Number of times this surface is referenced.

◆ fNumber

int SurfaceCard::fNumber
protected

number of the surface in MC code


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

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