39 void SetNPS(
double NPS=10000){fNPS=NPS;}
41 void SetEnergy(
double E=2.5e6);
43 void SetPosition(
double *pos=0);
44 void SetPosition(
double x=0,
double y=0,
double z=0);
51 void SetEXT(
double ext);
52 void SetVEC(
double i=0,
double j=0,
double k=0);
53 void SetVEC(
string vec);
54 void SetAXS(
double i=0,
double j=0,
double k=0);
55 void SetAXS(
string axs);
56 void AddBias(
string bias);
94 void SetKcode(
int ActiveCycle=100,
int InactiveCycle=10,
double ExpectedKeff=1.);
106 void AddPosition(
double *pos);
107 void AddPosition(
double x,
double y,
double z);
123 void AddTubeSource(
Tube *tube,
string TubeParticleEnergy=
"1e6");
145 void UseThisEnergyDistribution(
Spectrum* spectrum,
int SourceDistributionNum=800);
147 string PrintTubeSource();
bool fExtern
whether the source is extern or defined in MCNP file
Definition: MCNPSource.hxx:164
int fInactiveCycle
number of inactive cycles in KCODE
Definition: MCNPSource.hxx:171
double fKeff
expected Keff in KCODE
Definition: MCNPSource.hxx:172
void SetExtern(bool state=true)
Definition: MCNPSource.hxx:65
int GetParticleType()
get the Particletype (1=n,9=H,...)
Definition: MCNPSource.hxx:69
void SetKSRCPosition(int i, double *pos)
Allow to modify a KSRC point source position.
Definition: MCNPSource.hxx:108
double * fPosition
Position of the point Source (if it is the case)
Definition: MCNPSource.hxx:152
A Tube is a finite Cylinder with a hole inside (like a pipe).
Definition: Tube.hxx:21
bool fKSRC
whether or not a KSRC source is wanted
Definition: MCNPSource.hxx:166
string fDirection
direction bias
Definition: MCNPSource.hxx:157
string fEXT
Cell case:distance from POS along AXS Surface Case:cosine of angle from AXS.
Definition: MCNPSource.hxx:160
double fWeight
weight of the source
Definition: MCNPSource.hxx:156
vector< double * > fKSRCposition
KSRC position vector.
Definition: MCNPSource.hxx:175
void SetNPS(double NPS=10000)
set the number of source particles (default=10 000).
Definition: MCNPSource.hxx:39
void SetSSR()
Definition: MCNPSource.hxx:104
int fSurface
Surface number for surface source (if it is the case)
Definition: MCNPSource.hxx:153
vector< Tube * > fSourceTube
vector of Tube for <> sources
Definition: MCNPSource.hxx:177
Base class to define spectra.
Definition: Spectrum.hxx:25
void SetDirection(string dir)
set the direction bias
Definition: MCNPSource.hxx:66
int fParticleType
particle type for the source (1=neutron)
Definition: MCNPSource.hxx:173
double * GetPosition()
returns the position of a point source
Definition: MCNPSource.hxx:45
int fActiveCycle
number of active cycles in KCODE
Definition: MCNPSource.hxx:170
bool fKcode
whether or not a KCODE is wanted
Definition: MCNPSource.hxx:165
void SetKSRC()
Definition: MCNPSource.hxx:102
bool fSSR
whether or not a surface source read is wanted
Definition: MCNPSource.hxx:168
vector< Spectrum * > fTubeParticleSpectrum
vector of energy spectrum if the source uses Spectrum
Definition: MCNPSource.hxx:179
vector< string > fVEC
Reference vector for DIR.
Definition: MCNPSource.hxx:161
bool GetKcode()
returns true for KCODE calculation mode.
Definition: MCNPSource.hxx:95
void SetSurface(int num)
set the Surface number for a surface source.
Definition: MCNPSource.hxx:46
int GetNInactiveCycle()
Returns number of inactive Kcode cycles.
Definition: MCNPSource.hxx:97
void SetParticleDistribution(string ParticleDistribution)
set the Particle Distibution if more than one particle type
Definition: MCNPSource.hxx:70
vector< string > fTubeParticleEnergy
vector of "energies" of each source tube (double or distribution)
Definition: MCNPSource.hxx:178
void SetEnergy(string E)
Set the source energy (using bias)
Definition: MCNPSource.hxx:42
void SetDistribution(string D)
Definition: MCNPSource.hxx:87
double fNPS
number of source particles
Definition: MCNPSource.hxx:150
void SetRadius(string rad)
set the Radius bias
Definition: MCNPSource.hxx:67
Reference_ptr< Shape > Shape_ptr
Definition: MCNPSource.hxx:17
Define a MCNP Source.
Definition: MCNPSource.hxx:28
string fParticleDistribution
if not only one particle
Definition: MCNPSource.hxx:174
void SetEXT(string EXT)
See fEXT description.
Definition: MCNPSource.hxx:50
void SetNormal(double nrm)
Set the normal direction of source (inward or outward)
Definition: MCNPSource.hxx:49
vector< string > fBias
vector of bias
Definition: MCNPSource.hxx:163
int GetNActiveCycle()
Returns number of active Kcode cycles.
Definition: MCNPSource.hxx:96
string fRadius
direction bias
Definition: MCNPSource.hxx:158
Shape_ptr fSurfaceShape
Surface Shape for surface source (if it is the case)
Definition: MCNPSource.hxx:154
void SetWeight(double wgt)
set the Source particle weight
Definition: MCNPSource.hxx:48
string fDistribution
source distribution (use with bias)
Definition: MCNPSource.hxx:159
double GetNPS()
returns the number of source particles
Definition: MCNPSource.hxx:40
void SetSurface(Shape_ptr TheShape)
set the Surface number for a surface source.
Definition: MCNPSource.hxx:47
string fEnergy
Energy of the Source (either a number or a bias)
Definition: MCNPSource.hxx:151
void SetParticleType(int particle)
set the Particletype (1=n,9=H,...)
Definition: MCNPSource.hxx:68
double fNormal
Normal direction (inward or outward) for particle source.
Definition: MCNPSource.hxx:155
vector< string > fAXS
Reference vector for ext and rad.
Definition: MCNPSource.hxx:162
Base class to define shapes.
Definition: Shape.hxx:54