Skip to content

minimc_geom

Thomas Kittelmann edited this page Mar 30, 2026 · 3 revisions

MiniMC geometry cfg-strings

Four MiniMC simulation geometries are currently available, all representing a single convex volume centered around the origin and axis aligned where appropriate.

Geometry examples

Here follows a few examples of how one can set the geometry using the geomcfg string parameter. Note that geometry length values are always to be specified in meters:

  • "sphere;r=0.05"

    A sphere centered at (x,y,z)=(0,0,0) with a radius of 5cm.

  • "cyl;r=0.001"

    An infinite cylinder around the y-axis with a radius of 1mm.

  • "cyl;r=0.007;dy=0.03"

    A 6cm long cylinder around the y-axis with radius of 7mm. The cylinder endcaps are located at y=+-10cm.

  • "slab;dz=0.1"

    An infinite slab bounded by planes at z=+-10cm.

  • "box;dx=0.1;dy=0.2;dz=0.3"

    An axis-aligned box centered at (x,y,z)=(0,0,0) with the 8 corners located at (x,y,z)=(+-10cm,+-20cm,+-30cm).

Specific geometries available

The full list of available geometries and their parameters:

  • "sphere":

    A spherical volume centered at (0,0,0).

    Parameters:

    • r (default "0.01") : sphere radius [m].
  • "box":

    An axis-aligned box with corners at (+-dx,+-dy,+-dz).

    Parameters:

    • dx (default "0.01") : half-width [m].
    • dy (default "0.01") : half-height [m].
    • dz (default "0.01") : half-depth [m].
  • "slab":

    An unbounded slab bound by planes through (0,0,+-dz) and normals (0,0,1). This is essentially a box with dx=dy=infinity.

    Parameters:

    • dz (default "0.01") : half-depth [m].
  • "cyl":

    A cylinder around the y-axis. If dy!=0 the cylinder has finite length, with ends at y=+-dy.

    Parameters:

    • r (default "0.01") : cylinder radius radius [m].
    • dy (default "0") : Half-length of cylinder (0 means infinitely long) [m].

Clone this wiki locally