<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>Dear Heloisa, Ruep,</div><div><br></div><div><br></div><div>On Jan 20, 2012, at 5:19 PM, Heloisa N. Bordallo wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<div text="#000000" bgcolor="#ffffff">I have optimized my chopper and guide system, and now I am trying to
use the <code>Virtual_output</code> Component. However I can only
use a neutron count of 100000000 to perform my simulation in this
way, if I try to send more I get the message : Job exited
abnormally. <br>
<br>
Doe it happen because the file I am trying to create is just huge?<br></div></blockquote><div><br></div><div>This sounds a little strange, could you try sending me the complete output of your simulation, e.g. File -> Save output/Log file from mcgui?</div><div><br></div><div>By the way, what exactly do you mean by "huge"? Generally speaking, "some million events" in the output file should be enough as a starting point?</div><br><blockquote type="cite"><div text="#000000" bgcolor="#ffffff">
Then, what is the best way to use such a component?<br>
<br>
At the moment I have it as:<br>
<br>
COMPONENT fichier_sortie = Virtual_output(<br>
file = "exit_guide_result.dat", type = "double")<br>
AT (0, 0, 1e-4) RELATIVE PREVIOUS<br></div></blockquote><div><br></div><div>I have generally only used the default "text" format with Virtual_output, but this of course does not help in regard to getting smaller output files…</div><div><br></div><div>Are you aware that an input file can be repeated a number of times in Virtual_input? The repeat_count is used for that, and your resulting --ncount will be repeat_count * number of events in the file. To be specific, use a "big" --ncount in the second part of the simulation, and perhaps define an input parameter Rep which is used as repeat_count on the Virtual_input source.</div><div><br></div><blockquote type="cite"><div text="#000000" bgcolor="#ffffff">
Also how can I be sure I get the right intensity distribution? By
the way I am using the SNS_source.component as input, and I would
like to preserve the ToF-lambda distribution, once using the file =
"exit_guide_result.dat" as input file for the <code>Virtual_input</code>
Component.<br></div></blockquote><div><br></div><div>As long as you "use all events" from the file an integer number of times, any aspect of the neutron event distribution is preserved.</div><div><br></div><div>An alternative to using Virtual_input / Virtual_output is the use of the SPLIT keyword, see the manual and the "advanced McStas course" in Copenhagen on wednesday. :)</div><div><br></div><div><br></div><div>Cheers,</div><div><br></div><div>Peter</div><div><br></div></div><div><br></div><div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="400" style="width: 300pt; border-collapse: collapse; position: static; z-index: auto; "><tbody><tr><td width="357" valign="top" style="width: 267.5pt; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; "><div style="margin-right: 0cm; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; margin-top: 0cm; margin-bottom: 0.0001pt; "><b><span style="font-size: 8pt; font-family: Arial, sans-serif; color: black; ">Technical University of Denmark</span></b></div><div style="margin-right: 0cm; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; margin-top: 0cm; margin-bottom: 0.0001pt; "><b><span style="font-size: 8pt; font-family: Arial, sans-serif; color: black; "><br></span></b></div></td></tr></tbody></table><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span></span><span style="border-collapse: separate; "></span><br class="Apple-interchange-newline"><img height="53" width="36" id="6019f7d1-658e-4592-b2b2-3e0218d0eaf4" apple-width="yes" apple-height="yes" src="cid:image002.gif@01CCCAF1.5E6331F0"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: collapse; font-family: Calibri, sans-serif; font-size: 15px; "><div><br class="Apple-interchange-newline"><table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="400" style="width: 300pt; border-collapse: collapse; position: static; z-index: auto; "><tbody><tr><td width="400" colspan="2" valign="top" style="width: 300pt; padding-top: 0cm; padding-right: 0cm; padding-bottom: 3.75pt; padding-left: 0cm; "><div style="margin-right: 0cm; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; margin-top: 0cm; margin-bottom: 0.0001pt; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><br class="Apple-interchange-newline"><table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="400" style="width: 300pt; border-collapse: collapse; position: static; z-index: auto; "><tbody><tr><td style="padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; "><div style="margin-right: 0cm; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; margin-top: 0cm; margin-bottom: 0.0001pt; "><span style="font-size: 8pt; font-family: Arial, sans-serif; color: black; ">Department o</span><span style="font-size: 8pt; font-family: Arial, sans-serif; color: rgb(31, 73, 125); ">f</span><span style="font-size: 8pt; font-family: Arial, sans-serif; color: black; "> Physics<o:p></o:p></span></div><div style="margin-right: 0cm; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; margin-top: 0cm; margin-bottom: 0.0001pt; "><span style="font-size: 8pt; font-family: Arial, sans-serif; color: black; ">DTU<o:p></o:p></span></div></td></tr><tr><td style="padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; "><div style="margin-right: 0cm; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; margin-top: 0cm; margin-bottom: 0.0001pt; "><span style="font-size: 8pt; font-family: Arial, sans-serif; color: black; ">Frederiksborgvej 399<o:p></o:p></span></div></td></tr><tr><td style="padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; "><div style="margin-right: 0cm; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; margin-top: 0cm; margin-bottom: 0.0001pt; "><span style="font-size: 8pt; font-family: Arial, sans-serif; color: black; ">Building 229<o:p></o:p></span></div></td></tr><tr><td style="padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; "><div style="margin-right: 0cm; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; margin-top: 0cm; margin-bottom: 0.0001pt; "><span style="font-size: 8pt; font-family: Arial, sans-serif; color: black; ">DK-4000 Roskilde<o:p></o:p></span></div></td></tr><tr><td style="padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; "><div style="margin-right: 0cm; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; margin-top: 0cm; margin-bottom: 0.0001pt; "><span style="font-size: 8pt; font-family: Arial, sans-serif; color: black; ">Direct +45 4677 5862<o:p></o:p></span></div></td></tr><tr><td style="padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; "><div style="margin-right: 0cm; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; margin-top: 0cm; margin-bottom: 0.0001pt; "><span style="font-size: 8pt; font-family: Arial, sans-serif; color: black; ">Mobil +45 2125 4612<o:p></o:p></span></div><div style="margin-right: 0cm; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; margin-top: 0cm; margin-bottom: 0.0001pt; "><span style="font-size: 8pt; font-family: Arial, sans-serif; color: black; ">Fax +45 4677 5758<o:p></o:p></span></div></td></tr></tbody></table></span></div></td></tr></tbody></table></div></span></span><span class="Apple-style-span" style="border-collapse: collapse; "><a href="mailto:pkwi@fysik.dtu.dk">pkwi@fysik.dtu.dk</a></span></span></span></span></div><br><div></div></div></body></html>