Hello,
I would like to simulate a solenoid using a field map provided by OPERA (and this is my first elegant simulation).
I have an ASCII field (field.txt) with 4 columns z,bz,r,br.
I have converted my field.txt into sdds format using this command :
plaindata2sdds field.txt field.sdds -inputMode=ascii -outputMode=binary -column=z,double,unit=m -column=Bz,double,unit=T -column=r,double,unit=m -column=Br,double,unit=T -noRowCount
I used this flag to incorporate the field map inside an elegante input file :
Sol: MAPSOLENOID, L=0.5,inputfile="field.sdds",ZColumn="z",BzColumn="Bz",RColumn="r",BrColumn="Br",dx=0,dy=0,etilt=0,eyaw=0,epitch=0
(I took the files given here http://tinyurl.com/brrsw5r)
When I run elegant I have this error:
Error: points are not monotonically increasing
Problem with z spacing of solenoid data from MAPSOLENOID file field.sdds (page 1)
Any ideas where this error comes from ?
by advance thank you
cheers
Olivier
Problem with my field.sdds (MAPSOLENOID flag)
Moderators: cyao, michael_borland
-
- Posts: 1933
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: Problem with my field.sdds (MAPSOLENOID flag)
Olivier,
Try using the following command to sort your field file:
sddscombine field.sdds -pipe=out -merge | sddssort -pipe -col=r,incr -column=z,incr | sddsbreak -pipe=in field1.sdds -change=r
--Michael
Try using the following command to sort your field file:
sddscombine field.sdds -pipe=out -merge | sddssort -pipe -col=r,incr -column=z,incr | sddsbreak -pipe=in field1.sdds -change=r
--Michael
Re: Problem with my field.sdds (MAPSOLENOID flag)
Mickel,
perfect it seems to work perfectly ...
Thank you very much
cheers
olivier
perfect it seems to work perfectly ...
Thank you very much
cheers
olivier
Re: Problem with my field.sdds (MAPSOLENOID flag)
sorry for the typing error Michael
cheers
Olivier
cheers
Olivier