mcDISPLAY(1)

πŸ“¦
version 3.5+3.5.19 Β· 2 versions
, in debian trixie, ubuntu questing, ubuntu resolute

πŸ’– mcDISPLAY(1) β€” the manual page, bestie edition πŸ’–

okay so bestie, welcome to mcDISPLAY, aka the mcstas Graphical display of simulations manual. pull up a chair, grab a boba, we're gonna debug some neutrons together 🧚✨


✨ SYNOPSIS ✨

mcdisplay [-h] [–default] [–dirname DIRNAME] [–inspect INSPECT]
[–invcanvas] [-n N] INSTR [options ...]

🌸 DESCRIPTION 🌸

so like. the mcdisplay front-end is a graphical debugging tool. it draws you a schematic of your instrument definition, showing where all the components are sitting and the paths your simulated neutrons take through the instrument. it's giving main character energy for debugging, fr fr β€” like, you can spot components that are in the totally wrong position, or figure out exactly where your neutrons are getting lost. no cap, it's iconic.

to use the mcdisplay front-end with a simulation, you run it like this:

mcdisplay INSTR args...

where INSTR is the name of either:

  • the instrument source INSTR.instr, or
  • the simulation program INSTR.out generated with mcstas

and args are just the normal command line arguments for the simulation, exactly like for mcrun. the -h option will list valid options for you πŸ’…

the default plotting backend is mcdisplay-pyqtgraph, but bestie there's a whole squad of additional plotters out there:

  • mcdisplay-matplotlib
  • mcdisplay-webgl-classic (using WebGL)
  • mcdisplay-webgl (using WebGL and NodeJS)
  • mcdisplay-matlab (using Matlab or Octave)

and this one? this is the PyQtGraph plotting tool. periodt.


πŸ’… OPTIONS πŸ’…

  • -h, –help β€” show this help message and exit. classic, love her
  • –default β€” automatically use instrument defaults for the simulation run. lowkey convenient
  • –dirname DIRNAME β€” output directory name override
  • –inspect INSPECT β€” display only particle rays reaching this component πŸ‘€
  • –invcanvas β€” invert canvas background from black to white. for the light-mode girlies πŸŽ€
  • -n N, –ncount N β€” Number of particles to simulate

πŸ¦‹ FILES πŸ¦‹

  • /usr/share/mcstas/tools/Python
  • /usr/share/mcstas/tools/Python/mccodelib/mccode_config.json
  • ~/.mcstas/mccode_config.json
  • http://www.mcstas.org

⭐ EXAMPLES ⭐

display the Test_SX example (Single crystal diffraction) πŸ“

  • mcdisplay Test_SX.instr -d output_dir -n 1e2 TTH=13.4

πŸ‘‘ AUTHORS πŸ‘‘

mcstas Team (mcstas.org)


🌈 SEE ALSO 🌈

mcstas(1), mcdoc(1), mcplot(1), mcrun(1), mcgui(1), mcdisplay(1)


πŸ’œ AUTHORS πŸ’œ

MCSTAS neutron Ray Tracing Team.


okay bestie that's the whole page, we ate and left no crumbs 🫢 this one's shipped from the git source and it's literally just mcDISPLAY(1) β€” go forth and debug, you gorgeous genius πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from