Scan-and-Solve for Rhino

Simulate Early, Simulate Often... In Rhino

A user asked for the ability to output solution values at the location of text dots.  I've added to the documentation a script that does that.  The script can be viewed at this link.

As an example, the following solution (+ dots):

Outputs to the following text file:

To change the queried value, specify a differerent tag at line 11.  Valid tags include:

Solution Component Component Tag String
X-Displacement DSPX
Y-Displacement DSPY
Z-Displacement DSPZ
Total Displacement DSPT
Stress XX SIGXX
Stress YX SIGYX
Stress YY SIGYY
Stress YZ SIGYZ
Stress ZX SIGZX
Stress ZY SIGZY
Stress ZZ SIGZZ
Max. Principal Stress SIG1
Mid. Principal Stress SIG2
Min. Principal Stress SIG3
Von Mises Stress VONM
Strain XX EPSXX
Strain XY EPSXY
Strain XZ EPSXZ
Strain YX EPSYX
Strain YY EPSYY
Strain YZ EPSYZ
Strain ZX EPSZX
Strain ZY EPSZY
Strain ZZ EPSZZ
Max. Principal Strain EPS1
Mid. Principal Strain EPS2
Min. Principal Strain EPS3
Danger Level (Von Mises) DGRVM
Danger Level (Shear Stress) DGRSS
Danger Level (Rankine) DGRRK
Danger Level (Coulomb Mohr) DGRCM
Danger Level (Modified Mohr) DGRMM

Views: 385

Reply to This

Replies to This Discussion

Hi Michael,

Thanks for this example. I'm new to using Scan&Solve , and having some trouble getting the basic scripted examples working.

I'm able to run the analysis and view the result, but it seems the result is not saved, so the script gives the error "no solution exists, cannot query". Also if I run the analysis, click Done, then run SnS again, the results are no longer there.

I'm currently using build 2016.8.2.0 (the evaluation version), though we do have a license for the full version in the office.

Thanks,

Daniel

Hello Daniel,

In the evaluation version, the SnS dialog interface does not save solution results on the object.  What you can do instead is call Solve(GUID,resolution) inside your script.  Documentation:

  http://www.intact-solutions.com/snsscript_documents/solving.htm

Calling this will solve the problem and results will become available.

Does this help?

Michael

Great - yes that does help. Thank you!

RSS

FOLLOW SCAN&SOLVE

© 2020   Created by Michael Freytag.   Powered by

Badges  |  Report an Issue  |  Terms of Service