No subject
Yuan, Peng
yuan at phonon.ssd.ornl.gov
Thu Sep 7 20:33:33 CEST 2000
Hi,
I am a new user of McStas. I have a problem each time when using McStas to generate c code.
When I using:
mcstas curved_bender.instr
It says:
' in file 'curved_bender.instr', line 1.
parse error, expecting `"NXDICT"' or `"NXDICTFILE"' or `"TRACE"' at line 1.
Errors encountered during parse.
Would you please give me some advice?
Many advanced thanks.
The curved_bender.instr is like this:
DEFINE INSTRUMENT curved_bender()
TRACE
COMPONENT source = Source_flat(radius = 0.015, dist = 1,
xw=0.024, yh=0.015, E0=8, dE=7)
AT (0,0,0) ABSOLUTE
COMPONENT slit1 = Slit(xmin=-0.02, xmax=0.02,
ymin=-0.02, ymax=0.02)
AT (0, 0, 2) RELATIVE source ROTATED (0, 0, 0) RELATIVE source
COMPONENT arm = Arm()
AT (0, 0, 2) RELATIVE source ROTATED (0, 0, 0) RELATIVE source
COMPONENT bender = Bender(w=0.04, h=0.04, r=65, d=0, Win=0.046154,
k=10, R0a=1.0, Qca=0.022, alphaa=3.64, ma=3.5,Wa=0,
R0i=1.0, Qci=0.022, alphai=3.64, mi=3.5,Wi=0,
R0s=1.0, Qcs=0.022, alphas=3.64, ms=3.5,Ws=0,)
AT (0,0,0) RELATIVE arm ROTATED (0, 0, 0) RELATIVE arm
COMPONENT slit2 = Slit(xmin=-0.02, xmax=0.02,
ymin=-0.02, ymax=0.02)
AT (0, 0, 2.9989) RELATIVE arm ROTATED (0,-0.046154,0) relative arm
COMPONENT monitor = L_monitor(nchan=100, filename="cR65Ch10.wl",
xmin=-0.1, xmax=0.1, ymin=-0.1, ymax=0.1,
Lmin=1, Lmax=15)
AT (0,0,0) RELATIVE slit2 ROTATED (0, 0, 0) RELATIVE slit2
END
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20000907/de61b84c/attachment.html>
More information about the mcstas-users
mailing list