Allen CDNE

Computational Design in Nuclear Engineering · Allen

Download the PDF

Computational Design in Nuclear Engineering, second edition, by Kenneth S. Allen, Ph.D., P.E.

Download the PDF

Chapter 9 · Attila4MC®

Introduction to Attila4MC®

On this page

Chapter 9 · 1 / 99 min readPDF page 311

Worked examples

The Attila4MC program is made and distributed by the Silver Fir corporation. From the Silver Fir website, “Attila4MC was developed to help MCNP® users become more productive. While the accuracy of MCNP is widely established, it relies on command line input for defining model geometry, calculation input, and variance reduction, which can often create significant bottlenecks limiting calculation throughput. Attila4MC provides an easy-to-use graphical interface, allowing novice and advanced MCNP users to easily set up, run, and visualize MCNP solutions from CAD data. Attila4MC leverages the state-of-the-art Attila deterministic solver to easily generate highly efficient weight windows variance reduction, shortening MCNP calculation times and substantially reducing user investment over manual variance reduction techniques. Once a calculation is performed, Attila4MC provides intuitive and advanced solution visualization options, aiding solution verification and allowing solution field insights to be easily conveyed to external parties.” (SilverFir; 2023)

Figure 9.2. Attila4MC® from Silver Fir
Figure 9.2. Attila4MC® from Silver Fir

Attila4MC® is a graphical user interface (GUI) that allows the user to set up, run and visualize MCNP solutions from CAD data. As mentioned in their web introduction, the program has its own deterministic solver, CADIS, that will generate weight windows for variance reduction. This will increase the accuracy of the results while reducing computer time, especially for thick shielding problems. The program interfaces with MCNP on the user’s computer and will setup and run problems all within the GUI interface. The user can also choose to have Attila4MC assist in the setup of the unstructured mesh problem and then he or she can export the input file and run it separately.

Attila4MC uses TecPlot® made by ANSYS Incorporated for visualization within the user interface. There are many options for visualization to include three-dimensional models and surfaces that display flux and or dose tally information on the CAD model. The user can also export the EEOUT file produced by the unstructured mesh run in Attila4MC® and use a Python script provided by Los Alamos National Laboratory to parse the file into a format that can be read by another visualization code, ParaView. ParaView® is free for download while TecPlot® can be purchased with the Attila4MC license.

The Attila4MC® license gives the user access to the video tutorials and other resources on the Silver Fir website. The user also gets access to upgraded versions of the code and update notices as part of the community. Within the Attila4MC tutorials, the primary CAD program used is SpaceClaim® which is also made by ANSYS. SpaceClaim® does not come with the Attila4MC license, however, most CAD programs can save models in the Parasolid format which is used by Attila4MC® to generate the mesh for the problem. For our problems, we will continue to use Solidworks® as our CAD program.

Creating Parasolids in Solidworks®

It is important to note that Attila4MC still requires skill and knowledge to get results. The user must have a good understanding of MCNP to achieve acceptable, realistic, and believable results. To get the Parasolid information into Attila in a manner that will allow it to quickly and accurately represent the problem and provide good results, the user must pay close attention to how the program generates the mesh. Fortunately, there are numerous help topics and buttons within the GUI and Silverfir has many video tutorials that show and explain a variety of problems to include mesh generation.

In general, obtaining a suitable mesh is the most challenging aspect of using Attila4MC. There are several best practices to help avoid issues with mesh generation. Note that the geometry mesh will consist of tetrahedral elements. These are groups of planar surfaces that represent the various components in cells where they join to make a closed object. Think of a brick wall where each brick represents part of the wall. The material is the same for each brick and rather than describing the wall as a single cell, it is a stack of smaller cells. The Parasolid is imported into Attila4MC, and the user specifies the various parts or sub-assemblies within the assembly as regions. These regions can then be independently broken into tetrahedral cells. Regardless of the fineness of the mesh, planar regions will be explicitly represented. However, curved surfaces will be approximated by a series of straight-edged surfaces. The accuracy of the model in these regions will depend on how fine the mesh is made. It should be apparent that the finer the mesh, in general, the more accurate the model will be. However, this approach will make the model more complex and require more computer time and memory.

The ability for Attila4MC to mesh the model properly depends on the model itself. If, for example, the user intends on applying the deterministic CADIS code to generate weight windows, the overall model must be in a rectangular volume. This is because CADIS applies a Cartesian grid on the model, and it must be square and aligned with the coordinate axis. Additionally, there are several methods for mesh generation to include MCNP and Attila non-manifold. The Attila non-manifold option is required for CADIS calculations and will identify empty regions within the model but requires better precision in the CAD model for successful meshing. If the user desires all regions to be presented with an MCNP load of the model, he or she will have to explicitly define those regions as parts within the CAD assembly. For example, a model that includes a person standing in a room with a radioactive source would require the air filling the area within the room to be a part in the assembly to get dose contours in those areas or to account for attenuation within the air.

