Grasshopper

algorithmic modeling for Rhino

I want to analyze a tapered beam in Karamba- say an I-beam with variable depth. I believe there is no other way than to discretize it in N parts, where N is user-specified. And model each as a beam of constant depth.

However, the cross-sections component does not do this automatically - if i give it a list of N beam elements and N depths - it does not create N elements with corresponding depths of the array. 

So i believe the way out is via a script-component with the following pseudocode:

INPUT1 - list of N elements Elem[] by reference

INPUT2 - list of N depths Depth[]

INPUT3 - rest of cross-section inputs tf tw and b

Script Algorithm - 

for i from 1 to N 

  cross-section A = new cross-section(b, Depth[i],tf,tw)

   Elem[i].assigncrossection ( A ) 

 end for

 Can anyone point me to the actual syntax of the key steps here inside the for loop?  Am new to grasshopper scripting. C# would be my language of choice. Am not finding much help on scripting and coding in Karamba.

Views: 617

Replies to This Discussion

Dear Nimish,

please find attached a definition with a tapered I-beam.

Best,

Clemens

Attachments:

Hi Nimish and Clemens, and thank you for the model.

Is there a way to make an ACTUALLY tapered beam, instead of a stepped solution?

Alternatively, could I use a solid model of the beam for analysis?

Thanks in advance, Eduardo

Hi Castro,

you could model the tapered beam using shell elements or by dissolving it into a truss-like structure.

The question is whether the added complexity regarding model generation and evaluation really pays off.

Best,

Clemens

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service