[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 =B4text=A1 format but the =B4float=A1 and =B4double=A1 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=B8 National Laboratory
-------------- next part --------------
DEFINE INSTRUMENT input()

TRACE

COMPONENT Origin =3D Arm()
  AT (0,0,0) ABSOLUTE

COMPONENT source =3D Virtual_input(
    file =3D "vout.dat", type =3D "double", repeat_count =3D 10,
    bufsize =3D 0)
  AT (0, 0, 10) RELATIVE Origin

COMPONENT PSD =3D PSD_monitor(
    nx =3D 128, ny =3D 128, filename =3D "PSD", xmin =3D -0.1,
    xmax =3D 0.1, ymin =3D -0.1, ymax =3D 0.1)
  AT (0, 0, 0.1) RELATIVE source

END











-------------- next part --------------
DEFINE INSTRUMENT out()

TRACE

COMPONENT Origin =3D Arm()
  AT (0,0,0) ABSOLUTE


COMPONENT source =3D Source_flat(
    radius =3D 0.1, dist =3D 10, xw =3D 0.1, yh =3D 0.1, E0 =3D 5,
    dE =3D 0.5)
  AT (0, 0, 0) RELATIVE Origin


COMPONENT Vout =3D Virtual_output(
    file =3D "vout.dat", bufsize =3D 0, type=3D"double")
  AT (0, 0, 10) RELATIVE source

END












More information about the mcstas-users mailing list