Monte Carlo Fundamentals
Interactive Rosetta Stone
Pick a concept and see the equivalent input syntax for all four Monte Carlo codes. For a compact static table, see the static cross-code reference.
Sphere
GeometryA sphere of radius R centered at the origin.
MCNP
text
1 so 5.0Surface 1: sphere at origin, R = 5 cm
OpenMC
python
sph = openmc.Sphere(r=5.0)Serpent
text
surf 1 sph 0.0 0.0 0.0 5.0SCONE
plaintext
sphere1 { id 1; type sphere; origin (0.0 0.0 0.0); radius 5.0; }Inside a surfaces { } block
text
1 so 5.0Surface 1: sphere at origin, R = 5 cm