From pkwi at fysik.dtu.dk Sat Jan 7 08:21:14 2023 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Sat, 7 Jan 2023 07:21:14 +0000 Subject: [mcstas-users] McStas/McXtrace websites currently offline Message-ID: <4283F55E-2C00-417F-9518-73FEBBBDB100@fysik.dtu.dk> Dear all, It seems that external connectivity to the McStas and McXtrace websites is currently lost. A ticket has been opened with DTU IT which will hopefully bring us online again soon. Sorry for the inconvenience, Peter Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU DTU Physics [image001.gif] Technical University of Denmark [image002.gif] Department of Physics Fysikvej Building 307 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 fysik.dtu.dk Sun Jan 8 08:41:44 2023 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Sun, 8 Jan 2023 07:41:44 +0000 Subject: [mcstas-users] McStas/McXtrace websites currently offline In-Reply-To: <4283F55E-2C00-417F-9518-73FEBBBDB100@fysik.dtu.dk> References: <4283F55E-2C00-417F-9518-73FEBBBDB100@fysik.dtu.dk> Message-ID: <9F4636B3-3FB7-42B7-9390-FB55C6F2B144@fysik.dtu.dk> Hello again, While we wait for help I have set up a couple of ?emergency-access? sites: http://www2.mcstas.org and http://www2.mcxtrace.org - mirrors of the McStas and McXtrace main sites. The latest releases of both softwares are available for manual download via https://github.com/McStasMcXtrace/McCode/releases (main platforms only). Best and sorry for the inconvenience, Peter On 7 Jan 2023, at 08.21, Peter Kj?r Willendrup wrote: Dear all, It seems that external connectivity to the McStas and McXtrace websites is currently lost. A ticket has been opened with DTU IT which will hopefully bring us online again soon. Sorry for the inconvenience, Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU DTU Physics [image001.gif] Technical University of Denmark [image002.gif] Department of Physics Fysikvej Building 307 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 emmanuel.farhi at synchrotron-soleil.fr Wed Mar 29 09:36:11 2023 From: emmanuel.farhi at synchrotron-soleil.fr (Emmanuel FARHI) Date: Wed, 29 Mar 2023 09:36:11 +0200 Subject: [mcstas-users] McXtrace school 2023 @ SOLEIL : modelling BL with photon sources, optics, samples and detectors Message-ID: Hello, The Data Reduction and Analysis Group at SOLEIL (GRADES) is organising a school : * *McXtrace training, May 9-12, 2023* on the topic of beam-line modelling, geared towards beam-line scientists. The McXtrace tool is indeed suitable for simulating complete X beam-lines, with sample models (powder and single-crystal diffraction, absorption, inelastic scattering, fluorescence, tomography, small angles ), in order to obtain "virtual experiments" (aka digital twins). The school will take place at Synchrotron SOLEIL. Registration is free, but you will have to pay for the travel and accommodation (we have a cheap local guest-house). Registration before April 17, 2023 (20 seats) at: * https://indico.synchrotron-soleil.fr/e/mcxtrace2023 Detailed information about the event: * https://github.com/McStasMcXtrace/Schools/blob/master/2023/SOLEIL_May_2023 See you soon Emmanuel. -- signature / ___|__/\_| | ? | ____|_ _| | ? ? ?FARHI Emmanuel \___ \\ | | ? | ?_| ?| || | ? ? ?Div Exp/Data Reduction and Analysis Team ?___) /_ ?_| |___| |___ | || |___ ? Tel : +33 (1) 69 35 96 04 |____/ ?\/ |_____|_____|___|_____| ?Saint-Aubin BP 48 - 91192 GIF/YVETTE CEDEX SYNCHROTRON http://www.synchrotron-soleil.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkwi at fysik.dtu.dk Fri Mar 31 11:29:53 2023 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Fri, 31 Mar 2023 09:29:53 +0000 Subject: [mcstas-users] McStas 3.3 release Message-ID: <60E009BE-16BE-495F-86C6-FE29D3583B03@fysik.dtu.dk> Dear all, The new McStas release v. 3.3 "next-generation" is built and ready for download! McStas 3.3 is the fourth official release in the 3.x series, with a modernised code-generator and support for GPU acceleration on NVIDIA cards. 3.3 could have been considered a 'minor' update, but new built-in support for NeXus on all platforms and new SEARCH grammar warrant the .x increment. Thanks: Thanks to all members of the joint McStas-McXtrace team and input from our users via emails and GitHub issues alike! Download and installation instructions are available via our GitHub INSTALL-doc pages (https://github.com/McStasMcXtrace/McCode/blob/master/INSTALL-McStas-3.x/README.md) Selected highlights from the releass are listed below. The full list changes is also available at https://mcstas.org/CHANGES_McStas. If you didn't start already, please start your migration to 3.x! The Wiki has a dedicated section on McStas 2.x -> McStas 3.x conversion that includes all the needed information (https://github.com/McStasMcXtrace/McCode/wiki#migrating-from-mcstas-2x-to-3x-and-mcxtrace-1x-to-3x) Release highlights: * Installation and core packaging: * McStas 3.3 comes with embedded NeXus support on macOS and on Debian/Ubuntu NeXus is pulled as a package dependency. On Windows, please install NeXus from the extras/ folder alongside your McStas bundle. * Tools: * mcrun now automatically adds NeXus support to your binary if --format=NeXus is given on the commandline (or if DEPENDENCY " @NEXUSFLAGS@ " is included in your instrument or component file). * The new input flag --IDF will run an IDF generator (i.e. mcdisplay-mantid) prior to performing a NeXus-based simulation, i.e. for "one-click" support of output in Mantid-compatible NeXus format with an embedded IDF. Please consult the naming-conventions for sourceMantid, sampleMantid and nD_Mantid_xx found in https://github.com/McStasMcXtrace/McCode/wiki/McStas-and-Mantid#mcstas-mantid-workflow to succesfully generate your IDF. Please also inspire from the example instruments in the Mantid category, see mcgui -> File -> New from template -> Mantid . * mcrun now forwards the -I input to the code-generator, which allows you to add a chosen folder with extra components etc. to your search path. Setting the -I flag implies recompilation (-c). (Please also note the related SEARCH grammar below which allows working on the component search path directly via the instrument or component grammar.) * The mcgui run dialogue now allows to directly specify --format=NeXus and --format=NeXus --IDF when starting a simulation. * mcdisplay-mantid has been given a good overhaul and now works properly with all of the supported mantid-event-detector geometries of Monitor_nD: rectangular, cylindrical/banana and OFF-file based. Thanks to Torben R. Nielsen and Celine Durniak (ESS) for repeated testing. * mcplot (-pyqtgraph) and numpy related bug was quickly spotted and ironed out with the help of by Rose Robledo FZJ. * Components and Instruments: * FZP_simple model.comp of Fresnel Zone-Plate (phenomenologic/closed-form thin-plate approximation) added along with test instrument Test_FZP_simple.instr, work by Anders Komar Ravn (NBI), and Erik B Knudsen (previously DTU, now Copenhagen Atomics) * Test_Monochromators.instr has been updated to include NCrystal_sample as a monochromator, plus includes multiple ways of parametrizing Single_crystal lattice orientation. (Please note that NCrystal support is still not complete on Windows.) * The 3 example ConicTracer interface-component codes Conics_EH.comp, Conics_PH.comp, Conics_PP.comp have been updated to allow specifying non-equidistant radii of the nested optical shells. Please use vector radii={a,b,c,d,e} or initialization via an instrument-based array and use a compatible setting of nshells. * The Elliptical_guide_gravity.comp will now complain if you are using arrays for specifying varied coating without setting the nSegments input. * The multi-v-cavity support from the McStas 2.x version of Pol_guide_vmirror.comp has been ported to 3.3. Thanks to Damian Rodriguez and Hal Lee (ESS) for interactions on this component. * By popular demand, certain characteristics of the ESS_butterfly component may be modified using compile-time re-definition. Defaults are ESS_SOURCE_DURATION0=2.857e-3 s, ESS_SOURCE_FREQUENCY 14 Hz, ESS_SOURCE_POWER 5 MW. (Use e.g. mcrun --D1=ESS_SOURCE_DURATION=1.0e-3 to simulate a 1 ms pulse.) * Similarly, the precession-algorithm constants of pol-lib may also be redefined at compile-time, defaults are: MCMAGNET_STACKSIZE=12, mc_pol_angular_accuracy=(1.0*DEG2RAD) deg, mc_pol_initial_timestep=1e-5 s. * Core simulation framework / code-generator: * A new syntax called SEARCH has been added to the grammar, allowing users to run append a directory to the mcstas search path when looking for components. The syntax may be given in the instrument- or component-header directly after a SHELL token and before the DEPENDENCY, DECLARE tokens. SEARCH comes in two variants: * SEARCH "/the/path/to/add/" * SEARCH SHELL "the_executable --and --some --options" * Thanks to Gregory S. Tucker (ESS) for contributing this grammar enhancement! * Libraries and other runtime code: * The (r-)interoff-lib.c family of codes have again received a couple of updates, thanks to McStas user Richard Wagner (ILL). * NCrystal library version 3.5.1 from T. Kittelmann (ESS) and X.X. Cai (CSNS), distributed with McStas on Unix platforms only. (Cross-compiles for Windows, but still needs work for "production" availability.) * MCPL library from the same authors included at v. 1.6.1 * Platforms: * We still support 64bit Windows 10/11 on Intel, three most recent 64bit macOS (11 Big Sur -> 13 Ventura) on both Intel and Apple Silicon/M-series processors. Debian-based distros on Intel and Arm, Fedora on Intel. * On macOS and Windows we bundle a Mambaforge Python with the installation. * Our Docker and binder containers will be updated within the following weeks. We hope you will enjoy this new release!!! Best regards on behalf of the McStas team, 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 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 fysik.dtu.dk Fri Mar 31 14:39:57 2023 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Fri, 31 Mar 2023 12:39:57 +0000 Subject: [mcstas-users] McStas 3.3 release In-Reply-To: <60E009BE-16BE-495F-86C6-FE29D3583B03@fysik.dtu.dk> References: <60E009BE-16BE-495F-86C6-FE29D3583B03@fysik.dtu.dk> Message-ID: <6299C718-B8C5-4FE6-B229-6719E3F353F2@fysik.dtu.dk> Hi again, I was just reminded that the SEARCH syntax may also be applied within an instrument TRACE section, e.g.: TRACE ... SEARCH SHELL "readout-config --show compdir" COMPONENT readout = Readout(ring="RING", fen="FEN", tube="TUBE", a="left", b="right", ...) AT (0, 0, 0) ABSOLUTE ... Both of the forms SEARCH ?/path/to/add? and SEARCH SHELL "the_executable --and --some ?options? may be used in this context also. Best and have a nice weekend, Peter On 31 Mar 2023, at 11.29, Peter Kj?r Willendrup wrote: Dear all, The new McStas release v. 3.3 "next-generation" is built and ready for download! McStas 3.3 is the fourth official release in the 3.x series, with a modernised code-generator and support for GPU acceleration on NVIDIA cards. 3.3 could have been considered a 'minor' update, but new built-in support for NeXus on all platforms and new SEARCH grammar warrant the .x increment. Thanks: Thanks to all members of the joint McStas-McXtrace team and input from our users via emails and GitHub issues alike! Download and installation instructions are available via our GitHub INSTALL-doc pages (https://github.com/McStasMcXtrace/McCode/blob/master/INSTALL-McStas-3.x/README.md) Selected highlights from the releass are listed below. The full list changes is also available at https://mcstas.org/CHANGES_McStas. If you didn't start already, please start your migration to 3.x! The Wiki has a dedicated section on McStas 2.x -> McStas 3.x conversion that includes all the needed information (https://github.com/McStasMcXtrace/McCode/wiki#migrating-from-mcstas-2x-to-3x-and-mcxtrace-1x-to-3x) Release highlights: * Installation and core packaging: * McStas 3.3 comes with embedded NeXus support on macOS and on Debian/Ubuntu NeXus is pulled as a package dependency. On Windows, please install NeXus from the extras/ folder alongside your McStas bundle. * Tools: * mcrun now automatically adds NeXus support to your binary if --format=NeXus is given on the commandline (or if DEPENDENCY " @NEXUSFLAGS@ " is included in your instrument or component file). * The new input flag --IDF will run an IDF generator (i.e. mcdisplay-mantid) prior to performing a NeXus-based simulation, i.e. for "one-click" support of output in Mantid-compatible NeXus format with an embedded IDF. Please consult the naming-conventions for sourceMantid, sampleMantid and nD_Mantid_xx found in https://github.com/McStasMcXtrace/McCode/wiki/McStas-and-Mantid#mcstas-mantid-workflow to succesfully generate your IDF. Please also inspire from the example instruments in the Mantid category, see mcgui -> File -> New from template -> Mantid . * mcrun now forwards the -I input to the code-generator, which allows you to add a chosen folder with extra components etc. to your search path. Setting the -I flag implies recompilation (-c). (Please also note the related SEARCH grammar below which allows working on the component search path directly via the instrument or component grammar.) * The mcgui run dialogue now allows to directly specify --format=NeXus and --format=NeXus --IDF when starting a simulation. * mcdisplay-mantid has been given a good overhaul and now works properly with all of the supported mantid-event-detector geometries of Monitor_nD: rectangular, cylindrical/banana and OFF-file based. Thanks to Torben R. Nielsen and Celine Durniak (ESS) for repeated testing. * mcplot (-pyqtgraph) and numpy related bug was quickly spotted and ironed out with the help of by Rose Robledo FZJ. * Components and Instruments: * FZP_simple model.comp of Fresnel Zone-Plate (phenomenologic/closed-form thin-plate approximation) added along with test instrument Test_FZP_simple.instr, work by Anders Komar Ravn (NBI), and Erik B Knudsen (previously DTU, now Copenhagen Atomics) * Test_Monochromators.instr has been updated to include NCrystal_sample as a monochromator, plus includes multiple ways of parametrizing Single_crystal lattice orientation. (Please note that NCrystal support is still not complete on Windows.) * The 3 example ConicTracer interface-component codes Conics_EH.comp, Conics_PH.comp, Conics_PP.comp have been updated to allow specifying non-equidistant radii of the nested optical shells. Please use vector radii={a,b,c,d,e} or initialization via an instrument-based array and use a compatible setting of nshells. * The Elliptical_guide_gravity.comp will now complain if you are using arrays for specifying varied coating without setting the nSegments input. * The multi-v-cavity support from the McStas 2.x version of Pol_guide_vmirror.comp has been ported to 3.3. Thanks to Damian Rodriguez and Hal Lee (ESS) for interactions on this component. * By popular demand, certain characteristics of the ESS_butterfly component may be modified using compile-time re-definition. Defaults are ESS_SOURCE_DURATION0=2.857e-3 s, ESS_SOURCE_FREQUENCY 14 Hz, ESS_SOURCE_POWER 5 MW. (Use e.g. mcrun --D1=ESS_SOURCE_DURATION=1.0e-3 to simulate a 1 ms pulse.) * Similarly, the precession-algorithm constants of pol-lib may also be redefined at compile-time, defaults are: MCMAGNET_STACKSIZE=12, mc_pol_angular_accuracy=(1.0*DEG2RAD) deg, mc_pol_initial_timestep=1e-5 s. * Core simulation framework / code-generator: * A new syntax called SEARCH has been added to the grammar, allowing users to run append a directory to the mcstas search path when looking for components. The syntax may be given in the instrument- or component-header directly after a SHELL token and before the DEPENDENCY, DECLARE tokens. SEARCH comes in two variants: * SEARCH "/the/path/to/add/" * SEARCH SHELL "the_executable --and --some --options" * Thanks to Gregory S. Tucker (ESS) for contributing this grammar enhancement! * Libraries and other runtime code: * The (r-)interoff-lib.c family of codes have again received a couple of updates, thanks to McStas user Richard Wagner (ILL). * NCrystal library version 3.5.1 from T. Kittelmann (ESS) and X.X. Cai (CSNS), distributed with McStas on Unix platforms only. (Cross-compiles for Windows, but still needs work for "production" availability.) * MCPL library from the same authors included at v. 1.6.1 * Platforms: * We still support 64bit Windows 10/11 on Intel, three most recent 64bit macOS (11 Big Sur -> 13 Ventura) on both Intel and Apple Silicon/M-series processors. Debian-based distros on Intel and Arm, Fedora on Intel. * On macOS and Windows we bundle a Mambaforge Python with the installation. * Our Docker and binder containers will be updated within the following weeks. We hope you will enjoy this new release!!! -------------- next part -------------- An HTML attachment was scrubbed... URL: