87 void SetVEC(
double i = 0,
double j = 0,
double k = 0);
89 void SetAXS(
double i = 0,
double j = 0,
double k = 0);
168 string Print()
override;
Reference_ptr< Shape > Shape_ptr
Definition MCNPSource.hxx:42
Header file for Monte-Carlo Source abstract class.
Header file for Shape class and Shape_ptr type.
Header file for Spectrum class.
Header file for TReference class and Reference_ptr template.
A Cell is composed from a Shape and a Material.
Definition Cell.hxx:84
Define a MCNP Source.
Definition MCNPSource.hxx:53
void SetSurfaceNumber(int num)
Definition MCNPSource.hxx:207
void SetX(string x)
Definition MCNPSource.hxx:91
void AddPosition(double *pos)
Add a position to the KSRC position vector (in m)
Definition MCNPSource.cxx:153
void SetVEC(double i=0, double j=0, double k=0)
Set the reference vector for DIR.
Definition MCNPSource.cxx:165
string PrintTubeSource()
Print a Tube Source in MCNP.
Definition MCNPSource.cxx:476
string fParticleDistribution
if not only one particle
Definition MCNPSource.hxx:228
void SetRadius(string rad)
Definition MCNPSource.hxx:109
void SetSSR()
Definition MCNPSource.hxx:154
bool GetSSR()
Definition MCNPSource.hxx:158
string fDirection
direction bias
Definition MCNPSource.hxx:215
void SetDistribution(string D)
Definition MCNPSource.hxx:141
void AddBias(string bias)
add a bias to the bias vector
Definition MCNPSource.cxx:136
string Y
Definition MCNPSource.hxx:220
void UsePreviousRunSource(string FirstSource="") override
use a previous kcode source for mcnp.
Definition MCNPSource.cxx:836
int fParticleType
particle type for the source (1=neutron)
Definition MCNPSource.hxx:213
int fSurfaceNumber
particle type for the source (1=neutron)
Definition MCNPSource.hxx:214
void AddTubeSource(MathTube *tube, string TubeParticleEnergy="1e6")
Definition MCNPSource.cxx:224
void SetKSRC()
Definition MCNPSource.hxx:150
void SetAXS(double i=0, double j=0, double k=0)
Set the reference vector for EXT and RAD.
Definition MCNPSource.cxx:195
bool fSSR
whether or not a surface source read is wanted
Definition MCNPSource.hxx:227
void SetDirection(string dir)
Definition MCNPSource.hxx:105
void UseThisEnergyDistribution(Spectrum *spectrum, int SourceDistributionNum=800)
Definition MCNPSource.cxx:251
vector< MathTube * > fSourceTube
vector of Tube for <> sources
Definition MCNPSource.hxx:231
void SetEnergy(string E)
Definition MCNPSource.hxx:76
string Print() override
Print the MCNP source (into MNCP input file).
Definition MCNPSource.cxx:328
string X
Definition MCNPSource.hxx:219
MCSource * Clone() override
Clone method.
Definition MCNPSource.hxx:61
vector< double * > fKSRCposition
KSRC position vector.
Definition MCNPSource.hxx:229
int fCEL
Definition MCNPSource.hxx:225
bool fKSRC
whether or not a KSRC source is wanted
Definition MCNPSource.hxx:226
string fRadius
direction bias
Definition MCNPSource.hxx:216
vector< Cell * > fTubeCell
Definition MCNPSource.hxx:235
void SetParticleDistribution(string ParticleDistribution)
Definition MCNPSource.hxx:121
~MCNPSource() override
destructor
Definition MCNPSource.cxx:113
vector< string > fAXS
Reference vector for ext and rad.
Definition MCNPSource.hxx:223
void SetKSRCPosition(int i, double *pos)
Definition MCNPSource.hxx:164
vector< string > fVEC
Reference vector for DIR.
Definition MCNPSource.hxx:222
void SetEXT(string EXT)
Definition MCNPSource.hxx:81
int GetParticleType()
Definition MCNPSource.hxx:117
string Z
Definition MCNPSource.hxx:221
vector< double > fSourceTubeRelIntensities
Definition MCNPSource.hxx:234
vector< string > fTubeParticleEnergy
vector of "energies" of each source tube (double or distribution)
Definition MCNPSource.hxx:232
void SetY(string y)
Definition MCNPSource.hxx:95
string fEXT
Cell case:distance from POS along AXS Surface Case:cosine of angle from AXS.
Definition MCNPSource.hxx:218
vector< string > fBias
vector of bias
Definition MCNPSource.hxx:224
void SetZ(string z)
Definition MCNPSource.hxx:99
vector< Spectrum * > fTubeParticleSpectrum
vector of energy spectrum if the source uses Spectrum
Definition MCNPSource.hxx:233
void SetParticleType(int particle)
Definition MCNPSource.hxx:113
string fDistribution
source distribution (use with bias)
Definition MCNPSource.hxx:217
Define a Monte-Carlo Source.
Definition MCSource.hxx:53
void SetEnergy(double E=2.5e6)
Set the energy for a point source (in eV)
Definition MCSource.cxx:112
string fEnergy
Energy of the Source (either a number or a bias)
Definition MCSource.hxx:161
A MathTube is a finite cylinder with an optional hole inside (like a pipe).
Definition MathTube.hxx:50
Handle dynamical object creation and pointer affectation.
Definition TReference.hxx:74
Abstract class to define geometrical shapes.
Definition Shape.hxx:85
Base class to define spectra.
Definition Spectrum.hxx:50
the namespace of the Standard C++