vitess codes

Kristian Nielsen kristian.nielsen at risoe.dk
Wed Jun 14 17:20:29 CEST 2000


Hi Geza,

I made some changes to the translation of the McStas vanadium sample
into a VITESS module. This version actually works in a VITESS pipe, the
one I send you previously does not. I have included it as attachment.

I modified the sampleinelasttest.gui example to use the McStas
translated vanadium sample instead. It seems to work fine. Here is the
pipe command:

./source_Linux -S1 -Z5 -B10000 -L/tmp/knvpipelog1 -K0 -W5 -H5 -n100000 -y0 -z0 -m6 -M6 -t0 -T0 -D0 -w1000 -h1000 | \
./V_sample_Linux -Z5 -B10000 -L/tmp/knvpipelog2 -i0.01 -o0.02 -h0.03 -p1 -r0 -a0 -b0 -c0 -x0.05 -y0 -z0| \
./monitor1_Linux -k3 -Z5 -B10000 -L/tmp/knvpipelog3 -Odivy.dat -n50 -m-50 -M50 -p1 -e0 | \
./monitor1_Linux -k4 -Z5 -B10000 -L/tmp/knvpipelog4 -Odivz.dat -n50 -m-5 -M5 -p1 -e0 | \
./monitor1_Linux -k1 -Z5 -B10000 -L/tmp/knvpipelog5 -Olambda.dat -n100 -m4 -M8 -p1 -e0 | \
./monitor2_Linux -Z5 -B10000 -L/tmp/knvpipelog6 -Opos.dat -y100 -z100 -w-2 -W2 -h-2 -H2 -p1 -e0 | \
./monitor1_Linux -k2 -Z5 -B10000 -L/tmp/knvpipelog7 -Otime.dat -n50 -m1.45 -M1.6 -p1 -e0 -Fnoutput.dat

The vanadium parameters are
  -i  Inner radius of hollow cylinder, in meters
  -o  Outer radius of hollow cylinder, in meters
  -h  Sample height, in meters
  -p  Packing factor (relative density)
  -r  If >0, neutrons are only scattered towards target sphere of this radius
  -a  Target sphere x coordinate
  -b  Target sphere y coordinate
  -c  Target sphere z coordinate
  -x  Sample position x coordinate
  -y  Sample position y coordinate
  -z  Sample position z coordinate

See http://neutron.risoe.dk/mcstas/mcdoc/components/samples/V_sample.html
and the McStas manual for more info.

The commands to generate the module are

  mcstas --no-main V_sample-vitess.instr
  gcc -g -o V_sample_Linux V_sample-vitess.c vitess-lib.c -lm

I have also attached a Linux executable of the module.

As an aside, the module did not work initially, and the reason turned
out to be that when the neutrons leave the source module in the
sampleinelasttest example, they are already inside the sample! I was
just wondering whether the neutrons are actually going backwards in time
in the VITESS simulation? Maybe this is a small bug or maybe intended
behaviour?

 - Kristian.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: V_sample-vitess.instr
Type: application/octet-stream
Size: 1386 bytes
Desc: not available
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20000614/b49b7c6c/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: V_sample_Linux.gz
Type: application/octet-stream
Size: 32569 bytes
Desc: not available
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20000614/b49b7c6c/attachment-0001.obj>


More information about the mcstas-users mailing list