Regardless of the type of Attila4MC problem, care must be taken to ensure that individual parts within the CAD model do not overlap or are undefined. The code must be able to distinguish between the various parts in the assembly to apply the appropriate mesh which will result in the cells and materials to be properly assigned in the MCNP input file. This is similar to the issue in MCNP where a model can have coincident planes or undefined regions which will cause the model to fail due to lost particles. When creating an assembly, the user should make use of mates within the model that precisely fit parts together. In some cases, it may make sense to leave intentional gaps between surfaces to prevent unintended overlapping parts. For example, a model of a person or object on a floor with an uneven surface can be offset from the ground by a small fraction which will not affect the overall results of the calculation, but will prevent a region where two objects occupy the same volume.

Figure 9.3. M1 Abrams tank model downloaded from GrabCad.
Figure 9.3. M1 Abrams tank model downloaded from GrabCad.

The CAD community online is a great resource for finding parts and objects to include in Attila4MC calculations. Various sites online to include GrabCAD and Yeggi offer users the ability to upload and download objects in a variety of CAD formats. Many models are posted for free use. When building a complex assembly, the user may be able to make use of CAD parts that support their model in their CAD software format. Of course, proper citations should be given to any intellectual property accessed from these sites. Example 9.1 demonstrates how to make a CAD model of two soldiers standing at a fixed distance from a spherical source. One of the soldiers is shielded by an M1 Tank. The tank and human parts were downloaded from GrabCAD.

Example 9.1

Create a Parasolid model with two humans an M1 Abrams tank, soil and a sphere to represent a radioactive source. The two personnel will be arranged so that they are equidistant from the source with one of them shielded by the tank.

Solution: Begin by downloading part models for an M1 Tank and a human. There are options available for each on multiple sites for free. Care must be used when selecting parts from outside sources. I addition to the obvious dangers of downloading corrupt files or viruses, if the downloaded model is too detailed, the model may not mesh correctly, or it may take too long to run to completion. There are no set rules for determining whether a model is going to work or not. For this example, we will be making an assembly of parts. If we download an assembly from the internet for one of our objects, we can use Solidworks to “save as” a part. This is important because, when the Parasolid is imported into Attila4MC, we will specify that it was created by parts. Each part will represent the individual materials in the model. We will make the simple assumption that that tank is one material. The parts we downloaded are presented below:

Example 9.1, listing 1Example 9.1, listing 2

Because the two humans will need to have separate tallies associated on them, we will need to save the human part as “soldier1” and another copy as “soldier2”. If we were only making an assembly, we would import the same part twice. However, if we did that, Attila would not distinguish between the two soldiers, and we could not get a tally on each and compare the results of standing behind the tank.

Using simple CAD skills, we create the block of soil, sphere for the source and a hollow box border for the air that is like a display case. The base is a square of earth 750 in x 750 in and 3 ft thick while the source is a sphere with a diameter of 20 cm. For this model, we will not fill in the empty region. The air box is not needed for the analog MCNP run, but it will be needed for a CADIS calculation to create the rectangular mesh so we are adding it now. The additional parts are below:

Example 9.1, listing 3Example 9.1, listing 4Example 9.1, listing 5

The final assembly is arranged to allow the source to be in a direct line of sight to both soldiers at equal distance. The difference is the tank in between one of the soldiers. When the tank and the soldiers are added to the assembly, a small air gap is placed between them and the soil. This air gap ensures that there are no overlapping parts. The air box is mated to the soil so it precisely fits on top and the interior region is big enough to ensure it does not intersect with the tank or soldiers inside. The final assembly is below:

Example 9.1, listing 6

Once the assembly is created, it is just a matter of saving as a Parasolid. Some versions of Attila4MC may require an older Parasolid version than what is available. If that is the case, select options under the “save as” “Parasolid” window and change the version to match the maximum version Attila4MC will support. For our purposes, when we save the assembly as a Parasolid, we will to select "options" and choose a version 26.0 and check flatten assembly hierarchy to ensure it is compatible

Video for this sectionParasolid Model M1 Tank Example

Computational Design in Nuclear Engineering, second edition, by Kenneth S. Allen, Ph.D., P.E. — the complete book as a 394-page PDF.

Download the PDF