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
parameter output of "linked" & "divided" elements
Moderators: michael_borland, soliday
-
- Posts: 2
- Joined: 29 Oct 2013, 11:46
parameter output of "linked" & "divided" elements
- Attachments
-
- Test.ele
- (1006 Bytes) Downloaded 197 times
-
- lat_saved.lte
- (554 Bytes) Downloaded 201 times
-
- Posts: 1818
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: parameter output of "linked" & "divided" elements
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
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 203 times
-
- Posts: 2
- Joined: 29 Oct 2013, 11:46
Re: parameter output of "linked" & "divided" elements
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:
Thanks a lot,
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
Michael