Problem with my field.sdds (MAPSOLENOID flag)

Moderators: cyao, michael_borland

Post Reply
dadoun
Posts: 3
Joined: 22 Nov 2012, 08:12

Problem with my field.sdds (MAPSOLENOID flag)

Post by dadoun » 28 Nov 2012, 05:24

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

michael_borland
Posts: 1933
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

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

Post by michael_borland » 29 Nov 2012, 11:18

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

dadoun
Posts: 3
Joined: 22 Nov 2012, 08:12

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

Post by dadoun » 29 Nov 2012, 15:29

Mickel,

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

dadoun
Posts: 3
Joined: 22 Nov 2012, 08:12

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

Post by dadoun » 29 Nov 2012, 15:36

sorry for the typing error Michael
cheers
Olivier

Post Reply