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

MCNPSurfaceCard class print a mathematical surface in MCNP output format. More...

#include <MCNPSurfaceCard.hxx>

Inheritance diagram for MCNPSurfaceCard:
SurfaceCard

Public Member Functions

 MCNPSurfaceCard (int Number=0)
 
 MCNPSurfaceCard (const MCNPSurfaceCard &s)
 Copy constructor.
 
 ~MCNPSurfaceCard ()=default
 destructor.
 
MCNPSurfaceCardClone () override
 
string Print (bool tmpvol=false)
 Print a MCNP surface in the surface block.
 
void SetReflectingCode (char c)
 
char GetReflectingCode ()
 
void SetPeriodicPlaneNumber (int num)
 
MCNPSurfaceCardFindExistingSurfaceCard (MCNPSurfaceCard *&S)
 
string GetId (int sign=1) const override
 
- 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 (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.
 

Detailed Description

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

Author
PTO
Version
1.0

Constructor & Destructor Documentation

◆ MCNPSurfaceCard() [1/2]

MCNPSurfaceCard::MCNPSurfaceCard ( int  Number = 0)

Normal constructor.

Parameters
Number: the surface number in MCNP

◆ MCNPSurfaceCard() [2/2]

MCNPSurfaceCard::MCNPSurfaceCard ( const MCNPSurfaceCard s)

Copy constructor.

◆ ~MCNPSurfaceCard()

MCNPSurfaceCard::~MCNPSurfaceCard ( )
default

destructor.

Member Function Documentation

◆ Clone()

MCNPSurfaceCard * MCNPSurfaceCard::Clone ( )
inlineoverridevirtual

Implements SurfaceCard.

◆ FindExistingSurfaceCard()

MCNPSurfaceCard * MCNPSurfaceCard::FindExistingSurfaceCard ( MCNPSurfaceCard *&  S)

◆ GetId()

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

Implements SurfaceCard.

◆ GetReflectingCode()

char MCNPSurfaceCard::GetReflectingCode ( )
inline

< Returns the reflecting code (mirror='*' or white boundary='+') to c

◆ Print()

string MCNPSurfaceCard::Print ( bool  tmpvol = false)

Print a MCNP surface in the surface block.

◆ SetPeriodicPlaneNumber()

void MCNPSurfaceCard::SetPeriodicPlaneNumber ( int  num)
inline

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

◆ SetReflectingCode()

void MCNPSurfaceCard::SetReflectingCode ( char  c)
inline

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

◆ UpdateMureSurfaceCardVector()

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

Member Data Documentation

◆ fPeriodicPlane

int MCNPSurfaceCard::fPeriodicPlane
private

MCNP Number of periodic plane.

◆ fReflectingCode

char MCNPSurfaceCard::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.9.7 - Fri Jan 19 2024