[neutron-mc] Problem with Virtual input
Peter Willendrup
peter.willendrup at risoe.dk
Tue Jun 21 12:02:35 CEST 2005
Hi Laurent,
On Fri, 2005-06-17 at 18:04 +0100, Chapon, LC (Laurent) wrote:
> Dear McStas team,
>
> I have been trying to use the Virtual Output and Input. It works fine
> with the “text” format but the “float” and “double” binary do not
> work. The file is created OK but when trying to read it back with a
> virtual input, I have 0 counts.
Unfortunately I seem not to reproduce your problem with neither
mcstas-1.8 or the current CVS build. Tests done on Ubuntu GNU/Linux
(Debian).
Could you perhaps include some more specifics about your machine
environment and your instrument?
I have written two extremly simple instrument files that work fine here,
see attached.
Regards,
Peter
--
Peter Willendrup <peter.willendrup at risoe.dk>
Risø National Laboratory
-------------- next part --------------
DEFINE INSTRUMENT input()
TRACE
COMPONENT Origin = Arm()
AT (0,0,0) ABSOLUTE
COMPONENT source = Virtual_input(
file = "vout.dat", type = "double", repeat_count = 10,
bufsize = 0)
AT (0, 0, 10) RELATIVE Origin
COMPONENT PSD = PSD_monitor(
nx = 128, ny = 128, filename = "PSD", xmin = -0.1,
xmax = 0.1, ymin = -0.1, ymax = 0.1)
AT (0, 0, 0.1) RELATIVE source
END
-------------- next part --------------
DEFINE INSTRUMENT out()
TRACE
COMPONENT Origin = Arm()
AT (0,0,0) ABSOLUTE
COMPONENT source = Source_flat(
radius = 0.1, dist = 10, xw = 0.1, yh = 0.1, E0 = 5,
dE = 0.5)
AT (0, 0, 0) RELATIVE Origin
COMPONENT Vout = Virtual_output(
file = "vout.dat", bufsize = 0, type="double")
AT (0, 0, 10) RELATIVE source
END
More information about the mcstas-users
mailing list