generative modeling for Rhino
Here's a thread for questions and suggestions specific to the Geometry Gym addon to interact with SAP2000 Structural Analysis. Note you can filter my blog for posts/examples specific to SAP 2000 using the tag cloud or this link here:
First post relates to questions raised here: http://www.grasshopper3d.com/xn/detail/2985220:Comment:597170?xg_so...
SAP2000 uses slightly different terms to other structural analysis software (ie Load Patterns are equivalent to Load Cases in most other software). I am trying to do my best to ensure the GH plugin terminology matches, but still needs improving and this doesn't help with what connects to what. If you spot something you think can be improved, please let me know.
I've attached my subtle changes to your GH def. Note that at least one of the forces needs to be activated to true to get results to emit.
I had a request to report stress the other day, but when I went to check you can only extract the force using the API, so I need to find some time to do some additional coding to calculate these from the section properties. Axial force you might be able to quickly calculate from the force using GH components.
Note also I recently enabled the ability to nominate the SAP model units (ie Feet and kips) from a right click on the ssiBake button. This should be done prior to the first exchange to SAP, so either save, close and restart Rhino, or disable the solver prior to first opening the model to make the change.
Hope it helps, look forward to hearing more.
Thanks a lot Jon for your complete explanation.
I was wondering to ask you is it possible to have all the results table after analyzing with SAP in an excel file? (I meant in the way that the SAP already has in Display-> show tables)
Glad it helped.
I believe there are a few addons that interact Grasshopper with spreadsheets so this is certainly possible (one option might be to delimit data with commas and stream to a .csv file). I'm not an expert in this, I was thinking the other day how prolific my use of spreadsheets were to generate Autocad and Rhino models and how Grasshopper has obliterated this (in effect each component is a bit like a spreadsheet cell). If you search for spreadsheet or excel on the group you should find help on this topic. I will take a look at perhaps providing the text data in a format consistent with the SAP output for tables.
Thanks Jon for all your help,
I don't have problem importing spreadsheets in Grasshopper, my question is, since the SAP does not automatically save the analysis result in an excel file, we need to write a code using API to do so.
Since I am working on the optimization problem, I cannot save the SAP results manually each time as an excel file.
I was wondering to ask you if you have already developed any component that save the SAP result for each analysis as an excel or text file. Or, If you have any comportment that has all the analysis results in it, so I can use that component and convert it to an excel file.
Really appreciated your help.
Here's a nice demonstration of interacting SAP2000 solver with Galapagos by Thornton Tomasetti using the Geometry Gym connector.