McStas logo McStas - A neutron ray-trace simulation package ILL; PSI; ESS Niels Bohr Institute DTU Physics NEXMAP

McStas

About McStas
 Conditions of use
 Authors/Contacts
 Project funding
 Screenshots

Download
 Components
 Linux Install (deb/rpm)
 Mac OS X Install
 Unix Install (src code)
 Windows Install
 Other Downloads (share)

Mailing list

Search web/mailinglist

Documentation
 McStas manual
 FAQ
 Known problems
 Publications
 C Compilers
 Other
 Tools
 Tutorial

Workshops/conferences

Developments

Links <- UPDATED!

Report bugs

Git

McStas Ubuntu live-dvd


McStas - A neutron ray-trace simulation package

McStas is a general tool for simulating neutron scattering instruments and experiments. It is actively supported by DTU Physics, NBI KU, ESS, PSI and ILL

Simulated scattering from a hollow-cylinder vanadium sample.

The plot shows the intensity of scattered neutrons (red is highest intensity). The sample is at the center of the sphere with the neutron beam coming from the left. Clearly seen is the shadowing effect of the sample causing a lower intensity opposite the beam. Also seen is the effect of the non-symmetric geometry of the sample, causing lower intensity directly above and to the side of the sample.



Recent news


September 29th, 2018: Release 2.4.1 works OK on macOS 10.14 Mojave

Dear all,

I can confirm that the latest McStas works fine on the newest macOS release, even though the distributed "Check-PL-dependencies" script will report both 10.13 and 10.14 as an unsupported macOS releases.

If you need to install our Perl-based tool chain on 10.13 High Sierra or 10.14 Mojave, the easiest way is to download an updated version of the above script, get it from our GitHub (I will also put a copy alongside the existing .tgz for download)

If, after an upgrade to Mojave you get compilation issues with the error message

mccode-r.h:39:18: fatal error: math.h: No such file or
directory
then please run the following commands in a terminal:
  • xcode-select --install
    - to initiate installation of updated Xcode commandline tools
  • sudo open
    /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
    - to install the development headerfiles in the usual /usr/include location

May 18th, 2018: MDANSE 2018

Does the combination of DFT or classical MD with McStas for modeling experimental data sound interesting?

If so, please consider participating in the MDANSE 2018 event in Tenerife this fall. Registration closes on May 31st 2018.

(You can also read more in this a post to mcstas-users)


April 30th, 2018: Release 2.4.1 works OK on Ubuntu 18.04 + a workaround

Dear all,

I have tested McStas 2.4.1 with the recent Ubuntu 18.04 LTS "bionic beaver", and the usual installation recipe works.

The only found issue so far relates to the behaviour of the Perl+PGPLOT mcplot.pl plotter which out of the box fails with the error message: "%giza - ERROR - giza_open_device: Unknown device, device not opened" (see below graphics also).


(In fact the problem was known already for Debian testing, see our related GitHub issue)

The following solutions/workarounds exist:

  1. Recommended:
    Use the Python-based pyqtgraph plotter instead, i.e. mcplot (or mcplot-pyqtgraph). This would give you graphics like this:
  2. Configure pgplot/giza for "XWIN" driver:
    Either edit your /usr/share/mcstas/2.4.1/tools/Perl/perl/mccode_config.perl replacing XSERV with XWIN or set the related environment variable in the shell, i.e.
    export PGPLOT_DEV=/XWIN
    The solution will give you this appearance:
  3. Force-configure to use the legacy PGPLOT:
    Use these commands in a shell and get your "normal" PGPLOT window back
    • cd /usr/lib/x86_64-linux-gnu
    • sudo ln -sf ../libpgplot.so libpgplot.so.0
    • sudo ln -sf ../libcpgplot.so libcpgplot.so.0
    The solution will give you this appearance (as usual):

March 2018: McStas-McXtrace team participates in GPU Hackathon

As some of you may have already seen via our facebook page or on twitter, a joint McStas-McXtrace team visited the 2018 GPU Hackathon in Dresden in March.

We can not a such claim that the software fully runs on NVIDIA GPU's, but we certainly gained knowledge and will investigate further. :-)

The team pariticpating in Dresden were

  • DTU: Peter Willendrup, Jakob Garde, DTU Physics and Giovanni Fevola, DTU Energy
  • ILL: Emmannuel Farhi, ILL Spectroscopy Group / Computing for Science
  • UCPH: Mads Bertelsen, Niels Bohr Institute

Here is a few photos from the event - and also a PDF from the final presentation, put together by Mads Bertelsen, University of Copenhagen


Previous news items: 2017, 2016, 2015, 2014, 2013, 2012, 2011, 2010, 2009, 2008, 2007, 2006, 2005, 2004, 2003,2002, 2001, 2000, 1999, 1998.


Last Modified: Saturday, 29-Sep-2018 23:13:02 CEST
Search website mailinglist archive GitHub repos