On this page
The geometry for MCNP consists of cells which are built up of surfaces and materials. Once all of the materials are created, we can begin working on the surface cards. Surfaces are standard geometric shapes defined in MCNP arranged in a Cartesian coordinate system (x, y, z). All the units for surfaces are in cm. Tables 5.3 and 5.4 are from the MCNP6 User’s Manual and define most of the surfaces used in the program. (Kulesza et al.; 2022)



When we think of a three-dimensional object that we want to model, we can begin to construct it out of its requisite parts. For example, if we wanted to model a simple rectangular box, we could define it as the intersection of six planes normal to each other, see Figure 5.5. As geometry becomes more complex, we must think about how curved or asymmetrical surfaces intersect with each other. To begin the model, we should first determine the most appropriate place for the origin. It is possible to arrange the surfaces with respect to any origin, but we can save quite a bit of time and frustration by selecting an origin that makes use of any symmetry in the problem.
For the example in Figure 5.5, we can place the origin in the center of the box. If the box has dimensions 10 cm x 20 cm x 10 cm and we wanted to define it using six planes, we would have the following surfaces:
1 PX -5
2 PX 5
3 PY -10
4 PY 10
5 PZ -5
6 PZ 5Following the input description in Table 5.1, the surface cards follow the single blank line after the cell card blocks. The format for input is a surface identifier (a number in the first 5 columns) followed by the mnemonic (plane normal to an axis) and the input parameter (vector from the origin). We could have chosen to place the origin at the corner of the box or anywhere else in space. However, by placing it in the center, we can make use of the natural symmetry in the problem.

MCNP has an easier way to define commonly shaped objects such as a rectangular box. The same object defined by the six planes above can be defined using the macrobody for a rectangular parallelepiped, RPP. Common macrobodies and their definitions are listed in Table 5.4. To define the same object in Figure 5.5 using a macrobody, the input would be:
1 RPP -5 5 -10 10 -5 5Note that the RPP object is only defined when the object is normal to the axis of the origin. If we wanted to define a similar object at some angle to one or more axes, we would have to define it using planes. We gain a lot of efficiency in our model definition if we can use a macrobody to define a surface. The efficiency is not just in the definition of the surface but especially for the definition of the cell.
As we virtually construct our model in three dimensions, we will add surfaces together to create cells. When we add to the model, we should avoid coincident planes. If we have, for example, a cylinder inside a rectangular parallelepiped (RPP), such as the unit cell we modeled in SCALE, we should avoid having the end of the cylinder match up exactly with the end of the RPP. Because MCNP is a stochastic process, there exists the possibility for a particle to travel exactly along the infinitesimally small border of the junction of two surfaces. This will cause the model to have particles that are “lost” and the run will fail.
All surfaces in MCNP have a “positive” and “negative” side in the 3-dimensional world. For planes, the positive side corresponds to the side where the normal vector points toward the positive axis. For a macrobody, the positive side is oriented outside the body while the negative side is inside. The positive and negative orientation are critical for the definition of cells.
Unless otherwise defined, boundary conditions for surfaces are transparent to particles. If we desired to have a reflected boundary condition, as we did with the unit cell problem in SCALE, the surface card number identifier is preceded by an asterisk (*) for example:
*1 RPP -5 5 -10 10 -5 5is the same surface as Figure 5.5 with a reflected boundary condition. There are other boundary conditions available, such as a periodic condition, and they are defined in the User’s Manual in Chapter 3. (Kulesza et al.; 2022)
Building the Input Deck– Cell Cards
Now that we have defined the materials and the surfaces, we can create the cells in the first block of the MCNP input file. As described in Table 5.1, the cell cards immediately follow the title card in the input. The structure for the cell card is (Kulesza et al.; 2022):
The cell number, arbitrarily assigned by the user, in the first five columns.
The cell material number as described in Section 5.2. The material is described on a material card (M) that has the same material number. If the cell is a void, a zero is entered for the material number. The cell and material numbers cannot exceed eight digits each.
Cell material density. A positive entry is interpreted as atom density in units of 1024 atoms/cm3. A negative entry is interpreted as mass density in units of g/cm. No density is entered for a void cell.
A complete specification of the geometry of the cell. This specification includes a list of the signed surfaces bounding the cell where the sign denotes the sense of the regions defined by the surfaces. The regions are combined with the Boolean intersection and union operators. A space indicates an intersection and a colon indicates a union. Figure 5.6 depicts a graphical example of a union and an intersection. (Shultis; 2011) If parenthesis are used, the surfaces in the parenthesis are joined first such as (A:B) C.
Optionally, after the geometry description, cell parameters can be entered. The form is
KEYWORD = value. We will use of theIMPparameter here for the importance for particles in that cell area. Other parameters, such as volume, could be specified here or, alternatively, in the Data Card block.

As an example, the cell card below defines cell 1. Cell 1 is the rectangular cube from Figure 5.5 full of water at nominal density (1.0 g/cm) using the material card (M1) defined in section 5.2 and the six planes defined in section 5.3. The cell has an importance for neutrons of 1. This importance weighting indicates that MCNP will count and track 100% of the neutrons in the cell with a weight of 1.0. For an area outside the model, we could set the cell importance to 0 and have the code stop tracking and kill the particles when they leave the box.
1 1 -1.0 1 3 5 -2 -4 -6 IMP:N=1Alternatively, we could define the same cell using the macrobody (Section 5.3).
1 1 -1.0 -1 IMP:N=1We can see that the definition “-1” for the third value on the card which indicates inside the RPP “1” is a simpler definition for the cell than using the union of six planes. Alternatively, the importance can be omitted from the cell card and listed for all the cells in sequence order in the Data Card section. We can use a shortcut nR to repeat the preceding entry n times to shorten the input. For example, in the Data Card section, IMP:n 1 4R replaces IMP:n 1 1 1 1 1.
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
