Page 1 of 1

parameter output of "linked" & "divided" elements

Posted: 16 Nov 2020, 08:32
by michael_abo-bakr
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

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

Posted: 25 Nov 2020, 16:32
by michael_borland
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

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

Posted: 26 Nov 2020, 11:21
by michael_abo-bakr
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