From pkwi at dtu.dk Wed Jan 8 09:55:10 2025
From: pkwi at dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=)
Date: Wed, 8 Jan 2025 08:55:10 +0000
Subject: [mcstas-users] Monte Carlo Simulation Satellite to ICNS2025
References: <51b7f336e4b84804b07ccf1b59600281@it-exch16-4.esss.lu.se>
Message-ID: <4EF265D7-A422-446D-B014-79C3F6E15D25@dtu.dk>
Dear all,
The ICNS2025 conference (https://icns2025.org) is taking place in Copenhagen and Lund this summer, and the abstract submission is closing January 8th - today.
Of special interest to McStas users:
A satellite event is being planned for July 11th, arranged by Mads Bertelsen, ESS and Peter Willendrup DTU/ESS.
We envision a one-day event with contributed talks on instrument simulation and its use, abstract submission will open soon:
_________________
Advanced computer simulations methods for neutron scattering instruments
Abstract:
Neutron scattering relies heavily on computer simulations of neutron scattering instrumentation to optimize their performance. These simulation tools are also evolving to be more relevant for a running facility, aiding in both preparation and analysis for individual experiments. It is even becoming possible to make better decisions during experiments by running simulations in parallel.
_________________
All the best and hope to see you this summer in Copenhagen,
Peter Willendrup
Peter Kj?r Willendrup
Forskningsingeni?r, Specialkonsulent
DTU Physics
[image001.gif]
Technical University of Denmark
[image002.gif]
Department of Physics
Fysikvej
Building 307
DK-2800 Kongens Lyngby
Main office at
ESS DMSC
Building 305
DK-2800 Kongens Lyngby
Direct +45 2125 4612
Mobil +45 2125 4612
Fax +45 4593 2399
pkwi at fysik.dtu.dk
Peter Kj?r Willendrup
Forskningsingeni?r, Specialkonsulent
DTU Physics
[image001.gif]
Technical University of Denmark
[image002.gif]
Department of Physics
Fysikvej
Building 307
DK-2800 Kongens Lyngby
Main office at
ESS DMSC
Building 305
DK-2800 Kongens Lyngby
Direct +45 2125 4612
Mobil +45 2125 4612
Fax +45 4593 2399
pkwi at fysik.dtu.dk
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 58 bytes
Desc: image001.gif
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 1055 bytes
Desc: image002.gif
URL:
From pkwi at dtu.dk Fri Jan 10 15:34:14 2025
From: pkwi at dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=)
Date: Fri, 10 Jan 2025 14:34:14 +0000
Subject: [mcstas-users] Monte Carlo Simulation Satellite to ICNS2025
In-Reply-To: <4EF265D7-A422-446D-B014-79C3F6E15D25@dtu.dk>
References: <51b7f336e4b84804b07ccf1b59600281@it-exch16-4.esss.lu.se>
<4EF265D7-A422-446D-B014-79C3F6E15D25@dtu.dk>
Message-ID: <5AC9D803-81C1-4F89-A4DC-2FDD22B8EA59@dtu.dk>
Dear all,
An indico event page for the ICNS satellite workshop:
Advanced computer simulations methods for neutron scattering instruments has now been set up at
https://indico.ess.eu/event/3718/
The event is a satellite workshop of ICNS 2025 which will take place in Copenhagen and Lund on July 7-10, 2025. The purpose is to share knowledge on simulation tools for simulation of neutron scattering instrumentation. The event will be held on the day after ICNS, 11th of July and take place in the Copenhagen area. While it is a satellite event to ICNS, attendance of the main conference is not a requirement to participate in this event.
The event will consist of talks and a poster session during lunch.
The theme will be on simulation of neutron scattering instrumentation and contributions can include anything relevant to this endeavour.
Registration and abstract submission is now open! Abstract submission to end 10th of February.
Best regards
Peter Willendrup
( P.s.: please also note that the ICNS abstract submission is also still open - closes January 15th. )
On 8 Jan 2025, at 09.55, Peter Kj?r Willendrup via mcstas-users wrote:
Dear all,
The ICNS2025 conference (https://icns2025.org) is taking place in Copenhagen and Lund this summer, and the abstract submission is closing January 8th - today.
Of special interest to McStas users:
A satellite event is being planned for July 11th, arranged by Mads Bertelsen, ESS and Peter Willendrup DTU/ESS.
We envision a one-day event with contributed talks on instrument simulation and its use, abstract submission will open soon:
_________________
Advanced computer simulations methods for neutron scattering instruments
Abstract:
Neutron scattering relies heavily on computer simulations of neutron scattering instrumentation to optimize their performance. These simulation tools are also evolving to be more relevant for a running facility, aiding in both preparation and analysis for individual experiments. It is even becoming possible to make better decisions during experiments by running simulations in parallel.
_________________
All the best and hope to see you this summer in Copenhagen,
Peter Willendrup
Peter Kj?r Willendrup
Forskningsingeni?r, Specialkonsulent
DTU Physics
Technical University of Denmark
Department of Physics
Fysikvej
Building 307
DK-2800 Kongens Lyngby
Main office at
ESS DMSC
Building 305
DK-2800 Kongens Lyngby
Direct +45 2125 4612
Mobil +45 2125 4612
Fax +45 4593 2399
pkwi at fysik.dtu.dk
Peter Kj?r Willendrup
Forskningsingeni?r, Specialkonsulent
DTU Physics
Technical University of Denmark
Department of Physics
Fysikvej
Building 307
DK-2800 Kongens Lyngby
Main office at
ESS DMSC
Building 305
DK-2800 Kongens Lyngby
Direct +45 2125 4612
Mobil +45 2125 4612
Fax +45 4593 2399
pkwi at fysik.dtu.dk
_______________________________________________
mcstas-users mailing list
mcstas-users at mcstas.org
https://mailman2.mcstas.org/mailman/listinfo/mcstas-users
Peter Kj?r Willendrup
Forskningsingeni?r, Specialkonsulent
DTU Physics
[image001.gif]
Technical University of Denmark
[image002.gif]
Department of Physics
Fysikvej
Building 307
DK-2800 Kongens Lyngby
Main office at
ESS DMSC
Building 305
DK-2800 Kongens Lyngby
Direct +45 2125 4612
Mobil +45 2125 4612
Fax +45 4593 2399
pkwi at fysik.dtu.dk
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 58 bytes
Desc: image001.gif
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 1055 bytes
Desc: image002.gif
URL:
From pkwi at dtu.dk Wed Feb 19 13:14:47 2025
From: pkwi at dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=)
Date: Wed, 19 Feb 2025 12:14:47 +0000
Subject: [mcstas-users] McStas and McXtrace 3.5.24 released
Message-ID:
Dear all,
McStas and McXtrace release 3.5.24 is now available:
What's Changed
Important note
* McStas and McXtrace will soon change organisation-name on GitHub - from McStasMcXtrace -> mccode-dev
mcxUser interfaces and tools
* [Feature] mcgui/mxgui Let configuration dialogue spawn your EDITOR to edit your local mccode_config.json by @willend in https://github.com/McStasMcXtrace/McCode/pull/1838 (available also by --edit-user-config from mcrun/mxrun)
* [Feature] mcrun/mxrun: New switch --cogen to allow on-demand switch to non-standard code generator. See also interoperability with mccode-antlr below by @willend in https://github.com/McStasMcXtrace/McCode/pull/1851
* [Feature] mcrun/mxrun Solution for picking up code generator from PATH if not found where expected by @willend in https://github.com/McStasMcXtrace/McCode/pull/1840
* [Feature] pygen minor revision: Build importable make() function and call from generic notebook by @willend in https://github.com/McStasMcXtrace/McCode/pull/1827
* [Fix] Support Scintilla editor on Debian with Qt6 by @willend in https://github.com/McStasMcXtrace/McCode/pull/1813
* [Fix] Drop hard-coded check for PyQt5 by @willend in https://github.com/McStasMcXtrace/McCode/pull/1814
* [Fix] No more hidden Perl dependencies! (perl -> python 1-liner readlinkf()) by @willend in https://github.com/McStasMcXtrace/McCode/pull/1824
* [Fix] too-restrictive mcdisplay/mxdisplay instrument line parsing by @g5t in https://github.com/McStasMcXtrace/McCode/pull/1834
* [Fix] Patches for mcdisplay/mxdisplay in Windows from @LelandWH https://github.com/McStasMcXtrace/McCode/issues/1853
Components and instruments
* [Fix] McStas Vertical_bender: Add max iteration criterion for while loop (default 1000). by @willend in https://github.com/McStasMcXtrace/McCode/pull/1815
* [Fix] McStas NCrystal_sample: Remove possible out-of-bounds memory access by @g5t in https://github.com/McStasMcXtrace/McCode/pull/1821
* [Fix] McStas Elliptic_guide_gravity and Pol_mirror: Minor comp revisions, suppresses compilation warnings from clang by @willend in https://github.com/McStasMcXtrace/McCode/pull/1826
* [Fix] McStas SNS_ARCS.instr edits by @willend in https://github.com/McStasMcXtrace/McCode/pull/1838
* [Fix] McStas ISIS_IMAT.instr DEPENDENCY " @NEXUSFLAGS@ " added by @willend in https://github.com/McStasMcXtrace/McCode/pull/1839
* [Fix] McStas Union_master Adjustment of default parameter by @willend in https://github.com/McStasMcXtrace/McCode/pull/1840
* [Fix] McStas Union-related fixes and imports from DMSC school by @willend in https://github.com/McStasMcXtrace/McCode/pull/1841
* [Fix] McStas Elliptical_guide_gravity did not work in GROUPS as it always SCATTERS by @mads-bertelsen in https://github.com/McStasMcXtrace/McCode/pull/1843
* [Fix] Monitor_nD on GPU: Adjustments for coherence between CPU and GPU particle lists by @willend in https://github.com/McStasMcXtrace/McCode/pull/1816
Core simulation toolkit
* [Feature] NeXus: sort comp instances by index and include comp parameter information by @willend in https://github.com/McStasMcXtrace/McCode/pull/1828
* [Fix] Increased stability in NeXus x wide MPI by @willend in https://github.com/McStasMcXtrace/McCode/pull/1811
* [Fix] Portability, Windows + cl.exe: Remove variable length array allocations for issue #1817 by @g5t in https://github.com/McStasMcXtrace/McCode/pull/1819 andhttps://github.com/McStasMcXtrace/McCode/issues/1818 by @willend in https://github.com/McStasMcXtrace/McCode/pull/1822
Interfaces and interoperability with other codes
NCrystal
* Thanks to @tkittel for ping-pong on this :)
* [Feature] McStas 3.5.24 and later now depends on NCrystal 4.0.0 and later. NCrystal is now available also on Windows! by @willend in https://github.com/McStasMcXtrace/McCode/pull/1848 and https://github.com/McStasMcXtrace/McCode/pull/1855
mccode-antlr
* Thanks to @g5t for ping-pong on this :)
* [Feature] mccode-antlr is an alternative code-generator for McStas and McXtrace - a new development by @g5t and based on ANTLR instead of lex/yacc. The new tool is mainly written in python and thus has a lower barrier for changes in language syntax and code generation. The tool implementations mcstas-antlr and mcxtrace-antlr are thus a candidate implementations to potentially replace the classic mcstas and mcxtrace code generators in the future. Current status is that
* McStas: mcstas-antlr is fully feature complete wrt. mcstas for CPU simulations and close to complete for GPU simulations
* McXtrace: Not all instruments will compile using mcxtrace-antlr but basic functionality is in place
* To try:
* Install mccode-antlr from conda-forge or via pip
* Adapt your configuration to use e.g. mcstas-antlr by
* Setting the new --cogen=mcstas-antlr option in mcrun
* Enable or edit the MCCOGEN field of mccode_config.json using the new Save/Edit configuration in mcgui
* (The antlr tools default to download comps etc. to an internal cache: Add e.g. -I${MCSTAS} to prefer ingredients fromyour local library)
* Use the mcrun-antlr/mxrun-antlr tools provided directly by mccode-antlr
Platform support
* Debian/Ubuntu
* [Fix] Make hidden numpy dependency explicit also on Debian by @willend in https://github.com/McStasMcXtrace/McCode/pull/1825
* [Fix] McXtrace meta-pkgs for Debian add libgsl-dev as dependency by @farhi in https://github.com/McStasMcXtrace/McCode/pull/185
* Windows
* [Feature] NCrystal is now available with McStas on Windows
* [Info] Windows via cross-compiled .exeinstaller from mccode.org: Please place the MCPL-related .bat files from the extras folder in e.g. c:\mcstas-3.5.24\bin to enable MCPL (May require giving your user 'full access' permissions to the bin folder)
* [Info] Windows via conda-forge: MCPL is not yet available but expected during the spring
Full Changelog: https://github.com/McStasMcXtrace/McCode/compare/v3.5.16...v3.5.24
All the best from the McStas/McXtrace team,
Peter Kj?r Willendrup
Forskningsingeni?r, Specialkonsulent
DTU Physics
[image001.gif]
Technical University of Denmark
[image002.gif]
Department of Physics
Fysikvej
Building 307
DK-2800 Kongens Lyngby
Main office at
ESS DMSC
Building 305
DK-2800 Kongens Lyngby
Direct +45 2125 4612
Mobil +45 2125 4612
Fax +45 4593 2399
pkwi at fysik.dtu.dk
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 58 bytes
Desc: image001.gif
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 1055 bytes
Desc: image002.gif
URL:
From pkwi at dtu.dk Mon Mar 10 16:19:01 2025
From: pkwi at dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=)
Date: Mon, 10 Mar 2025 15:19:01 +0000
Subject: [mcstas-users] Monte Carlo Simulation Satellite to ICNS2025
In-Reply-To: <68C904DA-293D-4F80-8CF9-0ACB9E6E5B92@dtu.dk>
References: <51b7f336e4b84804b07ccf1b59600281@it-exch16-4.esss.lu.se>
<4EF265D7-A422-446D-B014-79C3F6E15D25@dtu.dk>
<5AC9D803-81C1-4F89-A4DC-2FDD22B8EA59@dtu.dk>
<68C904DA-293D-4F80-8CF9-0ACB9E6E5B92@dtu.dk>
Message-ID:
Hello again,
Due to a mail-server move at ESS DMSC a few messages may be lost from the mailman archive at
https://mailman2.mcstas.org/pipermail/mcstas-users/2025q1/
This message is simply to trigger that the below reminder is present in our web-archive.
Best,
Peter
On 6 Mar 2025, at 11.17, Peter Kj?r Willendrup wrote:
Dear all,
For your information we are still accepting abstracts and registrations for the ICNS 2025 satellite
Advanced computer simulations methods for neutron scattering instruments
https://indico.ess.eu/event/3718/
- we will likely keep this open throughout the spring, but will report back when we are reaching the physical participation limit.
(For your information the ICNS 2025 conference is still accepting poster abstracts - deadline on March 20th).
Best,
Peter Willendrup
On 10 Jan 2025, at 15.34, Peter Kj?r Willendrup wrote:
Dear all,
An indico event page for the ICNS satellite workshop:
Advanced computer simulations methods for neutron scattering instruments has now been set up at
https://indico.ess.eu/event/3718/
The event is a satellite workshop of ICNS 2025 which will take place in Copenhagen and Lund on July 7-10, 2025. The purpose is to share knowledge on simulation tools for simulation of neutron scattering instrumentation. The event will be held on the day after ICNS, 11th of July and take place in the Copenhagen area. While it is a satellite event to ICNS, attendance of the main conference is not a requirement to participate in this event.
The event will consist of talks and a poster session during lunch.
The theme will be on simulation of neutron scattering instrumentation and contributions can include anything relevant to this endeavour.
Registration and abstract submission is now open! Abstract submission to end 10th of February.
Best regards
Peter Willendrup
( P.s.: please also note that the ICNS abstract submission is also still open - closes January 15th. )
On 8 Jan 2025, at 09.55, Peter Kj?r Willendrup via mcstas-users wrote:
Dear all,
The ICNS2025 conference (https://icns2025.org) is taking place in Copenhagen and Lund this summer, and the abstract submission is closing January 8th - today.
Of special interest to McStas users:
A satellite event is being planned for July 11th, arranged by Mads Bertelsen, ESS and Peter Willendrup DTU/ESS.
We envision a one-day event with contributed talks on instrument simulation and its use, abstract submission will open soon:
_________________
Advanced computer simulations methods for neutron scattering instruments
Abstract:
Neutron scattering relies heavily on computer simulations of neutron scattering instrumentation to optimize their performance. These simulation tools are also evolving to be more relevant for a running facility, aiding in both preparation and analysis for individual experiments. It is even becoming possible to make better decisions during experiments by running simulations in parallel.
_________________
All the best and hope to see you this summer in Copenhagen,
Peter Willendrup
Peter Kj?r Willendrup
Forskningsingeni?r, Specialkonsulent
DTU Physics
Technical University of Denmark
Department of Physics
Fysikvej
Building 307
DK-2800 Kongens Lyngby
Main office at
ESS DMSC
Building 305
DK-2800 Kongens Lyngby
Direct +45 2125 4612
Mobil +45 2125 4612
Fax +45 4593 2399
pkwi at fysik.dtu.dk
Peter Kj?r Willendrup
Forskningsingeni?r, Specialkonsulent
DTU Physics
Technical University of Denmark
Department of Physics
Fysikvej
Building 307
DK-2800 Kongens Lyngby
Main office at
ESS DMSC
Building 305
DK-2800 Kongens Lyngby
Direct +45 2125 4612
Mobil +45 2125 4612
Fax +45 4593 2399
pkwi at fysik.dtu.dk
_______________________________________________
mcstas-users mailing list
mcstas-users at mcstas.org
https://mailman2.mcstas.org/mailman/listinfo/mcstas-users
Peter Kj?r Willendrup
Forskningsingeni?r, Specialkonsulent
DTU Physics
Technical University of Denmark
Department of Physics
Fysikvej
Building 307
DK-2800 Kongens Lyngby
Main office at
ESS DMSC
Building 305
DK-2800 Kongens Lyngby
Direct +45 2125 4612
Mobil +45 2125 4612
Fax +45 4593 2399
pkwi at fysik.dtu.dk
Peter Kj?r Willendrup
Forskningsingeni?r, Specialkonsulent
DTU Physics
Technical University of Denmark
Department of Physics
Fysikvej
Building 307
DK-2800 Kongens Lyngby
Main office at
ESS DMSC
Building 305
DK-2800 Kongens Lyngby
Direct +45 2125 4612
Mobil +45 2125 4612
Fax +45 4593 2399
pkwi at fysik.dtu.dk
Peter Kj?r Willendrup
Forskningsingeni?r, Specialkonsulent
DTU Physics
[image001.gif]
Technical University of Denmark
[image002.gif]
Department of Physics
Fysikvej
Building 307
DK-2800 Kongens Lyngby
Main office at
ESS DMSC
Building 305
DK-2800 Kongens Lyngby
Direct +45 2125 4612
Mobil +45 2125 4612
Fax +45 4593 2399
pkwi at fysik.dtu.dk
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 58 bytes
Desc: image001.gif
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 1055 bytes
Desc: image002.gif
URL:
From 104pet104 at gmail.com Thu Mar 13 15:02:41 2025
From: 104pet104 at gmail.com (=?utf-8?B?0J/QtdGC0YAg0JrQvtC90LjQug==?=)
Date: Thu, 13 Mar 2025 15:02:41 +0100
Subject: [mcstas-users] McStas Script troubles
Message-ID: <3DEE6EAF-77F0-4FF5-A1A8-2BC2A6B0D17B@gmail.com>
Hi everyone!
I was trying to help a colleague of mine to use McStas script, but we immediately run into problems when trying to write path in configurator. In the documentation it is recommended to use the result of which mcrun command, but here is what we get
which: no macrun in (/cygdrive/c/mcstas-3.5.24/bin:/cygdrive/c/mcstas-3.5.24/miniconda3:/mingw-w64/bin:/usr/bin:/bin:/cygdrive/c/mcstas-3.5.24/miniconda3/Scripts:/cygdrive/c/mcstas-3.5.24/miniconda3/bin:/cygdrive/c/mcstas-3.5.24/miniconda3/condabin:/cygdrive/c/mcstas-3.5.24/bin:/cygdrive/c/mcstas-3.5.24/miniconda3:/cygdrive/c/mcstas-3.5.24/miniconda3/Scripts:/bin:/mingw-w64/bin:/cygdrive/c/Microsoft MPI/Bin:/cygdrive/c/Program Files/Eclipse Adoptium/jre-8.0.382.5-hotspot/bin:/cygdrive/c/Program Files/Eclipse Adoptium/jre-17.0.8.7-hotspot/bin:/cygdrive/c/Program Files/Eclipse Adoptium/jre-11.0.20.8-hotspot/bin:/cygdrive/c/Program Files (x86)/Eclipse Adoptium/jre-8.0.382.5-hotspot/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/WINDOWS/System32/WindowsPowerShell/v1.0:/cygdrive/c/WINDOWS/System32/OpenSSH:/cygdrive/c/Program Files/gs/gs10.00.0/bin:/cygdrive/c/Program Files/Fullprof:/cygdrive/c/Program Files/MATLAB/R2023b/runtime/win64:/cygdrive/c/Program Files/MATLAB/R2023b/bin:/cygdrive/c/MATLAB/runtime/win64:/cygdrive/c/MATLAB/bin:/cygdrive/c/Program Files/MATLAB/R2017a/runtime/win64:/cygdrive/c/Program Files/MATLAB/R2017a/bin:/cygdrive/c/Program Files/PuTTY:/cygdrive/c/Users/deepak/AppData/Local/Microsoft/WindowsApps:.)
McStas itself runs good and we have no troubles there.
Best regards,
Peter Konik
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From pkwi at dtu.dk Thu Mar 13 16:21:11 2025
From: pkwi at dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=)
Date: Thu, 13 Mar 2025 15:21:11 +0000
Subject: [mcstas-users] McStas Script troubles
In-Reply-To: <3DEE6EAF-77F0-4FF5-A1A8-2BC2A6B0D17B@gmail.com>
References: <3DEE6EAF-77F0-4FF5-A1A8-2BC2A6B0D17B@gmail.com>
Message-ID: <9AF0580E-B556-4840-87D3-36CA1AE8F83D@dtu.dk>
Hi Peter,
No configuration needed any longer - as long as you run McStasScript from within the ?McStas shell?. - Jupyterlab and all bells and whistles are also included. Simply run
?jupyter lab? in the shell and you should be good!
As an example - the attached screenshot was produced under Windows by
1. Loading an instrument file in mcgui
2. Pressing the ?Pylab? button (converts the loaded instr to McStasScript format and runs jupyter on it)
Best,
Peter
[Screenshot 2025-03-13 at 16.17.41.png]
On 13 Mar 2025, at 15.02, ???? ????? via mcstas-users wrote:
Hi everyone!
I was trying to help a colleague of mine to use McStas script, but we immediately run into problems when trying to write path in configurator. In the documentation it is recommended to use the result of which mcrun command, but here is what we get
which: no macrun in (/cygdrive/c/mcstas-3.5.24/bin:/cygdrive/c/mcstas-3.5.24/miniconda3:/mingw-w64/bin:/usr/bin:/bin:/cygdrive/c/mcstas-3.5.24/miniconda3/Scripts:/cygdrive/c/mcstas-3.5.24/miniconda3/bin:/cygdrive/c/mcstas-3.5.24/miniconda3/condabin:/cygdrive/c/mcstas-3.5.24/bin:/cygdrive/c/mcstas-3.5.24/miniconda3:/cygdrive/c/mcstas-3.5.24/miniconda3/Scripts:/bin:/mingw-w64/bin:/cygdrive/c/Microsoft MPI/Bin:/cygdrive/c/Program Files/Eclipse Adoptium/jre-8.0.382.5-hotspot/bin:/cygdrive/c/Program Files/Eclipse Adoptium/jre-17.0.8.7-hotspot/bin:/cygdrive/c/Program Files/Eclipse Adoptium/jre-11.0.20.8-hotspot/bin:/cygdrive/c/Program Files (x86)/Eclipse Adoptium/jre-8.0.382.5-hotspot/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/WINDOWS/System32/WindowsPowerShell/v1.0:/cygdrive/c/WINDOWS/System32/OpenSSH:/cygdrive/c/Program Files/gs/gs10.00.0/bin:/cygdrive/c/Program Files/Fullprof:/cygdrive/c/Program Files/MATLAB/R2023b/runtime/win64:/cygdrive/c/Program Files/MATLAB/R2023b/bin:/cygdrive/c/MATLAB/runtime/win64:/cygdrive/c/MATLAB/bin:/cygdrive/c/Program Files/MATLAB/R2017a/runtime/win64:/cygdrive/c/Program Files/MATLAB/R2017a/bin:/cygdrive/c/Program Files/PuTTY:/cygdrive/c/Users/deepak/AppData/Local/Microsoft/WindowsApps:.)
McStas itself runs good and we have no troubles there.
Best regards,
Peter Konik
_______________________________________________
mcstas-users mailing list
mcstas-users at mcstas.org
https://mailman2.mcstas.org/mailman/listinfo/mcstas-users
Peter Kj?r Willendrup
Forskningsingeni?r, Specialkonsulent
DTU Physics
[image001.gif]
Technical University of Denmark
[image002.gif]
Department of Physics
Fysikvej
Building 307
DK-2800 Kongens Lyngby
Main office at
ESS DMSC
Building 305
DK-2800 Kongens Lyngby
Direct +45 2125 4612
Mobil +45 2125 4612
Fax +45 4593 2399
pkwi at fysik.dtu.dk
Peter Kj?r Willendrup
Forskningsingeni?r, Specialkonsulent
DTU Physics
[image001.gif]
Technical University of Denmark
[image002.gif]
Department of Physics
Fysikvej
Building 307
DK-2800 Kongens Lyngby
Main office at
ESS DMSC
Building 305
DK-2800 Kongens Lyngby
Direct +45 2125 4612
Mobil +45 2125 4612
Fax +45 4593 2399
pkwi at fysik.dtu.dk
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot 2025-03-13 at 16.17.41.png
Type: image/png
Size: 242689 bytes
Desc: Screenshot 2025-03-13 at 16.17.41.png
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 58 bytes
Desc: image001.gif
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 1055 bytes
Desc: image002.gif
URL:
From 104pet104 at gmail.com Thu Mar 13 17:08:02 2025
From: 104pet104 at gmail.com (=?utf-8?B?0J/QtdGC0YAg0JrQvtC90LjQug==?=)
Date: Thu, 13 Mar 2025 17:08:02 +0100
Subject: [mcstas-users] McStas Script troubles
In-Reply-To: <9AF0580E-B556-4840-87D3-36CA1AE8F83D@dtu.dk>
References: <3DEE6EAF-77F0-4FF5-A1A8-2BC2A6B0D17B@gmail.com>
<9AF0580E-B556-4840-87D3-36CA1AE8F83D@dtu.dk>
Message-ID: <93D5AB28-4145-404C-8FC7-1F740F5C53AC@gmail.com>
Hi Peter!
Thanks a lot, worked like charm!
Best,
PK
> On 2025. Mar 13., at 16:21, Peter Kj?r Willendrup wrote:
>
> Hi Peter,
>
>
> No configuration needed any longer - as long as you run McStasScript from within the ?McStas shell?. - Jupyterlab and all bells and whistles are also included. Simply run
>
> ?jupyter lab? in the shell and you should be good!
>
>
> As an example - the attached screenshot was produced under Windows by
>
> 1. Loading an instrument file in mcgui
> 2. Pressing the ?Pylab? button (converts the loaded instr to McStasScript format and runs jupyter on it)
>
>
> Best,
> Peter
>
>
>
>
>> On 13 Mar 2025, at 15.02, ???? ????? via mcstas-users wrote:
>>
>> Hi everyone!
>>
>> I was trying to help a colleague of mine to use McStas script, but we immediately run into problems when trying to write path in configurator. In the documentation it is recommended to use the result of which mcrun command, but here is what we get
>>
>> which: no macrun in (/cygdrive/c/mcstas-3.5.24/bin:/cygdrive/c/mcstas-3.5.24/miniconda3:/mingw-w64/bin:/usr/bin:/bin:/cygdrive/c/mcstas-3.5.24/miniconda3/Scripts:/cygdrive/c/mcstas-3.5.24/miniconda3/bin:/cygdrive/c/mcstas-3.5.24/miniconda3/condabin:/cygdrive/c/mcstas-3.5.24/bin:/cygdrive/c/mcstas-3.5.24/miniconda3:/cygdrive/c/mcstas-3.5.24/miniconda3/Scripts:/bin:/mingw-w64/bin:/cygdrive/c/Microsoft MPI/Bin:/cygdrive/c/Program Files/Eclipse Adoptium/jre-8.0.382.5-hotspot/bin:/cygdrive/c/Program Files/Eclipse Adoptium/jre-17.0.8.7-hotspot/bin:/cygdrive/c/Program Files/Eclipse Adoptium/jre-11.0.20.8-hotspot/bin:/cygdrive/c/Program Files (x86)/Eclipse Adoptium/jre-8.0.382.5-hotspot/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/WINDOWS/System32/WindowsPowerShell/v1.0:/cygdrive/c/WINDOWS/System32/OpenSSH:/cygdrive/c/Program Files/gs/gs10.00.0/bin:/cygdrive/c/Program Files/Fullprof:/cygdrive/c/Program Files/MATLAB/R2023b/runtime/win64:/cygdrive/c/Program Files/MATLAB/R2023b/bin:/cygdrive/c/MATLAB/runtime/win64:/cygdrive/c/MATLAB/bin:/cygdrive/c/Program Files/MATLAB/R2017a/runtime/win64:/cygdrive/c/Program Files/MATLAB/R2017a/bin:/cygdrive/c/Program Files/PuTTY:/cygdrive/c/Users/deepak/AppData/Local/Microsoft/WindowsApps:.)
>>
>> McStas itself runs good and we have no troubles there.
>>
>> Best regards,
>> Peter Konik
>> _______________________________________________
>> mcstas-users mailing list
>> mcstas-users at mcstas.org
>> https://mailman2.mcstas.org/mailman/listinfo/mcstas-users
>
>
>
>
> Peter Kj?r Willendrup
> Forskningsingeni?r, Specialkonsulent
>
> DTU Physics
>
>
>
>
> Technical University of Denmark
>
>
>
>
>
> Department of Physics
> Fysikvej
> Building 307
> DK-2800 Kongens Lyngby
>
> Main office at
> ESS DMSC
> Building 305
> DK-2800 Kongens Lyngby
>
> Direct +45 2125 4612
> Mobil +45 2125 4612
> Fax +45 4593 2399
> pkwi at fysik.dtu.dk
>
>
>
>
> Peter Kj?r Willendrup
> Forskningsingeni?r, Specialkonsulent
>
> DTU Physics
>
>
>
>
> Technical University of Denmark
>
>
>
>
>
> Department of Physics
> Fysikvej
> Building 307
> DK-2800 Kongens Lyngby
>
> Main office at
> ESS DMSC
> Building 305
> DK-2800 Kongens Lyngby
>
> Direct +45 2125 4612
> Mobil +45 2125 4612
> Fax +45 4593 2399
> pkwi at fysik.dtu.dk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From 104pet104 at gmail.com Thu Mar 13 17:08:02 2025
From: 104pet104 at gmail.com (=?utf-8?B?0J/QtdGC0YAg0JrQvtC90LjQug==?=)
Date: Thu, 13 Mar 2025 17:08:02 +0100
Subject: [mcstas-users] McStas Script troubles
In-Reply-To: <9AF0580E-B556-4840-87D3-36CA1AE8F83D@dtu.dk>
References: <3DEE6EAF-77F0-4FF5-A1A8-2BC2A6B0D17B@gmail.com>
<9AF0580E-B556-4840-87D3-36CA1AE8F83D@dtu.dk>
Message-ID: <93D5AB28-4145-404C-8FC7-1F740F5C53AC@gmail.com>
Hi Peter!
Thanks a lot, worked like charm!
Best,
PK
> On 2025. Mar 13., at 16:21, Peter Kj?r Willendrup wrote:
>
> Hi Peter,
>
>
> No configuration needed any longer - as long as you run McStasScript from within the ?McStas shell?. - Jupyterlab and all bells and whistles are also included. Simply run
>
> ?jupyter lab? in the shell and you should be good!
>
>
> As an example - the attached screenshot was produced under Windows by
>
> 1. Loading an instrument file in mcgui
> 2. Pressing the ?Pylab? button (converts the loaded instr to McStasScript format and runs jupyter on it)
>
>
> Best,
> Peter
>
>
>
>
>> On 13 Mar 2025, at 15.02, ???? ????? via mcstas-users wrote:
>>
>> Hi everyone!
>>
>> I was trying to help a colleague of mine to use McStas script, but we immediately run into problems when trying to write path in configurator. In the documentation it is recommended to use the result of which mcrun command, but here is what we get
>>
>> which: no macrun in (/cygdrive/c/mcstas-3.5.24/bin:/cygdrive/c/mcstas-3.5.24/miniconda3:/mingw-w64/bin:/usr/bin:/bin:/cygdrive/c/mcstas-3.5.24/miniconda3/Scripts:/cygdrive/c/mcstas-3.5.24/miniconda3/bin:/cygdrive/c/mcstas-3.5.24/miniconda3/condabin:/cygdrive/c/mcstas-3.5.24/bin:/cygdrive/c/mcstas-3.5.24/miniconda3:/cygdrive/c/mcstas-3.5.24/miniconda3/Scripts:/bin:/mingw-w64/bin:/cygdrive/c/Microsoft MPI/Bin:/cygdrive/c/Program Files/Eclipse Adoptium/jre-8.0.382.5-hotspot/bin:/cygdrive/c/Program Files/Eclipse Adoptium/jre-17.0.8.7-hotspot/bin:/cygdrive/c/Program Files/Eclipse Adoptium/jre-11.0.20.8-hotspot/bin:/cygdrive/c/Program Files (x86)/Eclipse Adoptium/jre-8.0.382.5-hotspot/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/WINDOWS/System32/WindowsPowerShell/v1.0:/cygdrive/c/WINDOWS/System32/OpenSSH:/cygdrive/c/Program Files/gs/gs10.00.0/bin:/cygdrive/c/Program Files/Fullprof:/cygdrive/c/Program Files/MATLAB/R2023b/runtime/win64:/cygdrive/c/Program Files/MATLAB/R2023b/bin:/cygdrive/c/MATLAB/runtime/win64:/cygdrive/c/MATLAB/bin:/cygdrive/c/Program Files/MATLAB/R2017a/runtime/win64:/cygdrive/c/Program Files/MATLAB/R2017a/bin:/cygdrive/c/Program Files/PuTTY:/cygdrive/c/Users/deepak/AppData/Local/Microsoft/WindowsApps:.)
>>
>> McStas itself runs good and we have no troubles there.
>>
>> Best regards,
>> Peter Konik
>> _______________________________________________
>> mcstas-users mailing list
>> mcstas-users at mcstas.org
>> https://mailman2.mcstas.org/mailman/listinfo/mcstas-users
>
>
>
>
> Peter Kj?r Willendrup
> Forskningsingeni?r, Specialkonsulent
>
> DTU Physics
>
>
>
>
> Technical University of Denmark
>
>
>
>
>
> Department of Physics
> Fysikvej
> Building 307
> DK-2800 Kongens Lyngby
>
> Main office at
> ESS DMSC
> Building 305
> DK-2800 Kongens Lyngby
>
> Direct +45 2125 4612
> Mobil +45 2125 4612
> Fax +45 4593 2399
> pkwi at fysik.dtu.dk
>
>
>
>
> Peter Kj?r Willendrup
> Forskningsingeni?r, Specialkonsulent
>
> DTU Physics
>
>
>
>
> Technical University of Denmark
>
>
>
>
>
> Department of Physics
> Fysikvej
> Building 307
> DK-2800 Kongens Lyngby
>
> Main office at
> ESS DMSC
> Building 305
> DK-2800 Kongens Lyngby
>
> Direct +45 2125 4612
> Mobil +45 2125 4612
> Fax +45 4593 2399
> pkwi at fysik.dtu.dk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From emmanuel.farhi at synchrotron-soleil.fr Wed Mar 19 12:26:23 2025
From: emmanuel.farhi at synchrotron-soleil.fr (Emmanuel FARHI)
Date: Wed, 19 Mar 2025 12:26:23 +0100
Subject: [mcstas-users] [SPAM] Job opening at SOLEIL
Message-ID: <599ad040-8e97-4b3a-9f6f-eff7b478903e@synchrotron-soleil.fr>
Spam detection software, running on the system "mx3.esss.dk",
has identified this incoming email as possible spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
@@CONTACT_ADDRESS@@ for details.
Content preview: Hello, We are opening a permanent position at Synchrotron
SOLEIL (close to Paris) in our data analysis group. The object will be to
provide and maintain scientific applications for our remote data treatment
service (including McStas/McXtrace, and many more). [...]
Content analysis details: (5.2 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
2.4 DNS_FROM_AHBL_RHSBL RBL: Envelope sender listed in dnsbl.ahbl.org
[listed in synchrotron-soleil.fr.rhsbl.ahbl.org.]
[IN A]
-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low
trust
[194.254.240.33 listed in list.dnswl.org]
-0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3)
[194.254.240.33 listed in wl.mailspike.net]
1.2 RCVD_HELO_IP_MISMATCH Received: HELO and IP do not match, but should
0.9 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO
0.0 HTML_MESSAGE BODY: HTML included in message
-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's
domain
0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid
-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
-0.0 RCVD_IN_MSPIKE_WL Mailspike good senders
1.5 FSL_HELO_BARE_IP_2 No description available.
The original message was not completely plain text, and may be unsafe to
open with some email clients; in particular, it may contain a virus,
or confirm that your address can receive spam. If you wish to view
it, it may be safer to save it to a file and open it with an editor.
-------------- next part --------------
An embedded message was scrubbed...
From: Emmanuel FARHI
Subject: Job opening at SOLEIL
Date: Wed, 19 Mar 2025 12:26:23 +0100
Size: 8852
URL:
From wildgrubercu at ornl.gov Mon Mar 24 21:24:31 2025
From: wildgrubercu at ornl.gov (Wildgruber, Christoph U.)
Date: Mon, 24 Mar 2025 20:24:31 +0000
Subject: [mcstas-users] Monitor_nD question (V3.5.23)
Message-ID:
Hi,
I am trying to follow the recipe in the Monitor_nD component description.
The purpose is to track the value of ?xtalindex? together with the particle index ?n? on an event basis
to evaluate our multi-crystal analyzer setup:
How to monitor any instrument/component variable into a Monitor_nD
Suppose you want to monitor a variable 'age' which you assign somwhere in
the instrument:
COMPONENT MyMonitor = Monitor_nD(
xwidth = 0.1, yheight = 0.1,
user1="age", username1="Age of the Captain [years]",
options="user1, auto")
AT ...
to keep track of a variable I am setting with ?EXTEND?.
?
COMPONENT Analyzer_14 = Monochromator_flat_CUW(zwidth = Alength, yheight = Awidth_14,
mosaich = mos, mosaicv = mos,
r0 = 0.99, DM = 3.355)
AT (0, 0, 0) RELATIVE Mono_Arm_14
ROTATED (0, analyzer_rot_14, 0) RELATIVE Mono_Arm_14
EXTEND
%{
xtalindex = 14.0;
%}
?
?and use ?xtalindex? the following way:
COMPONENT Collimator_out = Monitor_nD(user1 = ?xtalindex?, username1 = ?Crystal index?,
options = "user1,n,x,y,z,vx,vy,vz,t,list all neutrons verbose",
xmin = 0.0, xmax = 1.0, ymin = -0.2, ymax = 0.2,
filename="collimator_out.evt", restore_neutron=1)
AT (0, 0, 0.2) RELATIVE Monitor_Arm
I do get an extra column in the output file but the value is always 0, regardless how I
define and initialize xtalindex. I must be doing something fundamentally wrong.
Any suggestions are greatly appreciated!
Thanks,
Uli
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From pkwi at dtu.dk Tue Mar 25 07:20:09 2025
From: pkwi at dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=)
Date: Tue, 25 Mar 2025 06:20:09 +0000
Subject: [mcstas-users] Monitor_nD question (V3.5.23)
In-Reply-To:
References:
Message-ID:
Hi Uli,
Since McStas 3, Monitor_nD measures user variables via the so-called particle USERVARS, that become ?part of the particle?.
(This consequently needs better documentation it seems, sorry about that!)
In your instrument file, add a USERVARS block below DECLARE and before INITIALIZE, something like this:
INSTRUMENT my_instrument()
DECLARE %{
%}
USERVARS %{
int xtalindex; // A double is of course also OK
%}
INITIALIZE %{
%}
Best and hope this helps?
Peter
On 24 Mar 2025, at 21.24, Wildgruber, Christoph U. via mcstas-users wrote:
Hi,
I am trying to follow the recipe in the Monitor_nD component description.
The purpose is to track the value of ?xtalindex? together with the particle index ?n? on an event basis
to evaluate our multi-crystal analyzer setup:
How to monitor any instrument/component variable into a Monitor_nD
Suppose you want to monitor a variable 'age' which you assign somwhere in
the instrument:
COMPONENT MyMonitor = Monitor_nD(
xwidth = 0.1, yheight = 0.1,
user1="age", username1="Age of the Captain [years]",
options="user1, auto")
AT ...
to keep track of a variable I am setting with ?EXTEND?.
?
COMPONENT Analyzer_14 = Monochromator_flat_CUW(zwidth = Alength, yheight = Awidth_14,
mosaich = mos, mosaicv = mos,
r0 = 0.99, DM = 3.355)
AT (0, 0, 0) RELATIVE Mono_Arm_14
ROTATED (0, analyzer_rot_14, 0) RELATIVE Mono_Arm_14
EXTEND
%{
xtalindex = 14.0;
%}
?
?and use ?xtalindex? the following way:
COMPONENT Collimator_out = Monitor_nD(user1 = ?xtalindex?, username1 = ?Crystal index?,
options = "user1,n,x,y,z,vx,vy,vz,t,list all neutrons verbose",
xmin = 0.0, xmax = 1.0, ymin = -0.2, ymax = 0.2,
filename="collimator_out.evt", restore_neutron=1)
AT (0, 0, 0.2) RELATIVE Monitor_Arm
I do get an extra column in the output file but the value is always 0, regardless how I
define and initialize xtalindex. I must be doing something fundamentally wrong.
Any suggestions are greatly appreciated!
Thanks,
Uli
_______________________________________________
mcstas-users mailing list
mcstas-users at mcstas.org
https://mailman2.mcstas.org/mailman/listinfo/mcstas-users
Peter Kj?r Willendrup
Forskningsingeni?r, Specialkonsulent
DTU Physics
[image001.gif]
Technical University of Denmark
[image002.gif]
Department of Physics
Fysikvej
Building 307
DK-2800 Kongens Lyngby
Main office at
ESS DMSC
Building 305
DK-2800 Kongens Lyngby
Direct +45 2125 4612
Mobil +45 2125 4612
Fax +45 4593 2399
pkwi at fysik.dtu.dk
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 58 bytes
Desc: image001.gif
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 1055 bytes
Desc: image002.gif
URL: