From 201706683 at est.umss.edu Tue Sep 12 04:55:46 2023 From: 201706683 at est.umss.edu (=?UTF-8?Q?DIEGO_RUB=C3=89N_ROM=C3=81N_OZUNA?=) Date: Mon, 11 Sep 2023 22:55:46 -0400 Subject: [mcstas-users] About McStas 3.3 and optimization mode Message-ID: Hi I hope this email finds you well. Allow me to introduce myself; my name is Rub?n Rom?n, and I am currently pursuing my undergraduate thesis at Universidad Mayor de San Sim?n, hailing from Bolivia. I am reaching out to seek assistance with a specific issue related to the McStas software. Our team and I are deeply engaged in a project involving the optimization of geometric parameters, specifically the L/D ratio, for a collimator intended for neutron radiography. In our quest for knowledge, we consulted the McStas software manual, which led us to discover the presence of an instrument optimization mode. Regrettably, we have encountered difficulties in accessing this mode within the mcgui environment. It appears that this option eludes us and we need guidance to leverage its capabilities effectively. We would greatly appreciate any insights or guidance you could offer us regarding the utilization of this optimization mode within McStas. Thank you for your time and consideration. Sincerely, Ruben Roman -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkwi at dtu.dk Tue Sep 12 21:29:25 2023 From: pkwi at dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Tue, 12 Sep 2023 19:29:25 +0000 Subject: [mcstas-users] About McStas 3.3 and optimization mode In-Reply-To: References: Message-ID: <9F4FDA08-7FC6-49CC-A36B-ED6FBFE20224@dtu.dk> Dear Rub?n, It is true that current releases of McStas do not have this feature in the Python-based tools, and unfortunately the manuals are in need of an overhaul. - The described optimiser was built in to the legacy set of Perl-based tools, more specifically in the mcrun.pl (or mcrun-pl on Windows) command line utility, which is probablyncluded in your McStas 3.1 installation? Alternatively you are likely able to do most of your optimisation by means of ?scans? - i.e. variation of a single parameter at at time? I can further inform you that the forthcoming McStas v.3.4 will again include an ?optimiser?, built into the mcrun Python tool - hopefully 3.4 will be out during this month. Best, Peter Willendrup On 12 Sep 2023, at 04.55, DIEGO RUB?N ROM?N OZUNA <201706683 at est.umss.edu> wrote: Hi I hope this email finds you well. Allow me to introduce myself; my name is Rub?n Rom?n, and I am currently pursuing my undergraduate thesis at Universidad Mayor de San Sim?n, hailing from Bolivia. I am reaching out to seek assistance with a specific issue related to the McStas software. Our team and I are deeply engaged in a project involving the optimization of geometric parameters, specifically the L/D ratio, for a collimator intended for neutron radiography. In our quest for knowledge, we consulted the McStas software manual, which led us to discover the presence of an instrument optimization mode. Regrettably, we have encountered difficulties in accessing this mode within the mcgui environment. It appears that this option eludes us and we need guidance to leverage its capabilities effectively. We would greatly appreciate any insights or guidance you could offer us regarding the utilization of this optimization mode within McStas. Thank you for your time and consideration. Sincerely, Ruben Roman _______________________________________________ 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 COBIS, Ole Maal?es vej 3, 2200 K?benhavn N, Denmark 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 Tue Sep 12 21:29:25 2023 From: pkwi at dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Tue, 12 Sep 2023 19:29:25 +0000 Subject: [mcstas-users] About McStas 3.3 and optimization mode In-Reply-To: References: Message-ID: <9F4FDA08-7FC6-49CC-A36B-ED6FBFE20224@dtu.dk> Dear Rub?n, It is true that current releases of McStas do not have this feature in the Python-based tools, and unfortunately the manuals are in need of an overhaul. - The described optimiser was built in to the legacy set of Perl-based tools, more specifically in the mcrun.pl (or mcrun-pl on Windows) command line utility, which is probablyncluded in your McStas 3.1 installation? Alternatively you are likely able to do most of your optimisation by means of ?scans? - i.e. variation of a single parameter at at time? I can further inform you that the forthcoming McStas v.3.4 will again include an ?optimiser?, built into the mcrun Python tool - hopefully 3.4 will be out during this month. Best, Peter Willendrup On 12 Sep 2023, at 04.55, DIEGO RUB?N ROM?N OZUNA <201706683 at est.umss.edu> wrote: Hi I hope this email finds you well. Allow me to introduce myself; my name is Rub?n Rom?n, and I am currently pursuing my undergraduate thesis at Universidad Mayor de San Sim?n, hailing from Bolivia. I am reaching out to seek assistance with a specific issue related to the McStas software. Our team and I are deeply engaged in a project involving the optimization of geometric parameters, specifically the L/D ratio, for a collimator intended for neutron radiography. In our quest for knowledge, we consulted the McStas software manual, which led us to discover the presence of an instrument optimization mode. Regrettably, we have encountered difficulties in accessing this mode within the mcgui environment. It appears that this option eludes us and we need guidance to leverage its capabilities effectively. We would greatly appreciate any insights or guidance you could offer us regarding the utilization of this optimization mode within McStas. Thank you for your time and consideration. Sincerely, Ruben Roman _______________________________________________ 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 COBIS, Ole Maal?es vej 3, 2200 K?benhavn N, Denmark 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 Peter.Willendrup at ess.eu Tue Sep 19 22:00:18 2023 From: Peter.Willendrup at ess.eu (Peter Willendrup) Date: Tue, 19 Sep 2023 20:00:18 +0000 Subject: [mcstas-users] McStas 3.4 released! Message-ID: <5533CB71-AB65-44BD-B922-2F33D9B11E16@ess.eu> Dear all, The new McStas release v. 3.4 "next-generation" is built and ready for download! McStas 3.4 is the fifth official release in the 3.x series, with a modernised code-generator and support for GPU acceleration on NVIDIA cards. 3.4 is a 'major' update with notable changes, e.g. tighter integration/interoperability with McStasScript, new grammar and further CMake-standardisation which will eventually bring McStas to the conda-forge ecosystem. (And todaay, almost all dependencies for McStas are brought by mamba/conda on macOS and Windows.) Another notable change is that MCPL and NCrystal are now distributed in stand-alone .deb / .rpm packages that are McStas-release-independent, for convenience still available through the packages.mccode.org repository. Please install using e.g. apt install mcpl ncrystal (The MCPL and NCrystal codes have been submitted to the Debian ecosystem by Synchrotron SOLEIL / Emmanuel Farhi / Roland Mas and should make it to the next Debian Stable, the same procedure is also under way for McStas.) 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. Selected highlights from the releass are listed below. The full list changes is also available at https://mcstas.org/CHANGES_McStas. * Fixes of issues from last 3.x release: * A number of issues from 3.3 were addressed, see the relevant GitHub issues for details * Installation: * As usual, our install docs are available on the McCode GitHub pages * The meta-packages for Debian/Ubuntu and RedHat/Centos/Fedora are named e.g. mcstas-suite-python-ng for 'next generation' for coexistance with the 2.x series packages. (!!! Please note that there will be no future 2.x releases !!!) * Tools: * We are no longer supporting / distributing the Perl-based tool set as all functionality has finally been ported to the Python tool set (which has been default since v. 2.4) * mcrun now supports an set of "optimisation" switches to allow evaluating an instrument as "object function". Thanks to Emmanuel Farhi for working on this. Please use mcrun --help in your McStas terminal to learn about details of switches and parameters or see the the changelog for a full description. * McStas now ships with a "python-aware" code generator for generating "McStasScript" code, example: * mcstas-pygen Instrument.instr generates the .py script Instrument_generated.py * Using 'jupytext' this file may easily be converted to a notebook: * jupytext --to ipynb Instrument_generated.py generates notebook file Instrument_generated.ipynb * See https://github.com/PaNOSC-ViNYL/McStasScript and https://mads-bertelsen.github.io for more information on McStasScript. * McStasScript is included with McStas 3.4 on macOS and Windows and readily configured for use with McStas 3.4 and its embedded Python version. For sake of user convenience, Jupyterlab is also included on these platforms, use 'jupyter lab' from within the McStas 'environment' to work with a McStasScript notebook. * Components and Instruments: * In relation to the HighNESS project, the Wolter-optic components Conics_* have been given an overhaul by Mads Bertelsen. New related instrument WOFSANS is included with McStas 3.4. * Thanks to the work of Jos? Robledo (FZJ), we now have a better interface to the Small-Angle Scattering models from SASview, aka. SASmodels. Due to the big number of included models that each correspond to a McStas component (94 in total!), these are now found in the "sasmodels" folder of your McStas installation. Two example instruments are also included: Test_SasView_bcc_paracrystal_aniso.instr and Test_SasView_guinier.instr. * The strain-scanning instrument ILL_SALSA.instr was contributed by Daniel Lomholt Christensen, Uni Copenhagen and ILL. * Core simulation framework / code-generator: * As mentioned above, mcstas-pygen can generate a McStasScript notebook from you existing .instr file. * New "unit" grammar for defining physcical units for instrument parameters from Greg Taylor (ESS), example: DEFINE INSTRUMENT template(lambda / "Aa" = 2.36) for a full description, see the changelog * New METADATA grammar from Greg Taylor (ESS), can be used to attach verbatim code/information to one or more component instances. See the changelog for full description * START your migration to 3.x * * Following the release of 3.4, we will no longer systematically be releasing updates to the 2.x series. * The Wiki has a dedicated section on McStas 2.x -> McStas 3.x conversion. Please use it! * If you are in trouble converting your instrument, please write us a GitHub issue or an email to mcstas-users at mcstas.org We hope you will enjoy this new release!!! Best regards from the McStas developers, Peter Willendrup ______________________ Peter Willendrup Senior Research Engineer DMSC / DRAM / Simulation European Spallation Source ERIC P.O. Box 176, SE-221 00 Lund, Sweden Visiting address: COBIS, Ole Maal?es vej 3, 2200 K?benhavn N, Denmark DTU Lyngby: Fysikvej 307, room 231, 2800 Kongens Lyngby, Denmark Mobile: +45 21 25 46 12 E-mail: peter.willendrup at ess.eu ess.eu [image001.png] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 64465 bytes Desc: image001.png URL: