I used vary_element for a few investigations. Now I want to vary several elements independently.
If I use
Code: Select all
&vary_element name=MAL item=DP index_limit=11 initial=-0.01 final=0.01 &end
&vary_element name=MAL2 item=DX index_limit=11 initial=-0.005 final=0.005 &end
&vary_element name=MAL3 item=DY index_limit=11 initial=-0.005 final=0.005 &end
&vary_element name=MAL4 item=DXP index_limit=11 initial=-0.005 final=0.005 &end
&vary_element name=MAL5 item=DYP index_limit=11 initial=-0.005 final=0.005 &end
Is it possible to vary the elements in elegant independently or to use a general for-loop?
I tried it by using index_number, but every time I use a number not equal to zero elegant will not run:
Code: Select all
&vary_element name=MAL1 item=DP index_number=0 index_limit=11 initial=-0.01 final=0.01 &end
&vary_element name=MAL2 item=DX index_number=1 index_limit=11 initial=-0.005 final=0.005 &end
&vary_element name=MAL3 item=DY index_number=2 index_limit=11 initial=-0.005 final=0.005 &end
&vary_element name=MAL4 item=DXP index_number=3 index_limit=11 initial=-0.005 final=0.005 &end
&vary_element name=MAL5 item=DYP index_number=4 index_limit=11 initial=-0.005 final=0.005 &end
I attached my files.
Thank you in advance
Felix