74 void SetPosition(
double x = 0,
double y = 0,
double z = 0);
107 void SetKcode(
int ActiveCycle = 100,
int InactiveCycle = 10,
double ExpectedKeff = 1.);
Reference_ptr< Shape > Shape_ptr
Definition MCSource.hxx:38
Header file for Shape class and Shape_ptr type.
Header file for TReference class and Reference_ptr template.
Define a Monte-Carlo Source.
Definition MCSource.hxx:53
virtual void SetSurface(Shape_ptr TheShape)
set the Surface number for a surface source.
Definition MCSource.cxx:141
void SetNPS(double NPS=10000)
Definition MCSource.hxx:64
void SetPosition(double *pos=nullptr)
set the position of a point source (in m)
Definition MCSource.cxx:120
double fKeff
expected Keff in KCODE
Definition MCSource.hxx:172
void SetEnergy(double E=2.5e6)
Set the energy for a point source (in eV)
Definition MCSource.cxx:112
void SetKcode(int ActiveCycle=100, int InactiveCycle=10, double ExpectedKeff=1.)
Definition MCSource.cxx:103
void SetOriginalSourceFileName(string name)
Definition MCSource.hxx:146
double * GetPosition()
Definition MCSource.hxx:75
int fInactiveCycle
number of inactive cycles in KCODE
Definition MCSource.hxx:171
void SetNormal(double nrm)
Definition MCSource.hxx:81
void SetStochasticVolumeSourceShape(Shape_ptr TheShape)
Set the shape of the outer most sphere for Stochastic Volume run.
Definition MCSource.cxx:150
void SetSourceFileName(string name)
Definition MCSource.hxx:142
bool IsStochasticVolumeSource()
True if this is a Stochastic Volume Source run.
Definition MCSource.hxx:155
string fOriginalSourceFile
Name of the Original source file.
Definition MCSource.hxx:175
bool fUsePrevSource
Whether MURE must use the preivous run source or not.
Definition MCSource.hxx:176
int GetNInactiveCycle()
Definition MCSource.hxx:116
Shape_ptr GetStochasticVolumeSourceShape()
get the source sphere for Stochastic Volume Source run
Definition MCSource.hxx:157
bool fKcode
whether or not a KCODE is wanted
Definition MCSource.hxx:169
int GetNActiveCycle()
Definition MCSource.hxx:112
void SetWeight(double wgt)
Definition MCSource.hxx:85
void SetUsePrevSource(bool flag=true)
Definition MCSource.hxx:134
string fSourceFile
Name of the next source if using file source.
Definition MCSource.hxx:174
double fNPS
number of source particles
Definition MCSource.hxx:160
double * fPosition
Position of the point Source (if it is the case)
Definition MCSource.hxx:162
bool GetKcode()
Definition MCSource.hxx:108
bool fStochasticVolumeSource
Definition MCSource.hxx:178
double fNormal
Normal direction (inward or outward) for particle source.
Definition MCSource.hxx:165
Shape_ptr fStochasticVolumeSourceShape
Definition MCSource.hxx:179
virtual void UsePreviousRunSource(string FirstSource="")=0
use a previous kcode source for mcnp.
bool fExtern
whether the source is extern or defined in MCNP file
Definition MCSource.hxx:168
string fEnergy
Energy of the Source (either a number or a bias)
Definition MCSource.hxx:161
string GetOriginalSourceFileName()
Definition MCSource.hxx:150
double GetNPS()
Definition MCSource.hxx:68
virtual ~MCSource()
destructor
Definition MCSource.cxx:96
virtual string Print()=0
Print the MC source (into MC transport code input file).
int fActiveCycle
number of active cycles in KCODE
Definition MCSource.hxx:170
void SetExtern(bool state=true)
Definition MCSource.hxx:97
virtual MCSource * Clone()=0
Clone method.
string GetSourceFileName()
Definition MCSource.hxx:138
virtual bool IsUsePrevSource()
Definition MCSource.hxx:130
Shape_ptr fSurfaceShape
Surface Shape for surface source (if it is the case)
Definition MCSource.hxx:164
double fWeight
weight of the source
Definition MCSource.hxx:167
Abstract class to define geometrical shapes.
Definition Shape.hxx:85
the namespace of the Standard C++