parameter output of "linked" & "divided" elements

Moderators: michael_borland, soliday

Post Reply
michael_abo-bakr
Posts: 2
Joined: 29 Oct 2013, 11:46

parameter output of "linked" & "divided" elements

Post by michael_abo-bakr » 16 Nov 2020, 08:32

Hello,

looking to the lattice element parameters, saved when requested in run_setup, the value of a linked element seems to be wrong if "element_divisions" is larger than 1.
I have to admit using, a somewhat outdated version (2019.1.1) but I couldn't find any hints, that this has been a topic already ...

I attach two condensed files.

Thank you & take care, Michael
Attachments
Test.ele
(1006 Bytes) Downloaded 183 times
lat_saved.lte
(554 Bytes) Downloaded 186 times

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

Re: parameter output of "linked" & "divided" elements

Post by michael_borland » 25 Nov 2020, 16:32

Michael,

When dealing with divided elements, it is important to remember that all the divisible properties will appear in their subdivided form in any expressions. Hence, you need to modify the equation to reflect the division. See attached.

--Michael
Attachments
Test.ele
(973 Bytes) Downloaded 190 times

michael_abo-bakr
Posts: 2
Joined: 29 Oct 2013, 11:46

Re: parameter output of "linked" & "divided" elements

Post by michael_abo-bakr » 26 Nov 2020, 11:21

Michael,

that works fine!

I was using this within an optimization - so I was additionally confused since also the limit values of the optimization variables are affected!

I think for "additive" element parameters like length or angle the optimization_variable definition (of every element?) must include the devision too:

Code: Select all

&rpn_expression  expression = "10 sto div"  &end

&run_setup
...
    element_divisions = "(div)",
...
&end

&optimization_variable
	name = BB, item=L, upper_limit="<UpperLimit_orig> div /", lower_limit="<LowerLimit_orig> div /"
&end
Thanks a lot,

Michael

Post Reply