Page 1 of 1

Problem with my field.sdds (MAPSOLENOID flag)

Posted: 28 Nov 2012, 05:24
by dadoun
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

Re: Problem with my field.sdds (MAPSOLENOID flag)

Posted: 29 Nov 2012, 11:18
by michael_borland
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

Re: Problem with my field.sdds (MAPSOLENOID flag)

Posted: 29 Nov 2012, 15:29
by dadoun
Mickel,

perfect it seems to work perfectly ...
Thank you very much
cheers
olivier

Re: Problem with my field.sdds (MAPSOLENOID flag)

Posted: 29 Nov 2012, 15:36
by dadoun
sorry for the typing error Michael
cheers
Olivier