From christopher.ridley at stfc.ac.uk Thu Oct 3 15:29:10 2019 From: christopher.ridley at stfc.ac.uk (Christopher Ridley - UKRI STFC) Date: Thu, 3 Oct 2019 13:29:10 +0000 Subject: [mcstas-users] MacOS installation issues Message-ID: Hi Peter, I am having some trouble using the install package for Mcstas 2.5 on MacOS 10.14.6. It seems that the python dependency tests all pass fine, and the GUI runs, but doesn?t seem to be working fully. The links to the templated instruments under the file menu are missing, the logo is missing. I tried to run the 'mcrun ?test' in the command line, but it doesn?t look as if mcrun has been added to the path, as the command isn?t recognised. It seems to run a test instrument, but perhaps with a few error messages. Any idea what?s missing from the installation? I have attached the output from the test run. Many thanks in advance for your help. Best Wishes, Chris -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: test_run.txt URL: From pkwi at fysik.dtu.dk Thu Oct 3 16:56:29 2019 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Thu, 3 Oct 2019 14:56:29 +0000 Subject: [mcstas-users] MacOS installation issues In-Reply-To: References: Message-ID: <54906B0C-7998-4640-8FBC-BFBD45D29D4F@fysik.dtu.dk> Hi Christopher, Just to be completely sure you didn't miss a step in the procedure? 1) Download and unzip http://download.mcstas.org/mcstas-2.5/mac/mcstas-2.5.tgz 2) Drag McStas-2.5.app and McStas-2.5-environment.command to /Applications (This step is more important than one should think, in fact the app is not completely relocatable!) 3) Run the Check-PY-dependencies.command (Please ensure that it ?finds? the right app in /Applications and not an earlier installation) 4) If you want to be able to run the old mcrun.pl --test, please also run Check-PL-dependencies.command in a similar fashion. (Needs to be mcrun.pl, the bare mcrun is Python-based and currently does not include a test) 5) McStas no longer automatically/fullt installs itself to the macOS system PATH. To get this, either * Double-click McStas-2.5-environment.command in /Applications * execute mcstas-2.5-environment in a Terminal.app if you let the dependency-scripts above install that alias Please let me know if any of the above helps or not? - And be sure to write me again (maybe off-list) with any further diagnostics you may be able go get - e.g. terminal output when issuing mcgui in the above ?environment? etc. Best Peter On 3 Oct 2019, at 15.29, Christopher Ridley - UKRI STFC > wrote: Hi Peter, I am having some trouble using the install package for Mcstas 2.5 on MacOS 10.14.6. It seems that the python dependency tests all pass fine, and the GUI runs, but doesn?t seem to be working fully. The links to the templated instruments under the file menu are missing, the logo is missing. I tried to run the 'mcrun ?test' in the command line, but it doesn?t look as if mcrun has been added to the path, as the command isn?t recognised. It seems to run a test instrument, but perhaps with a few error messages. Any idea what?s missing from the installation? I have attached the output from the test run. Many thanks in advance for your help. Best Wishes, Chris _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU DTU Physics [cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk] Technical University of Denmark [cid:e108e480-fcab-46e2-9531-b38165079572 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: From pkwi at fysik.dtu.dk Thu Oct 10 13:12:38 2019 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Thu, 10 Oct 2019 11:12:38 +0000 Subject: [mcstas-users] MacOS installation issues In-Reply-To: <54906B0C-7998-4640-8FBC-BFBD45D29D4F@fysik.dtu.dk> References: <54906B0C-7998-4640-8FBC-BFBD45D29D4F@fysik.dtu.dk> Message-ID: Hi Chris, As you know we have fixed the issue, communicating further outside the mailinglist. A GitHub issue defined today describes the issue and two solutions that are now in place: https://github.com/McStasMcXtrace/McCode/issues/868 (In the process I have uploaded a patched version of McStas 2.5 for the Mac that now runs out of the box on fresh Mojave and Catalina installations. Will announce this separately also.) Best, Peter On 3 Oct 2019, at 16.56, Peter Kj?r Willendrup > wrote: Hi Christopher, Just to be completely sure you didn't miss a step in the procedure? 1) Download and unzip http://download.mcstas.org/mcstas-2.5/mac/mcstas-2.5.tgz 2) Drag McStas-2.5.app and McStas-2.5-environment.command to /Applications (This step is more important than one should think, in fact the app is not completely relocatable!) 3) Run the Check-PY-dependencies.command (Please ensure that it ?finds? the right app in /Applications and not an earlier installation) 4) If you want to be able to run the old mcrun.pl --test, please also run Check-PL-dependencies.command in a similar fashion. (Needs to be mcrun.pl, the bare mcrun is Python-based and currently does not include a test) 5) McStas no longer automatically/fullt installs itself to the macOS system PATH. To get this, either * Double-click McStas-2.5-environment.command in /Applications * execute mcstas-2.5-environment in a Terminal.app if you let the dependency-scripts above install that alias Please let me know if any of the above helps or not? - And be sure to write me again (maybe off-list) with any further diagnostics you may be able go get - e.g. terminal output when issuing mcgui in the above ?environment? etc. Best Peter On 3 Oct 2019, at 15.29, Christopher Ridley - UKRI STFC > wrote: Hi Peter, I am having some trouble using the install package for Mcstas 2.5 on MacOS 10.14.6. It seems that the python dependency tests all pass fine, and the GUI runs, but doesn?t seem to be working fully. The links to the templated instruments under the file menu are missing, the logo is missing. I tried to run the 'mcrun ?test' in the command line, but it doesn?t look as if mcrun has been added to the path, as the command isn?t recognised. It seems to run a test instrument, but perhaps with a few error messages. Any idea what?s missing from the installation? I have attached the output from the test run. Many thanks in advance for your help. Best Wishes, Chris _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU 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 _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU DTU Physics [cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk] Technical University of Denmark [cid:e108e480-fcab-46e2-9531-b38165079572 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: From pkwi at fysik.dtu.dk Fri Oct 11 09:32:40 2019 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Fri, 11 Oct 2019 07:32:40 +0000 Subject: [mcstas-users] Respin of McStas v2.5 to support macOS Mojave and Catalina Message-ID: <43D34E84-1089-4577-A0CB-8A11EA5D921C@fysik.dtu.dk> Dear all, Recently one of our users reported issues on macOS Mojave with mcgui not picking up the right location of the mcstas library, please see https://github.com/McStasMcXtrace/McCode/issues/868 for more information. Since the problem seems to occur consistently on updated Mojave (10.14) and Catalina (10.15) systems, a patched version of our macOS App bundle was updated to http://download.mcstas.org/current/mac/. Please let us know via this mailinglist or by creating a GitHub ticket (https://github.com/McStasMcXtrace/McCode/issues/) if any further issues arise. Best, Peter Willendrup Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU DTU Physics [cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk] Technical University of Denmark [cid:e108e480-fcab-46e2-9531-b38165079572 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: From Peter.Link at frm2.tum.de Thu Oct 17 16:10:46 2019 From: Peter.Link at frm2.tum.de (Peter Link) Date: Thu, 17 Oct 2019 16:10:46 +0200 Subject: [mcstas-users] Elliptic_guide_gravity.comp Message-ID: <6edabc03-21ed-d462-627f-bd450e19206a@frm2.tum.de> Dear all, I'm just doing some tests with this component in preparation of parabolic and elliptic guides. I wonder whether somebody else has observed the strange behaviour I got just now. Attached is a simple test instr setup. I saw an asymetric intensity distribution in y even with gravity "off". Doing a "trace" (see y-z panel attached) I saw that the rays are deflected vs -y at the entrance of the first parabola / ellipse. A first glimpse into the code didn't tell me too much, where this could happen, but as far as I believe it shouldn't. Any help is welcome. Best regards, Peter -- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: dnigpdeecifnocgh.png Type: image/png Size: 4339 bytes Desc: not available URL: -------------- next part -------------- DEFINE INSTRUMENT TEST_parabeln( Lam=8.0, // nominal wavelength dLam=0.015, // wavelength spread eta=0.6, // source divergence sourcesize=0.05, // source size (m) samplesize=0.05, // sample area (m) focuslength_in=0.1, // distance from incoming guide to focus (m) focuslength_out=0.1, // distance from focus to outgoing guide (m) L_in=5.0, // length of incoming guide (m) L_out=5.0 // length of outgoing guide (m) ) /* testing a set of two parabolic guides; P. Link; OCT 2019 * input parameters : */ DECLARE %{ double MINLam,MAXLam, LLmin, LLmax; double sourcedist; %} INITIALIZE %{ MINLam = Lam - dLam; MAXLam = Lam + dLam; LLmin = MINLam; LLmax = MAXLam; sourcedist = sourcesize/tan(DEG2RAD*eta); %} TRACE /************************************************/ COMPONENT a1 = Progress_bar() AT (0,0,0) ABSOLUTE /* @ source position */ COMPONENT PRIMBEAM = Source_gen ( xwidth = sourcesize, yheight = sourcesize, dist = sourcedist, focus_xw = sourcesize, focus_yh = sourcesize, I1 = 1e10, lambda0 = Lam, dlambda = dLam) AT (0,0,0) RELATIVE a1 /* square area source; sourcedist defines the divergence tan eta = sourcesize / dist */ COMPONENT LAM_source = L_monitor(xmin=-sourcesize/2.0, xmax=sourcesize/2.0, ymin=-sourcesize/2.0, ymax=sourcesize/2.0, nL=20, filename="LAM_treff.L", Lmin=MINLam, Lmax=MAXLam) AT (0,0,sourcedist) RELATIVE PREVIOUS ROTATED (0,0,0) RELATIVE PREVIOUS COMPONENT PSD_source = PSD_monitor(xwidth=sourcesize*1.5, yheight=sourcesize*1.5, nx=50, ny=50, filename="PSD_source.psd",restore_neutron=1) AT (0,0,0.0001) RELATIVE PREVIOUS ROTATED (0,0,0) RELATIVE PREVIOUS COMPONENT Parabola_in = Elliptic_guide_gravity( l=L_in,linxw=1e6,linyh=1e6,loutxw=focuslength_in,loutyh=focuslength_in, // values larger than 1e8 may cause erroneous results xwidth=sourcesize,yheight=sourcesize, R0 = 0.99,Qc=0.0219,alpha=6.07,m=8.0,W=0.003, dimensionsAt = "entrance") AT (0, 0,0.0001) RELATIVE PREVIOUS ROTATED (0,0,0) RELATIVE PREVIOUS COMPONENT PSD_focal = PSD_monitor(xwidth=sourcesize, yheight=sourcesize, nx=100, ny=100, filename="PSD_focal.psd") AT (0,0,focuslength_in+L_in) RELATIVE PREVIOUS ROTATED (0,0,0) RELATIVE PREVIOUS COMPONENT Parabola_out = Elliptic_guide_gravity( l=L_out,linxw=focuslength_out,linyh=focuslength_out,loutxw=1e6,loutyh=1e6, // values larger than 1e8 may cause erroneous results xwidth=samplesize,yheight=samplesize, R0 = 0.99,Qc=0.0219,alpha=6.07,m=8.0,W=0.003, dimensionsAt = "exit") AT (0, 0,focuslength_out) RELATIVE PREVIOUS ROTATED (0,0,0) RELATIVE PREVIOUS COMPONENT PSD_sample = PSD_monitor(xwidth=samplesize*2.0, yheight=samplesize*2.0, nx=50, ny=50, filename="PSD_sample.psd",restore_neutron=1) AT (0,0,L_out) RELATIVE PREVIOUS ROTATED (0,0,0) RELATIVE PREVIOUS END From Mads.Bertelsen at esss.se Thu Oct 17 19:56:23 2019 From: Mads.Bertelsen at esss.se (Mads Bertelsen) Date: Thu, 17 Oct 2019 17:56:23 +0000 Subject: [mcstas-users] Elliptic_guide_gravity.comp In-Reply-To: <6edabc03-21ed-d462-627f-bd450e19206a@frm2.tum.de> References: <6edabc03-21ed-d462-627f-bd450e19206a@frm2.tum.de> Message-ID: Dear Peter, This is merely a display oddity when gravity is simulated, as the ray moves in a parabola but only reports it?s position when scattered. You can view the horizontal plane where this effect does not occur. If you have a high horizontal divergence, the scattering events are also more frequent and it is easier to see that the vertical movement is parabolic. Hope this helps! Best regards, Mads Bertelsen On 17 Oct 2019, at 10.19, Peter Link wrote: ? Dear all, I'm just doing some tests with this component in preparation of parabolic and elliptic guides. I wonder whether somebody else has observed the strange behaviour I got just now. Attached is a simple test instr setup. I saw an asymetric intensity distribution in y even with gravity "off". Doing a "trace" (see y-z panel attached) I saw that the rays are deflected vs -y at the entrance of the first parabola / ellipse. A first glimpse into the code didn't tell me too much, where this could happen, but as far as I believe it shouldn't. Any help is welcome. Best regards, Peter -- 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 _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From hueglet at ornl.gov Thu Nov 7 17:34:10 2019 From: hueglet at ornl.gov (Huegle, Thomas) Date: Thu, 7 Nov 2019 16:34:10 +0000 Subject: [mcstas-users] MCPL files and mpi Message-ID: Dear all, I am trying out using MCPL files as input into simulations right now: COMPONENT sourceMCPL = MCPL_input( filename="/data/source.mcpl" ) AT (0, 0, 0) RELATIVE Origin When I run the simulation using simply "mcrun mcpltester.instr", it takes about half an hour (the MCPL file in question is 24GB). However, when I try to use mpi ("mcrun -c --mpi=10 mcpltester.instr"), it takes something closer to 50 minutes. The problem seems to get worse (predicted run time for mpi=64: ~17 hours). Is there a way around it? Some special way of compiling perhaps? Thank you very much! Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkwi at fysik.dtu.dk Thu Nov 7 18:06:46 2019 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Thu, 7 Nov 2019 17:06:46 +0000 Subject: [mcstas-users] MCPL files and mpi In-Reply-To: References: Message-ID: <91CE0AA0-49FF-4868-BD12-F5099877F524@fysik.dtu.dk> Dear Thomas, The McStas use of MCPL input in MPI settings is implemented in a relatively trivial way: Every particle in the file is processed by every MPI process I therefore suspect that we could be looking at an I/O limitation from the filesystem - 1 vs. 10 vs. 64 processes wanting to read the same 24 Gb each from disk ?in parallel?. - And I must admit we never benchmarked this part of the implementation wrt. performance? Thanks for letting us know - and let?s perhaps define a GItHub ticket on the topic where we can continue discussing / trying things out? Cheers, Peter On 7 Nov 2019, at 17.34, Huegle, Thomas > wrote: Dear all, I am trying out using MCPL files as input into simulations right now: COMPONENT sourceMCPL = MCPL_input( filename="/data/source.mcpl" ) AT (0, 0, 0) RELATIVE Origin When I run the simulation using simply ?mcrun mcpltester.instr?, it takes about half an hour (the MCPL file in question is 24GB). However, when I try to use mpi (?mcrun -c --mpi=10 mcpltester.instr?), it takes something closer to 50 minutes. The problem seems to get worse (predicted run time for mpi=64: ~17 hours). Is there a way around it? Some special way of compiling perhaps? Thank you very much! Thomas _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU DTU Physics [cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk] Technical University of Denmark [cid:e108e480-fcab-46e2-9531-b38165079572 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: From 104pet104 at gmail.com Wed Nov 13 13:21:04 2019 From: 104pet104 at gmail.com (=?UTF-8?B?0J/QtdGC0YAg0JrQvtC90LjQug==?=) Date: Wed, 13 Nov 2019 15:21:04 +0300 Subject: [mcstas-users] GUI issue MacOS Message-ID: Dear colleagues, I have run into a strange gui problems on MacOS (both the latest one and the previous one). Some menu parts seem not working: File - new from template does not show the items; open terminal does not work. The most annoying part is that during editing instruments I cannot insert components from menu. At the same time some other buttons work, such as File - Open or File - New. I tried the latest updated version of 2.5 and it didn't help. Best regards, Peter Konik From pkwi at fysik.dtu.dk Wed Nov 13 13:34:20 2019 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Wed, 13 Nov 2019 12:34:20 +0000 Subject: [mcstas-users] GUI issue MacOS In-Reply-To: References: Message-ID: <82B3F53A-4E19-49F9-8E6D-BB16E32EB15F@fysik.dtu.dk> Dear Peter, I believe your issue could be the same as this one: https://github.com/McStasMcXtrace/McCode/issues/868 Reinstalling the updated 2.5 will only help if you remove any local .mcstas/2.5/mccode_config.py file Hope this helps, otherwise write me again outside the mailinglist and we will find a solution. Cheers, Peter On 13 Nov 2019, at 13.21, ???? ????? <104pet104 at gmail.com> wrote: Dear colleagues, I have run into a strange gui problems on MacOS (both the latest one and the previous one). Some menu parts seem not working: File - new from template does not show the items; open terminal does not work. The most annoying part is that during editing instruments I cannot insert components from menu. At the same time some other buttons work, such as File - Open or File - New. I tried the latest updated version of 2.5 and it didn't help. 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 N?stformand for DTU Fysik LSU DTU Physics [cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk] Technical University of Denmark [cid:e108e480-fcab-46e2-9531-b38165079572 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: From 104pet104 at gmail.com Wed Nov 13 14:26:18 2019 From: 104pet104 at gmail.com (=?UTF-8?B?0J/QtdGC0YAg0JrQvtC90LjQug==?=) Date: Wed, 13 Nov 2019 16:26:18 +0300 Subject: [mcstas-users] GUI issue MacOS In-Reply-To: <82B3F53A-4E19-49F9-8E6D-BB16E32EB15F@fysik.dtu.dk> References: <82B3F53A-4E19-49F9-8E6D-BB16E32EB15F@fysik.dtu.dk> Message-ID: Dear Peter, complete purge of everything related to McStas and reinstalling from scratch has helped! Thank you for very quick answer. Best regards, Peter Konik ??, 13 ????. 2019 ?. ? 15:34, Peter Kj?r Willendrup : > Dear Peter, > > > I believe your issue could be the same as this one: > https://github.com/McStasMcXtrace/McCode/issues/868 > > Reinstalling the updated 2.5 will only help if you remove any local > .mcstas/2.5/mccode_config.py file > > Hope this helps, otherwise write me again outside the mailinglist and we > will find a solution. > > > > > Cheers, > > Peter > > > > On 13 Nov 2019, at 13.21, ???? ????? <104pet104 at gmail.com> wrote: > > Dear colleagues, > > I have run into a strange gui problems on MacOS (both the latest one > and the previous one). > > Some menu parts seem not working: File - new from template does not > show the items; open terminal does not work. The most annoying part is > that during editing instruments I cannot insert components from menu. > At the same time some other buttons work, such as File - Open or File > - New. > > I tried the latest updated version of 2.5 and it didn't help. > > 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 > N?stformand for DTU Fysik LSU > > 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 > > -------------- 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: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.gif Type: image/gif Size: 1055 bytes Desc: not available URL: From Marc.Seifert at frm2.tum.de Tue Nov 19 13:23:29 2019 From: Marc.Seifert at frm2.tum.de (Marc Seifert) Date: Tue, 19 Nov 2019 13:23:29 +0100 Subject: [mcstas-users] Finite transmission probability for DiskChopper component Message-ID: <30e28e29-8f62-664c-c6bb-da2f1fd1bf74@frm2.tum.de> Hello everyone, we are simulating a chopper system over a large wavelength spectrum (0.5 to 10 AA). We would like to consider finite transmission of the choppers and we expect this to be 1E-7 for 3 AA and up to 0.007 for 1 AA. We would like to simulate the overall impact on the performance of the instrument by implementing a transmission probability to the DiskChopper component, but we are not sure which would be the best approach. Is it possible to check in the EXTEND section of a DiskChopper if the neutron was absorbed and then restore it with a certain probability? Or would it be better to change the neutron weight instead of absorbing it in the component? Additionally with a cutoff at a certain wavelength in order to not propagate every neutron with very tiny weight through the whole instrument. Any help is very much appreciated. Cheers, Marc Seifert and Aureliano Tartaglione From pkwi at fysik.dtu.dk Tue Nov 19 13:40:29 2019 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Tue, 19 Nov 2019 12:40:29 +0000 Subject: [mcstas-users] Finite transmission probability for DiskChopper component In-Reply-To: <30e28e29-8f62-664c-c6bb-da2f1fd1bf74@frm2.tum.de> References: <30e28e29-8f62-664c-c6bb-da2f1fd1bf74@frm2.tum.de> Message-ID: Dear Marc, On 19 Nov 2019, at 13.23, Marc Seifert > wrote: Hello everyone, we are simulating a chopper system over a large wavelength spectrum (0.5 to 10 AA). We would like to consider finite transmission of the choppers and we expect this to be 1E-7 for 3 AA and up to 0.007 for 1 AA. We would like to simulate the overall impact on the performance of the instrument by implementing a transmission probability to the DiskChopper component, but we are not sure which would be the best approach. Is it possible to check in the EXTEND section of a DiskChopper if the neutron was absorbed and then restore it with a certain probability? Or would it be better to change the neutron weight instead of absorbing it in the component? Additionally with a cutoff at a certain wavelength in order to not propagate every neutron with very tiny weight through the whole instrument. Any help is very much appreciated. I thought of solutions for this in the past, but never actually implemented anything in practice. What I would do is probably something like COMPONENT Chopper=DiskChopper(parameters=values?) AT (somewhere) GROUP DiscChopper1 COMPONENT Absorber=Incoherent(parameters=values?) AT (somewhere) GROUP DiscChopper1 - This means that if the chopper opening is not hit, the beam instead hits the following component. Depending on taste, that component could be Incoherent as shown or maybe even better PowderN which allows to tune the branches of statistics going into incoherent scattering, coherent scattering and ?tunnelling?, i.e. keeping the ray direction but taking the material cross-sections into account, i.e. ?absorbing? the relevant weight. Hope this helps, Peter Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU DTU Physics [cid:image001.gif at 01CCCAF1.5E6331F0] 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: From Marc.Seifert at frm2.tum.de Thu Nov 21 15:54:42 2019 From: Marc.Seifert at frm2.tum.de (Marc Seifert) Date: Thu, 21 Nov 2019 15:54:42 +0100 Subject: [mcstas-users] Finite transmission probability for DiskChopper component In-Reply-To: References: <30e28e29-8f62-664c-c6bb-da2f1fd1bf74@frm2.tum.de> Message-ID: <1236c991-09cf-3986-af85-57e18f9806a5@frm2.tum.de> Dear Peter, thank you very much for your help. I was able to implement your solution, however, it seems necessary to add a SCATTER in the EXTEND section of the absorber. This may be caused by my rather complex chopper geometry using several windows and additional WHEN conditions. I used the Sample_nxs component as it offers pure transmission without scattering. The code looks now like this: COMPONENT window0 = DiskChopper(parameters=values...) WHEN (condition) AT (0, 0, z) GROUP DiskChopper1 EXTEND %{ if(SCATTERED) do_something(); %} COMPONENT window1 = DiskChopper(parameters=values...) WHEN (condition) AT (0, 0, z) GROUP DiskChopper1 EXTEND %{ if(SCATTERED) do_something(); %} COMPONENT absorber = Sample_nxs( ??? TransOnly=1, IncohScat=0, MultiScat=0, ??? xwidth=0.5, yheight=0.5, zthick=250e-6, ??? nxsFileName="boron10.nxs") WHEN (condition) AT (0, 0, z) GROUP DiskChopper1 EXTEND %{ SCATTER; %} COMPONENT arm = Arm() WHEN (!condition)??? // inverse condition here AT (0, 0, z) GROUP DiskChopper1 EXTEND %{ SCATTER; %} Cheers, Marc On 11/19/19 1:40 PM, Peter Kj?r Willendrup wrote: > Dear Marc, > >> On 19 Nov 2019, at 13.23, Marc Seifert > > wrote: >> >> Hello everyone, >> >> we are simulating a chopper system over a large wavelength spectrum >> (0.5 to 10 AA). We would like to consider finite transmission of the >> choppers and we expect this to be 1E-7 for 3 AA and up to 0.007 for 1 >> AA. We would like to simulate the overall impact on the performance >> of the instrument by implementing a transmission probability to the >> DiskChopper component, but we are not sure which would be the best >> approach. >> >> Is it possible to check in the EXTEND section of a DiskChopper if the >> neutron was absorbed and then restore it with a certain probability? >> Or would it be better to change the neutron weight instead of >> absorbing it in the component? Additionally with a cutoff at a >> certain wavelength in order to not propagate every neutron with very >> tiny weight through the whole instrument. >> >> Any help is very much appreciated. > > I thought of solutions for this in the past, but never actually > implemented anything in practice. What I would do is probably > something like > > > COMPONENT Chopper=DiskChopper(parameters=values?) > AT (somewhere) > GROUP DiscChopper1 > > COMPONENT Absorber=Incoherent(parameters=values?) > AT (somewhere) > GROUP DiscChopper1 > > - This means that if the chopper opening is not hit, the beam instead > hits the following component. Depending on taste, that component could > be Incoherent as shown or maybe even better PowderN which allows to > tune the branches of statistics going into incoherent scattering, > coherent scattering and ?tunnelling?, i.e. keeping the ray direction > but taking the material cross-sections into account, i.e. ?absorbing? > the relevant weight. > > Hope this helps, > > Peter > > > Peter Kj?r Willendrup > Forskningsingeni?r, Specialkonsulent > N?stformand for DTU Fysik LSU > > > 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 > -------------- 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: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.gif Type: image/gif Size: 1055 bytes Desc: not available URL: From emmanuel.farhi at synchrotron-soleil.fr Tue Nov 26 17:14:30 2019 From: emmanuel.farhi at synchrotron-soleil.fr (FARHI Emmanuel) Date: Tue, 26 Nov 2019 17:14:30 +0100 Subject: [mcstas-users] Jobs at Synchrotron Soleil, Paris Message-ID: Dear colleagues, The SOLEIL Synchrotron near Paris is offering 4 permanent positions and 1 temporary position (12 months) as follows (descriptions are in French - ask them in English at the specified contacts if needed): 1- Software Developer specialized in Java to take care of our web services (12 months contract) 2- Management Computer Engineer to take care of our Administrative Software services (permanent) 3- Beam-line Instrumentation Technician to assist beam-lines (permanent) 4- Continuous Software Integration Engineer to take care of the deployment of our beam-line acquisition systems (permanent) 5- Beam-line Acquisition Software Engineer to develop the Tango control infrastructure used on the beam-lines (permanent) You are welcome to join us ! Emmanuel. -- FARHI Emmanuel - Tel: +33 (1) 69 35 96 04 Room A1.0.34 Experimental Division / Data Reduction and Analysis Group Synchrotron Soleil - Saint-Aubin BP 48 - 91192 GIF/YVETTE CEDEX http://www.synchrotron-soleil.fr From pkwi at fysik.dtu.dk Tue Dec 3 14:31:12 2019 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Tue, 3 Dec 2019 13:31:12 +0000 Subject: [mcstas-users] Fwd: Jobs at Synchrotron Soleil, Paris References: Message-ID: Dear all, We recently discovered a mail-transport issue wrt. the mcstas-users list, which meant that a) The below message was not received by many users b) The related users had delivery disabled in the mailman software This message is to remedy the situation, including testing that our maillinglist is well-behaved again. Best, Peter Willendrup Begin forwarded message: From: FARHI Emmanuel > Subject: [mcstas-users] Jobs at Synchrotron Soleil, Paris Date: 26 November 2019 at 17.14.30 CET To: > Dear colleagues, The SOLEIL Synchrotron near Paris is offering 4 permanent positions and 1 temporary position (12 months) as follows (descriptions are in French - ask them in English at the specified contacts if needed): 1- Software Developer specialized in Java to take care of our web services (12 months contract) 2- Management Computer Engineer to take care of our Administrative Software services (permanent) 3- Beam-line Instrumentation Technician to assist beam-lines (permanent) 4- Continuous Software Integration Engineer to take care of the deployment of our beam-line acquisition systems (permanent) 5- Beam-line Acquisition Software Engineer to develop the Tango control infrastructure used on the beam-lines (permanent) You are welcome to join us ! Emmanuel. -- FARHI Emmanuel - Tel: +33 (1) 69 35 96 04 Room A1.0.34 Experimental Division / Data Reduction and Analysis Group Synchrotron Soleil - Saint-Aubin BP 48 - 91192 GIF/YVETTE CEDEX http://www.synchrotron-soleil.fr _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU DTU Physics [cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk] Technical University of Denmark [cid:e108e480-fcab-46e2-9531-b38165079572 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: From emmanuel.farhi at synchrotron-soleil.fr Mon Dec 16 12:52:43 2019 From: emmanuel.farhi at synchrotron-soleil.fr (FARHI Emmanuel) Date: Mon, 16 Dec 2019 12:52:43 +0100 Subject: [mcstas-users] Job at Synchrotron Soleil, Paris: Services for Data Analysis - 3 years Message-ID: <1ef32624-e151-95bb-11a9-912143774062@synchrotron-soleil.fr> Dear colleagues, The Synchrotron SOLEIL near Paris, FR is offering a 3 years contract to work on the deployment of services for data analysis. This job is proposed in the frame of the EXPANDS [https://www.expands.eu] and PaNOSC [https://www.panosc.eu/services/] projects. The main topic will be to implement at SOLEIL e.g. new authentication mechanisms, data retrieval service and labelling (DOI...), as well as distant analysis infrastructures (Jupyter, Docker, ...). More information and application form at [https://www.synchrotron-soleil.fr/fr/emplois/ingenieur-developpement-logiciel-pour-les-donnees-scientifiques]. Above advert is in French. Refer to: https://translate.google.com/translate?sl=auto&tl=en&u=https%3A%2F%2Fwww.synchrotron-soleil.fr%2Ffr%2Femplois%2Fingenieure-developpement-logiciel-pour-les-donnees-scientifiques for translation in English. You are welcome to join us ! Emmanuel. -- FARHI Emmanuel - Tel: +33 (1) 69 35 96 04 Room A1.0.34 Experimental Division / Data Reduction and Analysis Group Synchrotron Soleil - Saint-Aubin BP 48 - 91192 GIF/YVETTE CEDEX http://www.synchrotron-soleil.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkwi at fysik.dtu.dk Thu Dec 19 15:38:20 2019 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Thu, 19 Dec 2019 14:38:20 +0000 Subject: [mcstas-users] Season's greetings, McStas news - and call for contributions Message-ID: <27FC535D-B98E-4B52-BB05-DDAA684A7859@fysik.dtu.dk> Hi all, This is to inform you all that the next stable McStas release 2.6 will become available during January 2020. - If you have any useful contributions to make, in the shape of instruments or components, now would be a good time. :-) I would also like to mention that we aim to make an official beta-release of our experimental McStas 3.0 available soon. This will happen following v. 2.6 within the first months of the new year, and be the first release to support running simulations on Nvidia GPU processors. Probably not all of our components will be ported at release, but most of what you do on CPU?s today will be available! A short set of slides is available at http://www.mcstas.org/news/Porting_McStas_to_GPU_via_OpenACC.pdf that outline what is coming, when we started and how we achieved it? :-) Seasons greetings on behalf of the McStas team, Peter Willendrup Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU DTU Physics [cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk] Technical University of Denmark [cid:e108e480-fcab-46e2-9531-b38165079572 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: