From pkwi at fysik.dtu.dk Thu Oct 6 21:39:52 2016 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Thu, 6 Oct 2016 19:39:52 +0000 Subject: [mcstas-users] Use Microsofts "Windows subsystem for Linux" for running McStas under Windows 10! Message-ID: <2CB8C87D-C50E-450E-8712-1EA043DB426B@fysik.dtu.dk> Dear all, As you may know already, Microsoft has partnered with Cannonical (company behind Ubuntu Linux) and released the (experimental) feature "Windows subsystem for Linux" (WSL), also known as "Bash on Ubuntu on Windows". Read more for instance at http://www.pcworld.com/article/3106463/windows/how-to-get-bash-on-windows-10-with-the-anniversary-update.html It turns out that it is relatively straightforward to get McStas running under this new feature - thereby overcoming some of the annoyances of McStas on the Windows platform. To try it out, please follow the below steps ? Install a copy of Windows 10 64 bit ? Update it beyond "Windows 10 Version 1607" - aka the "anniversary build" ? Enable "developer mode" in settings ? Use "turn features on or off" to enable "Bash in windows" ? Start bash via the start icon / cmd+esc ? Install McStas as usual on a Debian systems, see http://mcstas.org/download/install_linux/. Also remember that you can easily install openmpi etc. ? Install and start the Xming X-server ? Turn back to your bash and execute ? export DISPLAY=localhost:0.0 ? mcgui & or mcgui-py & (or any of the usual McStas commands) Screenshot of mcgui running this way attached to this email. As the feature is considered experimental, you might still find some rough edges, but so far it seems functional and looks very promising! A tip for easily accessing your data simulated under Linux is to run from your Windows home folder, accessible under Linux at /mnt/c/Users/. Best regards, Peter Willendrup Peter Kj?r Willendrup Senior Research Engineer, Special Advisor DTU Physics Technical University of Denmark [cid:image002.gif at 01CCCAF1.5E6331F0] 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 [cid:82024438-9BF0-4357-94C8-AEAF2C214E14] -------------- 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: McStas-WSL.png Type: image/png Size: 235531 bytes Desc: McStas-WSL.png URL: From ma7935123 at yahoo.com Mon Oct 10 08:40:08 2016 From: ma7935123 at yahoo.com (=?UTF-8?B?4oCq4oCsIOKAqg==?=) Date: Mon, 10 Oct 2016 06:40:08 +0000 (UTC) Subject: [mcstas-users] =?utf-8?q?=28no_subject=29?= References: <525796282.3426440.1476081608663.ref@mail.yahoo.com> Message-ID: <525796282.3426440.1476081608663@mail.yahoo.com> hello -------------- next part -------------- An HTML attachment was scrubbed... URL: From redi87 at bk.ru Thu Oct 13 11:39:33 2016 From: redi87 at bk.ru (=?UTF-8?B?0JDQu9C10LrRgdC10Lkg0JHRi9C60L7Qsg==?=) Date: Thu, 13 Oct 2016 12:39:33 +0300 Subject: [mcstas-users] =?utf-8?q?Res=5Fmonitor?= Message-ID: <1476351573.40788503@f365.i.mail.ru> Hello Everyone! Can i use Res_monitor for determination of resolution of 4circle diffractometer? I mean FWHM from graph Qy vs Qx. Best regards, Alexey Bykov, PNPI. -------------- next part -------------- An HTML attachment was scrubbed... URL: From 104pet104 at gmail.com Fri Oct 21 16:44:19 2016 From: 104pet104 at gmail.com (=?UTF-8?B?0J/QtdGC0YAg0JrQvtC90LjQug==?=) Date: Fri, 21 Oct 2016 17:44:19 +0300 Subject: [mcstas-users] Resolution & guide kink Message-ID: Dear colleagues! Two questions have recently appeared in our group: 1)What is the easiest way of obtaining the resolution curve from the simulated powder diffraction data? We use semi-automatic procedure to fit peaks. Is there any in-built way to obtain resolution curve directly from simulation (possibly with the help of ifit?)? 2)What is the proper way to include guide kink in the model? Putting a single mirror leads to a gap in top and bottom walls as wel as in the opposite to mirror side. That's important for the case of constant cross section guide. Best regards, Peter Konik From Peter.Link at frm2.tum.de Thu Nov 17 09:23:59 2016 From: Peter.Link at frm2.tum.de (Peter Link) Date: Thu, 17 Nov 2016 09:23:59 +0100 Subject: [mcstas-users] Resolution & guide kink In-Reply-To: References: Message-ID: <69aca498-d70b-7065-5b7b-cd633d20263b@frm2.tum.de> Dear Peter, I recently did some neutron guide simulations using the Guide_anyshape component, which allows a lot of freedom for the shape. I guess it would also work for your problem raised in 2) . The tricky point is creating the off file with the geometric description ... Best regards, Peter Am 21.10.2016 um 16:44 schrieb ???? ?????: > Dear colleagues! > > Two questions have recently appeared in our group: > > 1)What is the easiest way of obtaining the resolution curve from the > simulated powder diffraction data? We use semi-automatic procedure to > fit peaks. Is there any in-built way to obtain resolution curve > directly from simulation (possibly with the help of ifit?)? > > 2)What is the proper way to include guide kink in the model? Putting a > single mirror leads to a gap in top and bottom walls as wel as in the > opposite to mirror side. That's important for the case of constant > cross section guide. > > Best regards, > Peter Konik > _______________________________________________ > mcstas-users mailing list > mcstas-users at mcstas.org > http://mailman.mcstas.org/cgi-bin/mailman/listinfo/mcstas-users -- Dr. Peter Link Leiter Neutronenoptik Technische Universit?t M?nchen Heinz Maier-Leibnitz Zentrum (MLZ) Lichtenbergstr. 1 85747 Garching Tel.: +49 (0)89 289 14622 Fax: +49 (0) 89 289 11694 From pkwi at fysik.dtu.dk Fri Nov 18 13:34:16 2016 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Fri, 18 Nov 2016 12:34:16 +0000 Subject: [mcstas-users] Video talk about McStas 2.4 by Mads Bertelsen, Uni Copenhagen Message-ID: <8BCDA56F-F3D8-4F23-8098-FF4184CED3A2@fysik.dtu.dk> Dear all, Yesterday afternoon at the ESS DMSC, Mads Bertelsen from the Niels Bohr Institute gave an interesting talk about his new ?Union? concept for McStas - PDF flyer attached. The presentation was recorded, and is now available for viewing online at http://media.mcstas.org/ESS_DMSC_20161117/DMSC_talk_MBertelsen_McStas_Union.mp4 Best regards, Peter Peter Kj?r Willendrup Senior Research Engineer, Special Advisor DTU Physics [cid:fd627397-95d7-492e-b27f-92900da427fa at win.dtu.dk] Technical University of Denmark [cid:87b677f7-a256-41c3-8b9a-af9930c072d1 at win.dtu.dk] 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: McStas_Union_DMSC_abstract.pdf Type: application/pdf Size: 2446035 bytes Desc: McStas_Union_DMSC_abstract.pdf URL: From alaa.falahat at gmail.com Tue Dec 13 10:16:34 2016 From: alaa.falahat at gmail.com (Ala'a Al-Falahat) Date: Tue, 13 Dec 2016 10:16:34 +0100 Subject: [mcstas-users] Simulation of ESS testbeamline instrument at HZB Message-ID: Dear users, I have started to simulate the ESS Test Beam Line at HZB center (please find the attached files to show the instrument in details). I have generated proper code for it (see instrument file attached below) but I get a warning message that no neutron could reach to some component when I try to get a result, Hopefully, you can find a solution on that. For more information don't hesitate to contact me. The first attached you should find at the page number 2 the whole instrument. The second attached in appendix A , you should find the instrument in details. The third attached you will find the instrument file I did. with many wishes Alaa --------------------------------------------------------------------------------------------------------------------------- *Institute of Applied MaterialsHelmholtz-Zentrum Berlin for Materials and EnergyHahn-Meitner-Platz , 114109 BerlinGermany* -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: (First attached)The wavelength frame multiplication chopper system for the ESS test beamline at the BER II reactor.pdf Type: application/pdf Size: 1503017 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: (second attached)The test beamline of the European Spallation Source ? Instrumentation.pdf Type: application/pdf Size: 2308019 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: V20TestBeamLineV2.instr Type: application/octet-stream Size: 13631 bytes Desc: not available URL: From pkwi at fysik.dtu.dk Tue Dec 13 11:08:55 2016 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Tue, 13 Dec 2016 10:08:55 +0000 Subject: [mcstas-users] Simulation of ESS testbeamline instrument at HZB In-Reply-To: References: Message-ID: <380424CE-1F0C-4B67-A42A-75A9C9EA944C@fysik.dtu.dk> Dear Alaa, Thank you for your email - I had a quick look at your instrument file and made some adjustments - see attached. 1) I Assume that in cases where your DiskChoppers are AT the same place they make up an ?assembly? or GROUP? In these cases you should also - Include the first of these choppers in the GROUP also - done in the attached - For each individual chopper assembly, there has to be a unique GROUP name, hence I created in total 5 GROUPS 2) Are BC_1 and BC_2 maybe meant to be counter-rotating? In that case I think you are missing a sign-change on the frequency parameter of one of them? 3) I added a new input parameter Chopper_in that via the WHEN keyword can disable all of the choppers beyond the first counter-rotating set. - I also had to put a ?dummy? arm component pr. chopper group to make sure there is a SCATTER when the group is deactivated by the WHEN. We are now in the situation that neutrons are transported both when the choppers are in and out - further optimisation quite likely necessary (only 8 rays out of 1e7 makes it to the sample when choppers are in?), but this at least gives you a way forward. :-) Hope this helps, and good luck moving further. Best, Peter Willendrup Peter Kj?r Willendrup Senior Research Engineer, Special Advisor DTU Physics [cid:64fe8267-1c54-4f37-8253-f5095605ca04 at win.dtu.dk] Technical University of Denmark [cid:5ef5ea1c-d2c0-46bb-b91b-c78624c635c7 at win.dtu.dk] 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 On 13 Dec 2016, at 10:16 , Ala'a Al-Falahat > wrote: Dear users, I have started to simulate the ESS Test Beam Line at HZB center (please find the attached files to show the instrument in details). I have generated proper code for it (see instrument file attached below) but I get a warning message that no neutron could reach to some component when I try to get a result, Hopefully, you can find a solution on that. For more information don't hesitate to contact me. The first attached you should find at the page number 2 the whole instrument. The second attached in appendix A , you should find the instrument in details. The third attached you will find the instrument file I did. with many wishes Alaa --------------------------------------------------------------------------------------------------------------------------- Institute of Applied Materials Helmholtz-Zentrum Berlin for Materials and Energy Hahn-Meitner-Platz , 1 14109 Berlin Germany <(First attached)The wavelength frame multiplication chopper system for the ESS test beamline at the BER II reactor.pdf><(second attached)The test beamline of the European Spallation Source ? Instrumentation.pdf>_______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org http://mailman.mcstas.org/cgi-bin/mailman/listinfo/mcstas-users -------------- 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: V20TestBeamLineV2.instr Type: application/octet-stream Size: 14761 bytes Desc: V20TestBeamLineV2.instr URL: From pkwi at fysik.dtu.dk Wed Dec 14 09:02:33 2016 From: pkwi at fysik.dtu.dk (=?Windows-1252?Q?Peter_Kj=E6r_Willendrup?=) Date: Wed, 14 Dec 2016 08:02:33 +0000 Subject: [mcstas-users] Simulation of ESS testbeamline instrument at HZB In-Reply-To: <5850E517.8010301@nbi.ku.dk> References: <380424CE-1F0C-4B67-A42A-75A9C9EA944C@fysik.dtu.dk>, <5850E517.8010301@nbi.ku.dk> Message-ID: <0AA030AF-C052-4B1F-AD80-87006A5F2344@fysik.dtu.dk> Hi again, Agreed, this is a good tip. Perhaps implemented as instrument input parameters Lmin and Lmax so that the range is variable (to be able to study if anything unwanted makes it through your complex chopper arrangement...). Another few tips: You can find parameters for the HZB sources in Source_gen - see http://www.mcstas.org/download/components/sources/Source_gen.html - That should take you closer to the intensities that you will measure at the ESS test beam line. As I understood you will likely soon add a sample description? In that case a SPLIT right before the sample position will boost your final detector statistics. Single_crystal and PowderN provide "guesses" at good SPLIT numbers, for other samples you will currently have to make a good guess yourself. :-) As far as I know the instrument is running a prototype of the DAQ and reduction software to be used at ESS? In that case you could at some point consider implementing Mantid event monitors, see https://github.com/McStasMcXtrace/McCode/wiki/McStas-and-Mantid Best and good luck simulating, Peter Technical University of Denmark Department of Physics Neutrons and X-rays for Materials 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 Den 14. dec. 2016 kl. 07.22 skrev Kim Lefmann >: Dear Alaa, A quick read through the modified code tells me that you can use a much smaller energy interval from the source (I take that you like to produce a monochromatic pulse eventually?). This will speed up your simulations a factor > 10. best, Kim On 12/13/2016 11:08 AM, Peter Kj?r Willendrup wrote: Dear Alaa, Thank you for your email - I had a quick look at your instrument file and made some adjustments - see attached. 1) I Assume that in cases where your DiskChoppers are AT the same place they make up an ?assembly? or GROUP? In these cases you should also - Include the first of these choppers in the GROUP also - done in the attached - For each individual chopper assembly, there has to be a unique GROUP name, hence I created in total 5 GROUPS 2) Are BC_1 and BC_2 maybe meant to be counter-rotating? In that case I think you are missing a sign-change on the frequency parameter of one of them? 3) I added a new input parameter Chopper_in that via the WHEN keyword can disable all of the choppers beyond the first counter-rotating set. - I also had to put a ?dummy? arm component pr. chopper group to make sure there is a SCATTER when the group is deactivated by the WHEN. We are now in the situation that neutrons are transported both when the choppers are in and out - further optimisation quite likely necessary (only 8 rays out of 1e7 makes it to the sample when choppers are in?), but this at least gives you a way forward. :-) Hope this helps, and good luck moving further. Best, Peter Willendrup Peter Kj?r Willendrup Senior Research Engineer, Special Advisor DTU Physics Technical University of Denmark 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 On 13 Dec 2016, at 10:16 , Ala'a Al-Falahat > wrote: Dear users, I have started to simulate the ESS Test Beam Line at HZB center (please find the attached files to show the instrument in details). I have generated proper code for it (see instrument file attached below) but I get a warning message that no neutron could reach to some component when I try to get a result, Hopefully, you can find a solution on that. For more information don't hesitate to contact me. The first attached you should find at the page number 2 the whole instrument. The second attached in appendix A , you should find the instrument in details. The third attached you will find the instrument file I did. with many wishes Alaa --------------------------------------------------------------------------------------------------------------------------- Institute of Applied Materials Helmholtz-Zentrum Berlin for Materials and Energy Hahn-Meitner-Platz , 1 14109 Berlin Germany <(First attached)The wavelength frame multiplication chopper system for the ESS test beamline at the BER II reactor.pdf><(second attached)The test beamline of the European Spallation Source ? Instrumentation.pdf>_______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org http://mailman.mcstas.org/cgi-bin/mailman/listinfo/mcstas-users _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org http://mailman.mcstas.org/cgi-bin/mailman/listinfo/mcstas-users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ATT00001.gif Type: image/gif Size: 58 bytes Desc: ATT00001.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ATT00002.gif Type: image/gif Size: 1055 bytes Desc: ATT00002.gif URL: From pkwi at fysik.dtu.dk Fri Dec 16 10:10:46 2016 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Fri, 16 Dec 2016 09:10:46 +0000 Subject: [mcstas-users] McStas v. 2.4 is coming... Message-ID: Dear all, This is just to let you have a sneak preview of what we expect to include in McStas 2.4, which we are planning to release in January 2017: * Tools: * From 2.4 we will default to use our new set of Python tools, the perl ones will stay around as a backup solution * Our Python tools are now Python 3 compliant * A mcgui editor in with a rich syntax highlighting * A mcrun utility script, with new features wrt. the legacy perl solution: - The feature --autoplot spawns your selected plotter on sim completion - The feature --multi (or -M) allows grid-scanning, i.e. multidimensional scans - The --list (or -L) allows to make 1D-scans that are not equidistant or even filename strings etc? * A newly developed mcplot-pyqtgraph with new features wrt. the legacy mcplot solution: - Easy mouse-based zooming on individual monitor plots - Colormaps can be changed for 2D-plots - Select a single plot by clicking, get back to overview by right-clicking - On scans ctrl-click (meta-click on OS X) to see monitor as function of scanned variable - On scans press ?x? to receive all scan points as individual plot windows * A newly developed mcdisplay-webgl - Fully 3D and interactive, uses your HTML5-capable browser with javascript controls - Pause or resume visualisation of the neutron rays in the instrument - Allows to keep already rendered rays to illustrate the full beam - Visualises rays with color, scaled with particle velocity (ideal for illustrating e.g. monochromatisation) (* If time allows we will also include a simple mcdisplay-pyqtgraph ala the legacy mcdisplay tool *) * Components and instruments: * A new set of components referred to as ?Union? components, contribution by Mads Bertelsen Uni Copenhagen. - Allows very rich simulation of samples and sample environment - Several instrument files included to illustrate the capabilities and use - See http://media.mcstas.org/ESS_DMSC_20161117/DMSC_talk_MBertelsen_McStas_Union.mp4 * New PSD_monitor_TOF that outputs a TOF signal pr. PSD pixel (single files). Used in templateNMX_TOF.instr * MCPL_input allows to repeat input files an integer number of times - possible to modify particle energy, position and direction on repetition * MCPL_output has an option to merge generated output files in case of MPI * ESS_butterfly_MCPL.instr implementing the use of MCPL files in the ESS butterfly geometry * PowderN can ?flip? the d_phi focusing to ?zoom? on a range of angles. * Various bugfixes and improvements across the example instruments and component library * Platforms: * Our macOS application bundle fully transportable, i.e. can be moved away from the default /Applications/ location * On Windows 10 64bit and newer, the Windows Subsystem for Linux allows a much improved McStas experience As always, let us know if you have nice things in your desktop drawers that you would like to contribute! :-) All the best and seasons greetings, Peter Willendrup Peter Kj?r Willendrup Senior Research Engineer, Special Advisor DTU Physics Technical University of Denmark [cid:image002.gif at 01CCCAF1.5E6331F0] 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: