Skip to main content
SHARE
Publication

GEOMWRITER - A WORKFLOW FOR AUTOMATICALLY GENERATING MCNP GEOMETRY FOR NEUTRON GUIDE SIMULATIONS

by Kyle B Grammer
Publication Type
ORNL Report
Publication Date

This report describes the functionality of the geomwriter.py script, which is a python script for producing complex MCNP CSG geometries from the IGES CAD format. It is specifically written to handle neutron supermirror guides, but can handle more complex objects through utilizing a convex hull algorithm. This work flow reduces the amount of time spent on generating the surface definitions for a complex neutron guide system with hundreds of segments such that changes to the neutron guide system design in McStas can be rapidly incorporated into an MCNP model and integrated with the shielding geometry present in that model.