On this page
One continuous section of the book; read it straight through.
After the geometry of the model is completely defined, we can finish our model by completing the Data Card section. Remember, we already made some data cards when we defined the materials for the model. As described in Table 5.1, the data block section follows a single blank line delimiter after the cell block. In addition to the materials, the Data Card section can include parameters for the cells, source definitions, burnup cards, tally cards, and print controls.
As a technique, we will use a VOL card to define the volume for all of the cells in our problem. MCNP is capable of calculating the area and volume of many cells, however there are some geometries that it cannot adequately define such as asymmetric, non-polyhedral, or infinite cells. In order to adequately define all of the cells, we will demonstrate the use of a stochastic volume calculation in the next chapter. For the simple geometries in this chapter, we can easily calculate the volumes by hand. To specify the volume for each cell in the Data Card section write the following:
VOL value1 value2 value3…Each value is the volume for the cells defined in the Cell Block in cm. The values are in the order that cells are listed.
Another method to specify the volume of the cells is in the cell parameters, like we did with the importance using a VOL=(value) where the value is the volume in cm. If we use the stochastic volume calculation, it is easier to specify the volume in the Data Card section.
The definition of the source is just as important to the problem as the definition of the geometry. Within MCNP, the SDEF command controls the source command. Table 5.5. is a list of the variables for the SDEF command that are used if other than the default value is needed to define the source.
Table 5.6. Source Variable for the SDEF Command
| Variable | Meaning | Default |
|---|---|---|
| CEL | cell | determined from XXX, YYY, ZZZ and possibly UUU, VVV, WWW |
| SUR | surface | 0 (means cell source) |
| ERG | energy (MeV) | 14 MeV |
| DIR | , the cosine of the angle between VEC and UUU, VVV, WWW. The azimuthal angle is always sampled uniformly in [0, 2 ] | Volume case: is sampled uniformly in [-1.1] (isotropic). Surface case: p() = 2 for [0, 1] (cosine distribution). |
| VEC | reference vector for VEC | Volume case: required unless isotropic. Surface case: vector normal to the surface with sign determined by NRM. |
| NRM | sign of the surface normal | 1 |
| POS | reference point for positioning sampling | 0, 0, 0 |
| RAD | radial distance of the position from POS or AXS | 0 |
| EXT | Cell case: distance from POS along AXS. Surface case: cosine of angle from AXS | 0 |
| AXS | reference vector for EXT and RAD | no direction |
| X | x-coordinate of position | no X |
| Y | y-coordinate of position | no Y |
| Z | z-coordinate of position | no Z |
| CCC | cookie-cutter cell | no cookie-cutter cell |
| ARA | area of surface (required only for direct contributions to point detectors from a plane surface source | none |
| WGT | particle weight | 1 |
| EFF | reference efficiency criterion for position sampling | 0.01 |
| PAR | type of particle source emits | = 1 (neutron) if MODE N or P or N P E; = 2 (photon) if MODE P; = 3 (electron) if MODE E |
The MCNP User’s Manual has examples of complicated sources and description of the SDEF command line. This description is typically challenging for new users to understand. Often problems can be described with simple source definitions. The following source definitions from An MCNP Primer by Shultis and Faw are excellent examples for simple sources. (Shultis; 2011)
Two Point Isotropic Sources at Different Positions

C ---- Source: two point isotropic 1-MeV photon sources on x-axisSDEF ERG=1.00 PAR=2 POS=d5 $ energy, particle type, locationSI5 L -10 0 0 10 0 0 $ (x,y,z) cords of the two pt sourcesSP5 .75 .25 $ relative strengths of each source
Hover a line
Each line is read as a cell, a surface, or a data card. Tap a line on a small screen.
- ●Cell cards
- ●Surface cards
- ●Data cards
Note: The label 5 in the distribution d5 links to the SI5 and SP5 cards
Point Isotropic Source with Discrete Energy Photons

C ---- Source: point isotropic source with 4 discrete photon energiesSDEF POS 0 0 0 ERG=d1 PAR=2 $ location, energy, particle typeSI1 L .3 .5 1. 2.5 $ the 4 discrete energies (MeV)SP1 .2 .1 .3 .4 $ frequency of each energy
Hover a line
Each line is read as a cell, a surface, or a data card. Tap a line on a small screen.
- ●Cell cards
- ●Surface cards
- ●Data cards
Point Isotropic Source with a Histogram of Energies

C ---- Source: point isotropic source 4 histogram energy binsSDEF POS 0 0 0 PAR=2 ERG=d1 $ location, particle type, energySI1 H .1 .3 .5 1. 2.5 $ histogram boundariesSP1 0 .2 .4 .3 .1 $ probabilities for each bin
Hover a line
Each line is read as a cell, a surface, or a data card. Tap a line on a small screen.
- ●Cell cards
- ●Surface cards
- ●Data cards
Point Isotropic Source with a Continuum of Energies

C ---- Source: point isotropic with Maxwellian energy spectrumSDEF POS 0 0 0 PAR=2 ERG=d1 $ location, particle type, energySP1 -2 0.5 $ Maxwellian spectrum (2) with tem a=0.5 MeV
Hover a line
Each line is read as a cell, a surface, or a data card. Tap a line on a small screen.
- ●Cell cards
- ●Surface cards
- ●Data cards
Point Isotropic Source with Tabulated Energy Distribution

C ---- Source: continuum energies tabulated at discrete energiesSDEF POS 0 0 0 PAR=2 ERG=d1 $ location, particle type, energySI1 A 1 2 3 4 5 6 7 $ tabulated energies E1 ...E7SP1 0 .2 .27 .3 .28 .18 0 $ distribution values f(Ei)
Hover a line
Each line is read as a cell, a surface, or a data card. Tap a line on a small screen.
- ●Cell cards
- ●Surface cards
- ●Data cards
Two Point Sources with Different Energy Distributions

C ---- 2 pt iso sources: src 1 (4-bins) src 2 (4 discrete Ei)SDEF PAR=2 POS=d1 ERG FPOS d2 $ particle type, energy, locationSI1 L -10 0 0 10 0 0 $ cords of srcs on x-axisSP1 .4 .6 $ rel strengths of sourcesDS2 S 3 4 $ energy distributionsSI3 H .1 .3 .5. 1. 2.5 $ E bin limits src 1SP3 D 0 .2 .4 .3 .1 $ bin prob for src 1SI4 L .3 .5 .9 1.25 $ discrete Ei for src 2SP4 .20 .10 .30 .40 $ rel freq for src 2
Hover a line
Each line is read as a cell, a surface, or a data card. Tap a line on a small screen.
- ●Cell cards
- ●Surface cards
- ●Data cards
Rectangular Parallelepiped Parallel to Axes

C ---volumetric monoenergetic source inside a rectangular parallelepipedSDEF X=d1 Y=d2 Z=d3 ERG=1.25 PAR=2 $ location, energy, par typeSI1 -10. 10. $ x-range limits for source volumeSP1 0 1 $ uniform probability over x-rangeSI1 -15. 15. $ y-range limits for source volumeSP1 0 1 $ uniform probability over y-rangeSI1 -20. 20. $ z-range limits for source volumeSP1 0 1 $ uniform probability over z-range
Hover a line
Each line is read as a cell, a surface, or a data card. Tap a line on a small screen.
- ●Cell cards
- ●Surface cards
- ●Data cards
Source in a Complex Cell: Enclosing RPP Rejection Method

C --- Cell 8 is some complex cell in which a monoenergetic isotropicC volumetric source exists. A rectangular parallelepiped envelopsC this cell (MCNP does NOT check this!). Points, randomly pickedC in the rectangular parallelepiped, are accepted as source pointsC only if they are inside cell 8.CSDEF X=d1 Y=d2 Z=d3 ERG=1.25 PAR=2 CEL=8 $ location, energy, par typeC NOTE: source parallelepiped is larger than cell 8, and henceC source positions sampled outside cell 8 are rejected.SI1 -12. 12. $ x-range limits for source volumeSP1 0 1 $ uniform probability over x-rangeSI1 -11. 11. $ y-range limits for source volumeSP1 0 1 $ uniform probability over y-rangeSI1 -13. 13. $ z-range limits for source volumeSP1 0 1 $ uniform probability over z-range
Hover a line
Each line is read as a cell, a surface, or a data card. Tap a line on a small screen.
- ●Cell cards
- ●Surface cards
- ●Data cards
Source in a Complex Cell: Enclosing Sphere Rejection Method

C --- Cell 8 is some complex cell in which a monoenergetic isotropicC volumetric source exists. A sphere envelops this cell (MCNPC does NOT check this!). Points, randomly picked in the sphere,C are accepted as source points if they are inside cell 8CSDEF POS=0 0 0 RAD=d1 CEL=8SI1 0 20. $ radial sampling range: 0 to Rmax (=20 cm)SP1 -21 2 $ weighting for radial sampling: here r^2
Hover a line
Each line is read as a cell, a surface, or a data card. Tap a line on a small screen.
- ●Cell cards
- ●Surface cards
- ●Data cards
Line Source (Degenerate Rectangular Parallelepiped)

C --- Line monoenergetic photon source lying along x-axisC This uses a degenerate Cartesian volumetric source.CSDEF POS=0 0 0 X=d1 Y=0 Z=0 PAR=2 ERG=1.25SI1 -10 10 $ Xmin to Xmax for line sourceSP1 -21 0 $ uniform sampling on line Here x^0
Hover a line
Each line is read as a cell, a surface, or a data card. Tap a line on a small screen.
- ●Cell cards
- ●Surface cards
- ●Data cards
Disk Source (Degenerate Cylindrical Source)

C --- disk source in x-y plane centered at the origin.C This is a degenerate cylindrical volume source.CSDEF POS=0 0 0 AXS=0 0 1 EXT=0 RAD=d1 PAR=2 ERG=1.25SI1 0 11 $ radial sampling range: 0 to RmaxSP1 -21 1 $ radial sampling weighting: r^1 for disk source
Hover a line
Each line is read as a cell, a surface, or a data card. Tap a line on a small screen.
- ●Cell cards
- ●Surface cards
- ●Data cards
Plane Source (Degenerate Rectangular Parallelepiped)

C --- rectangular plane source centered on the origin and perpendicularC to the y-axis. This uses a degenerate Cartesian volumetric source.CSDEF POS=0 0 0 X=d1 Y=d2 Z=0 PAR=2 ERG=1.25SI1 -10 10 $ sampling range Xmin to XmaxSP1 0 1 $ weighting for x sampling: here constantSI2 -15 15 $ sampling range Ymin to YmaxSP1 0 1 $ weighting for y sampling: here constant
Hover a line
Each line is read as a cell, a surface, or a data card. Tap a line on a small screen.
- ●Cell cards
- ●Surface cards
- ●Data cards
Disk Source (Degenerate Cylindrical Source)

C --- disk source in x-y plane centered at the origin.C This is a degenerate cylindrical volume source.CSDEF POS=0 0 0 AXS=0 0 1 EXT=0 RAD=d1 PAR=2 ERG=1.25SI1 0 11 $ radial sampling range: 0 to RmaxSP1 -21 1 $ radial sampling weighting: r^1 for disk source
Hover a line
Each line is read as a cell, a surface, or a data card. Tap a line on a small screen.
- ●Cell cards
- ●Surface cards
- ●Data cards
Plane Source (Degenerate Rectangular Parallelepiped)

C --- rectangular plane source centered on the origin and perpendicularC to the y-axis. This uses a degenerate Cartesian volumetric source.CSDEF POS=0 0 0 X=d1 Y=d2 Z=0 PAR=2 ERG=1.25SI1 -10 10 $ sampling range Xmin to XmaxSP1 0 1 $ weighting for x sampling: here constantSI2 -15 15 $ sampling range Ymin to YmaxSP1 0 1 $ weighting for y sampling: here constant
Hover a line
Each line is read as a cell, a surface, or a data card. Tap a line on a small screen.
- ●Cell cards
- ●Surface cards
- ●Data cards
Disk Source (Degenerate Cylindrical Source)

C --- line source (degenerate cylindrical volumetric source)SDEF POS=0 0 0 AXS=1 0 0 EXT=d1 RAD=0 PAR=2 ERG=1.25SI1 -10 10 $ axial sampling range: -X to XSP1 -21 0 $ axial sampling weighting: here constant
Hover a line
Each line is read as a cell, a surface, or a data card. Tap a line on a small screen.
- ●Cell cards
- ●Surface cards
- ●Data cards
Monodirectional Disk Source

C --- disk source perpendicular to z-axis uniformly emittingC 1.2-MeV neutrons monodirectionally in the + z-directionCSDEF POS=0 0 0 AXS=0 0 1 EXT=0 RAD=d1 PAR=1 ERG=1.2VEC=0 0 1 DIR=1SI1 0 16 $ radial sampling range: 0 to RmaxSP1 -21 1 $ radial sampling weighting: r^1 for disk source
Hover a line
Each line is read as a cell, a surface, or a data card. Tap a line on a small screen.
- ●Cell cards
- ●Surface cards
- ●Data cards
Point Source Collimated into a Cone of Direction

C --- Point isotropic 1.5 MeV photon source collimated intoC an upward cone. Particles are confined to an upwardC (+z axis) cone whose half-angle is a cos(0.9) = 25.8C degrees about the z-axis. Angles are with respect toC the vector specified by VECCSDEF POS=0 0 0 ERG=1.25 PAR=2 VEC=0 0 1 DIR=d1SI1 -1 0.9 1 $ histogram for cosine bin limitsSP1 0 0.95 0.05 $ frac. Solid angle for each binSB1 0. 0. 1. $ source bias for each bin
Hover a line
Each line is read as a cell, a surface, or a data card. Tap a line on a small screen.
- ●Cell cards
- ●Surface cards
- ●Data cards
With this conical source, tally normalization is per source particle in 4 steradians. To normalize the tally per source particle in the cone, put WGT=1/fsa2 on the SDEF card, where fsa2 is fraction solid angle of the cone (0.05 in the above example). Calculate the fsa by using the cosine bin limits and taking the following:
The Primer has more specifications for multiple volumetric sources and some other sources that are not repeated here. The User’s Manual also has many examples of a variety of sources and additional options and cases that are beyond the scope of this text. As a good practice, use the PRINT 110 card in the Data Card section. This option prints the locations, directions, and energies of the first 50 particles to be printed in the output.
Criticality Source
One additional source that we will cover does not have a specific geometry associated with it. That is the KCODE and KSRC source definitions used for criticality calculations. The definition of a criticality model takes a slightly different form than the previous examples. To use a criticality source, there must be fissile material in the model. The criticality source consists of two cards, KCODE and KSRC. Table 5.6 lists the parameters for the KCODE card and their descriptions. The default parameter is used unless another value is specified. The KCODE card has the following form (Kulesza et al.; 2022):
Table 5.7. Input parameters for KCODE data card.
| Input Parameter | Description |
|---|---|
nsrck | Number of source histories per cycle. (DEFAULT: nsrck=1000) |
rkk | Initial guess for . (See Note 1.) (DEFAULT: rkk=1.0) |
ikz | Number of cycles to be skipped before beginning tally accumulation. (DEFAULT: ikz=30) |
kct | Total number of cycles to be done. If kct=0, never terminate on the number of cycles, but terminate on time. (DEFAULT: kct=ikz+100) |
msrk | Number of source pints for which to allocate storage (See Note 2.) (DEFAULT: msrk=maximum of 4500 or 2 x nsrck) |
knrm | Controls normalization of tallies. If knrm=0, normalize tallies by weight. (DEFAULT) If knrm=1, normalize tallies by number of histories. |
mrkp | Maximum number of cycle values on MCTAL or RUNTPE files. (DEFAULT: mrkp=6500) |
kc8 | Controls the number of cycles over which summary to average. If kc8=0, average over all cycles. (See Note 3.) If kc8=1, average over active cycles only. (DEFAULT) |
Note 1: If in the first cycle the source being generated overruns the current source, the initial guess (rkk) is probably too low. The code then proceeds to print a comment, continues without writing a new course calculates , reads the initial source back in, and begins problem using instead of rkk. If the generated source again overruns the current source after the first cycle, the job terminates and either a better initial guess (rkk) or more source space (msrk) should be specified on the next try.
Note 2: If an SRCTP file with a larger value of msrk is read for the initial source, the larger value is not used.
Note 3: Setting the parameter kc8 to zero causes tallies and summary table information to be for both active and inactive cycles and should not be used. Setting kc8 = 0 also results in strange MCTAL file normalization.

The second required card for a criticality source is the KSRC card which specifies the criticality source points. These are the locations for the initial points for the KCODE calculation. They must be located in a region in the model where there is fissile material. The KSRC card has the following form:
KSRC x1 y1 z1 x2 y2 z2...where x y z are the locations of the initial source points. For small models, like our unit cell, we can use just one source point. For larger models, like a reactor core, multiple points will be needed throughout the core to get the criticality calculation started.
An example for a criticality source for a small single assembly model displayed in Figure 5.7 is presented below:
KCODE 2000 1.3 5 55 500
KSRC 1.443 0.0 0.0In this case, the initial guess for k is 1.3 and the location for the source starting point is slightly off the origin by the value of the rod pitch (1.443 cm) because the center rod location did not have fissile material in it. The center of the model in Figure 5.7 is an instrument guide tube filled with water.
References
Full bibliography- Kulesza, J. A., Adams, T. R., Armstrong, J. C., Bolding, S. R., Brown, F. B., Bull, J. S., Burke, T. P., Clark, A. R., Forster III, R. A., Giron, J. F., Grieve, T. S., Josey, C. J., Martz, R. L., McKinney, G. W., Pearson, E. J., Rising, M. E., Solomon Jr., C. J., Swaminarayan, S., Trahan, T. J., Wilson, S. C. and Zukaitis, A. J. (2022). MCNP Code Version 6.3.0 Theory & User Manual. https://www.osti.gov/biblio/1889957
- Shultis, J. K. ; Faw, R. E. (2011). An MCNP Primer, Department of Mechanical and Nuclear Engineering, Manhattan, KS. https://mcnp.lanl.gov/pdf_files/Book_MonteCarlo_2011_ShultisFaw_AnMCNPPrimer.pdf
