Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline luksevics  
#1 Posted : 16 March 2019 17:11:38(UTC)
luksevics

Rank: Newbie

Groups: Registered
Joined: 07/11/2013(UTC)
Posts: 1
Latvia

Was thanked: 4 time(s) in 1 post(s)
Hi there,

Wanted to share the recent Grasshopper plugin I have written:
https://www.food4rhino.com/app/ghmath

Plugin is free and open source:
https://github.com/mluksevics/ghMATH

Grasshopper is a popular tool within civil engineering and architecture design. The plugin operates with sMath XML format and provides a way how to "embed" sMath spreadsheets within the parametric design process.

The intention of this Grasshopper plugin is to prove the concept. And hopefully, promote a new approach in the way how design checks' calculations could be done and recorded.

So using ghMath you can define the "logic" of calculation using sMath and then rapidly iterate through many sets of input data to optimize the design (e.g using evolutionary solvers). Eventually, you can save the final calculations file as output. Few of potential uses for component are:

Quickly implement math equations/logic into Grasshopper, without many grasshopper blocks. e.g. deflection and/or stress calculation;
Use Galapagos/Ocotopus plugins to optimize the size of the member for full utilization;
Use this plugin in combination with Karamba or manual load take-down scripts to check/optimize elements.

Currently, the plugin supports all basic math operators, pow, sqrt, min, max, log, and trigonometric functions. It does not support integrals, conditional statements, and any advanced features.

I have provided two relatively simple examples, more power can be unleashed by combining the plugin with reading input from excel using Lunchbox plugin, stepping through multiple calcs using Anemone, or Karamba combining analysis output with member checks with sMath.

Background for the creation of this plug-in:

The idea of this plugin came from looking at different ways of producing design calculations. And none of them is ideal.
So what does the ideal "design calculation" looks like?

In this post I refer to "design calculation" as one in engineering that checks element/connection for compliance to code or first principles. e.g. reinforcement area calculation, steel column buckling check etc.

Software/approach independent points:

  • Engineer should understand trust the calculation.
  • Code references shown;
  • Process should work well with other existing processes within the company.


Points where "visual software" (MathCAD, sMath, or hand calculations) are better

  • The logic of calculation must be clearly described.
  • Output should be visually well formatted with units described.
  • The calculation must be easily check-able.
  • Calculation should be adjustable to particular project needs.
  • Inputs and outputs should be clearly indicated.


Points where Excel or custom-scripted calculation forms are better:

  • Calculation should be able to perform checks for static results from many different programs.
  • Tools already developed allow to transfer data from the majority of general FEA analysis packages to Grasshopper. e.g. check out the work of my former colleagues from BuroHappold https://bhom.xyz/
  • Design calculations for many combinations/members should be automated.
  • Calculation should be able to interact with optimization tools. e.g. evolutionary solvers.


Additional points:

  • Saved calculation file must be in “open format” (.e.g. sMath saves data in XML, whereas Mathcad in closed format)


ghMath and the general approach of creating "visual calculation" and then pushing it through automation process aims to combine the benefits of two software groups mentioned above.

Edited by user 16 March 2019 17:14:31(UTC)  | Reason: Not specified

thanks 4 users thanked luksevics for this useful post.
on 16/03/2019(UTC),  on 16/03/2019(UTC),  on 17/03/2019(UTC),  on 04/04/2019(UTC)
Offline netsonicyxf  
#2 Posted : 10 March 2020 04:48:36(UTC)
netsonicyxf


Rank: Member

Groups: Registered
Joined: 10/03/2020(UTC)
Posts: 10

very good extension for Engineers who use Smath and Grasshopper.

Any progress?

PS. https://github.com/mluksevics/ghMATH
Offline Alex M.  
#3 Posted : 10 June 2020 18:50:22(UTC)
Alex M.


Rank: Advanced Member

Groups: Registered
Joined: 03/03/2014(UTC)
Posts: 406
Canada

Was thanked: 119 time(s) in 92 post(s)
Any progress on this? Just starting to learn grasshopper
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.