Skip to content

Commit 8efe33f

Browse files
committed
Anchor.getSizeAnchor updates to support previous anchor design work
To start, I created a new "display" variable that can toggle on/off print statements--in anchor.py and capacity function files--to make the output file clear to read - NOTE: This was only done for suction piles and dandg piles. The display parameter will have to be called from the other anchor type capacity function scripts, which I did not prioritize right now Second, I ran into problems with anchor.dd['type'] values not being exact strings of 'suction', 'dandg', etc. - I corrected the type values in my Project on my front-end, but also added a check in Anchor.__init__ to make sure the type values are exactly what they should be - In makeMoorPyAnchor, it references MoorPy.getPointProps['AnchorProps'], which contain cost information for certain types of anchors. If the anchor type does not exist in getPointProps (e.g., 'dandg'), then it defaults to a suction pile getSizeAnchor - Implemented functionality to support safety factors on different components (includes Hm, Vm, and UC right now) - Updated a lot of if statements to check for the anchType just in case the string is something different but includes the main anchor type name - Added a constraint function for the design variable bounds, since COBYLA does not recognize bounds - Moved the code that updated the anchor design dictionary and recalculated the capacity to the first constraint function, since with COBYLA, the constraints are evaluated first, and this led to UC's that didn't correspond - Added a check to the dandg (and driven/helical) sections to ensure the L/D constraints were being met - - However, the UC constraints weren't being met; this may require a reevaluation of the methods that we're using for design, since we're not using COBYLA for these anymore Updated getSizeAnchor2 to work with what I had too capacity_suction bounds upgrade for design iterations that have a L/D greater than 6
1 parent fab3388 commit 8efe33f

File tree

4 files changed

+164
-113
lines changed

4 files changed

+164
-113
lines changed

0 commit comments

Comments
 (0)