From g.burca at open.ac.uk Wed Jan 19 21:06:59 2011 From: g.burca at open.ac.uk (Genoveva Burca) Date: Wed, 19 Jan 2011 20:06:59 GMT Subject: [mcstas-users] roughness_supermirror Message-ID: Dear all, I am interested in including the effect of any roughness of the super mirror coating on the neutron trajectories, and wonder if anyone can advise me how to model this roughness within McStas? Any help would be much appreciated. ?? Thank you very much, Genoveva -- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). -------------- next part -------------- An HTML attachment was scrubbed... URL: From robert.dalgliesh at stfc.ac.uk Thu Jan 20 11:20:22 2011 From: robert.dalgliesh at stfc.ac.uk (robert.dalgliesh at stfc.ac.uk) Date: Thu, 20 Jan 2011 10:20:22 +0000 Subject: [mcstas-users] roughness_supermirror In-Reply-To: References: Message-ID: <6FBC0D6CDC45D540A480CF482475F15803B080FF@exchange07.fed.cclrc.ac.uk> Hi Genoveva, Can you provide a little more information. What sort of super mirror arrangement are you trying to model? Are you interested in the performance of a long guide system or a smaller device such as a polariser? Best regards Robert =================================== Dr. Robert Dalgliesh ISIS STFC Rutherford Appleton Laboratory R3 1.29 Harwell Oxford Didcot OX11 0QX Tel: +44 (0) 1235 445687 e-mail: robert.dalgliesh at stfc.ac.uk From: mcstas-users-bounces at mcstas.org [mailto:mcstas-users-bounces at mcstas.org] On Behalf Of Genoveva Burca Sent: 19 January 2011 20:07 To: mcstas-users at mcstas.org Subject: [mcstas-users] roughness_supermirror Dear all, I am interested in including the effect of any roughness of the super mirror coating on the neutron trajectories, and wonder if anyone can advise me how to model this roughness within McStas? Any help would be much appreciated. Thank you very much, Genoveva -- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). -------------- next part -------------- An HTML attachment was scrubbed... URL: From g.burca at open.ac.uk Thu Jan 20 13:11:51 2011 From: g.burca at open.ac.uk (Genoveva Burca) Date: Thu, 20 Jan 2011 12:11:51 GMT Subject: [mcstas-users] mcstas-users Digest, Vol 22, Issue 1 In-Reply-To: References: Message-ID: mcstas-users at mcstas.org writes: >Can you provide a little more information. > >What sort of super mirror arrangement are you trying to model? > >Are you interested in the performance of a long guide system or a smaller >device such as a polariser? > >Best regards > >Robert Hi Robert, Thank you very much for your reply. I'm interested in the performance of a long guide system (my project includes modelling the passage of neutrons along supermirror guides.) Best wishes, Genoveva -- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkwi at risoe.dtu.dk Tue Jan 25 18:18:10 2011 From: pkwi at risoe.dtu.dk (Peter Willendrup) Date: Tue, 25 Jan 2011 18:18:10 +0100 Subject: [mcstas-users] mcstas-users Digest, Vol 22, Issue 1 In-Reply-To: References: Message-ID: Hello Genoveva, Sorry for the delay in responding. The way I understand surface imperfections, two effects are typically talked about: Roughness - corresponding to microscopic de-placement/misalignment of surface atoms. As far as I understand, this will effectively correspond a change in the slope of the reflectivity-curve, modeled by the alpha-parameter of the guide components. Wavyness - longer length-scale surface effects arising from manufacturing of the mirrors, typically variation that occurs in the cm-m range. Both the Guide_wavy and Guide_gravity components implement a phenomenological description of this effect by emitting outgoing neutrons within a gaussian 'cone'. I think Kaspar Klen? from University of Copenhagen has worked a bit at wavyness lately, putting him cc: so that you can contact him directly if interested? Best regards, Peter Willendrup -- ------------------------------------------------------------------- Peter Willendrup - Development engineer RIS? DTU Materials Research Division Frederiksborgvej 399 DK-4000 Roskilde Tlf.: (+45) 4677 5862 Mobil.: (+45) 2125 4612 Fax.: (+45) 4766 5758 Email: pkwi at risoe.dtu.dk ------------------------------------------------------------------- On 20/01/2011, at 13.11, Genoveva Burca wrote: > mcstas-users at mcstas.org writes: > Can you provide a little more information. > > What sort of super mirror arrangement are you trying to model? > > Are you interested in the performance of a long guide system or a smaller device such as a polariser? > > Best regards > > Robert > > > > Hi Robert, > > Thank you very much for your reply. > > I'm interested in the performance of a long guide system (my project includes modelling the passage of neutrons along supermirror guides.) > > Best wishes, > > Genoveva > > > -- > The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). _______________________________________________ > 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: From lynchve at ornl.gov Mon Jan 31 22:12:21 2011 From: lynchve at ornl.gov (Lynch, Vickie E.) Date: Mon, 31 Jan 2011 16:12:21 -0500 Subject: [mcstas-users] Output Event NeXus file In-Reply-To: <3EE8BE5416CB410892C94BF0134FCFF5@risoedmz.dk> References: <3EE8BE5416CB410892C94BF0134FCFF5@risoedmz.dk> Message-ID: <51FEDAF55B6E9145BC355D2FB152F8A170271A690B@EXCHMBA.ornl.gov> We would like to output Event NeXus files from McStas with each event consisting of a detector pixel ID and TOF from the McStas simulation of POWGEN at SNS. We are presently using Monitor_nD to write histogrammed NeXus files for the detectors. What would be the easiest way to make this modification? Vickie E. Lynch Oak Ridge National Laboratory, PO Box 2008, Oak Ridge, TN 37831-6460 (865) 574-0623, Bldg. 8600, Room K-206-D, MS6460, lynchve at ornl.gov -------------- next part -------------- An HTML attachment was scrubbed... URL: From farhi at ill.eu Mon Feb 7 10:40:11 2011 From: farhi at ill.eu (Emmanuel FARHI) Date: Mon, 07 Feb 2011 10:40:11 +0100 Subject: [mcstas-users] Output Event NeXus file In-Reply-To: <51FEDAF55B6E9145BC355D2FB152F8A170271A690B@EXCHMBA.ornl.gov> References: <3EE8BE5416CB410892C94BF0134FCFF5@risoedmz.dk> <51FEDAF55B6E9145BC355D2FB152F8A170271A690B@EXCHMBA.ornl.gov> Message-ID: <4D4FBDFB.9050804@ill.eu> An HTML attachment was scrubbed... URL: From piyadov at lns.pnpi.spb.ru Mon Feb 28 12:56:10 2011 From: piyadov at lns.pnpi.spb.ru (Vasily) Date: Mon, 28 Feb 2011 14:56:10 +0300 Subject: [mcstas-users] NeXuS format Message-ID: Dear all, We try to use the NeXuS format for output and we have some troubles with validating in NeXus. What we do: #1 Translate into C code mcstas -o ./SANS.c -I ./ -t --verbose /usr/lib/mcstas/examples/SANS.instr #2 Compiling with NeXuS: icc -o ./SANS.out ./SANS.c -lmpi -DUSE_NEXUS -lNeXus #3 Run: mcrun ./SANS.out --mpi=4 --ncount=1000000 --file=out1.nxs --format=NEXUS Lambda=6 D_lambda=0.05 r=100 PHI=0.001 Delta_Rho=0.6 Sigma_a=0.5 Qmax=0.3 mcrun ./SANS.out --mpi=4 --ncount=1000000 --file=out1.xml --format=XML Lambda=6 D_lambda=0.05 r=100 PHI=0.001 Delta_Rho=0.6 Sigma_a=0.5 Qmax=0.3 #4 Try to convert with the NeXuS tool (http://download.nexusformat.org/doc/html/Utilities.html ) nxconvert -x out1.nxs out2.xml Error: "Converting out1.nxs to XML NeXus file out2.xml No dataset open" # Try to validate nxvalidate out1.xml Error: * Validating out1.xml using definition BASE.xsd Corrupted file, userData for X_position__cm_ not found * Error converting file out1.xml to definiton XML format If somebody knows about this let me know, please. Best wishes, Vasily -- Department of Condensed Matter Petersburg Nuclear Physics Institute Orlova Roscha, Gatchina, St.-Petersburg 188300 Russia E-mail: piyadov at lns.pnpi.spb.ru From farhi at ill.eu Mon Feb 28 13:56:24 2011 From: farhi at ill.eu (Emmanuel FARHI) Date: Mon, 28 Feb 2011 13:56:24 +0100 Subject: [mcstas-users] NeXuS format In-Reply-To: References: Message-ID: <4D6B9B78.1040807@ill.eu> Hello Vasily, the 'NeXus' format generated by McStas is not a 'pure' NeXus, because there is no 'pure' NeXus. The naming of fields is not 'official', as indicated in the error report you sent. It does not mean that the file is corrupted... However you can open the files with e.g. hdfview and notice that they look like a normal NeXus files. If you whant to generate XML files, you may use the --format=XML option to mcrun, which will write a NeXus-like XML file (but not 100% nexus). Emmanuel. On 02/28/2011 12:56 PM, Vasily wrote: > Dear all, > We try to use the NeXuS format for output and we have some troubles with > validating in NeXus. > > What we do: > #1 Translate into C code > mcstas -o ./SANS.c -I ./ -t --verbose /usr/lib/mcstas/examples/SANS.instr > #2 Compiling with NeXuS: > icc -o ./SANS.out ./SANS.c -lmpi -DUSE_NEXUS -lNeXus > #3 Run: > mcrun ./SANS.out --mpi=4 --ncount=1000000 --file=out1.nxs --format=NEXUS > Lambda=6 D_lambda=0.05 r=100 PHI=0.001 Delta_Rho=0.6 Sigma_a=0.5 Qmax=0.3 > > mcrun ./SANS.out --mpi=4 --ncount=1000000 --file=out1.xml --format=XML > Lambda=6 D_lambda=0.05 r=100 PHI=0.001 Delta_Rho=0.6 Sigma_a=0.5 Qmax=0.3 > > #4 Try to convert with the NeXuS tool > (http://download.nexusformat.org/doc/html/Utilities.html ) > > nxconvert -x out1.nxs out2.xml > > Error: "Converting out1.nxs to XML NeXus file out2.xml > No dataset open" > > # Try to validate > nxvalidate out1.xml > > Error: > * Validating out1.xml using definition BASE.xsd > Corrupted file, userData for X_position__cm_ not found > * Error converting file out1.xml to definiton XML format > > If somebody knows about this let me know, please. > > Best wishes, > Vasily > -- Emmanuel FARHI,www.ill.eu/computing/people/emmanuel-farhi \|/ ____ \|/ CS-Group ILL4/221, Institut Laue-Langevin (ILL) Grenoble ~@-/ oO \-@~ 6 rue J. Horowitz, BP 156, 38042 Grenoble Cedex 9,France /_( \__/ )_\ Work :Tel (33/0) 4 76 20 71 35. Fax (33/0) 4 76 48 39 06 \__U_/ From piyadov at lns.pnpi.spb.ru Mon Feb 28 21:14:43 2011 From: piyadov at lns.pnpi.spb.ru (Vasily) Date: Mon, 28 Feb 2011 23:14:43 +0300 Subject: [mcstas-users] NeXuS format In-Reply-To: <4D6B9B78.1040807@ill.eu> References: <4D6B9B78.1040807@ill.eu> Message-ID: <8eef474ecafaa8e54a81fbb37f85f14b.squirrel@lns.pnpi.spb.ru> Dear Emmanuel, Thank you very much for your reply. Now everything is completely understandable. Best regards, Vasily ? ?????? ?? ???, 28 ??? 2011, 15:56 Emmanuel FARHI ?????: > Hello Vasily, > > the 'NeXus' format generated by McStas is not a 'pure' NeXus, because > there is no 'pure' NeXus. The naming of fields is not 'official', as > indicated in the error report you sent. It does not mean that the file > is corrupted... > > However you can open the files with e.g. hdfview and notice that they > look like a normal NeXus files. If you whant to generate XML files, you > may use the --format=XML option to mcrun, which will write a NeXus-like > XML file (but not 100% nexus). > > Emmanuel. > > On 02/28/2011 12:56 PM, Vasily wrote: >> Dear all, >> We try to use the NeXuS format for output and we have some troubles with >> validating in NeXus. >> >> What we do: >> #1 Translate into C code >> mcstas -o ./SANS.c -I ./ -t --verbose >> /usr/lib/mcstas/examples/SANS.instr >> #2 Compiling with NeXuS: >> icc -o ./SANS.out ./SANS.c -lmpi -DUSE_NEXUS -lNeXus >> #3 Run: >> mcrun ./SANS.out --mpi=4 --ncount=1000000 --file=out1.nxs --format=NEXUS >> Lambda=6 D_lambda=0.05 r=100 PHI=0.001 Delta_Rho=0.6 Sigma_a=0.5 >> Qmax=0.3 >> >> mcrun ./SANS.out --mpi=4 --ncount=1000000 --file=out1.xml --format=XML >> Lambda=6 D_lambda=0.05 r=100 PHI=0.001 Delta_Rho=0.6 Sigma_a=0.5 >> Qmax=0.3 >> >> #4 Try to convert with the NeXuS tool >> (http://download.nexusformat.org/doc/html/Utilities.html ) >> >> nxconvert -x out1.nxs out2.xml >> >> Error: "Converting out1.nxs to XML NeXus file out2.xml >> No dataset open" >> >> # Try to validate >> nxvalidate out1.xml >> >> Error: >> * Validating out1.xml using definition BASE.xsd >> Corrupted file, userData for X_position__cm_ not found >> * Error converting file out1.xml to definiton XML format >> >> If somebody knows about this let me know, please. >> >> Best wishes, >> Vasily >> > > -- > Emmanuel FARHI,www.ill.eu/computing/people/emmanuel-farhi \|/ ____ \|/ > CS-Group ILL4/221, Institut Laue-Langevin (ILL) Grenoble ~@-/ oO \-@~ > 6 rue J. Horowitz, BP 156, 38042 Grenoble Cedex 9,France /_( \__/ )_\ > Work :Tel (33/0) 4 76 20 71 35. Fax (33/0) 4 76 48 39 06 \__U_/ > > -- Department of Condensed Matter Petersburg Nuclear Physics Institute Orlova Roscha, Gatchina, St.-Petersburg 188300 Russia Phone: +7(81371)46121 Fax: +7(81371)39023 E-mail: piyadov at lns.pnpi.spb.ru