Lattice command
Lattice command
Can you explain what Lattice command do, say if i define a FODO with lattice command and i only define the fodo elements but not keep with in lattice command . Then what will be the difference?
Re: Lattice command
Dear Sir, Hello
I don't understand what you're asking. Please be more specific. Some examples ?
Regards,
Didier
I don't understand what you're asking. Please be more specific. Some examples ?
Regards,
Didier
Re: Lattice command
say i have one structure file like Lattice 2 1 ,drift, quad, drift, quad, drift, lattice_end and another i dont use Lattice command so structure file like drift, quad, drift, quad, drift and transport beam in both how the result is different or what is difference between this two structure file.
can you explain when to use lattice command
can you explain when to use lattice command
Re: Lattice command
Dear Sir,
DIRFT QUAD DRIFT QUAD, normally it's LATTICE 4 1, because your period is made up of 4 elements.
Anyway, this lattice command doesn “t change anything to the simualion in these elements, it just allows the code to know your period in order to calculate the phase advances according to the period you're defined.
Regards,
Didier
DIRFT QUAD DRIFT QUAD, normally it's LATTICE 4 1, because your period is made up of 4 elements.
Anyway, this lattice command doesn “t change anything to the simualion in these elements, it just allows the code to know your period in order to calculate the phase advances according to the period you're defined.
Regards,
Didier
Re: Lattice command
is lattice 2 2 can be used instead of lattice 4 1
Re: Lattice command
In your case, I don't think so.
Re: Lattice command
i want to get the best value of quad strength which match the beam with given twiss parameter, how to do? my structure file is like:
DRIFT 200 100
MATCH_FAM_GRAD 1 1
QUAD 100 20 100
DRIFT 400 100
MATCH_FAM_GRAD 1 2
QUAD 100 -20 100
DRIFT 200 100
set_twiss 1 -1.246384 1.002772 1.246384 1.002772 0 0 (desired twiss at input and output)
END
is it correct ? i am not getting change in quad strength from 20
DRIFT 200 100
MATCH_FAM_GRAD 1 1
QUAD 100 20 100
DRIFT 400 100
MATCH_FAM_GRAD 1 2
QUAD 100 -20 100
DRIFT 200 100
set_twiss 1 -1.246384 1.002772 1.246384 1.002772 0 0 (desired twiss at input and output)
END
is it correct ? i am not getting change in quad strength from 20
Re: Lattice command
Dear Sir,
Follow the right syntax :
Generally speaking, I can't check whether what you're doing is correct without your project configuration files. On the other hand, I suggest you don't use this method (MATCH8FAM_XXX...) but rather the ADJUST commands associated with diagnostic elements such as DIAG_XXX. It''s easier to andestand and use and powerful.
Regards,
Didier
Follow the right syntax :
Code: Select all
DRIFT 200 100
MATCH_FAM_GRAD 1 1
QUAD 100 20 100
DRIFT 400 100
MATCH_FAM_GRAD 1 2
QUAD 100 -20 100
DRIFT 200 100
set_twiss 1 -1.246384 1.002772 1.246384 1.002772 0 0 0 0 0 0 1 1
DRIFT 0 100
END
Regards,
Didier