ghMath - plugin for parametric design tool Grashopper

ghMath - plugin for parametric design tool Grashopper - Grasshopper component that allows to automate sMath calculations - Сообщения

#1 Опубликовано: 16.03.2019 11:11:38
Marcis Luksevics

Marcis Luksevics

4 сообщений из 1 понравились пользователям.

Группа: User

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.
4 пользователям понравился этот пост
sergio 16.03.2019 14:21:00, frapuano 16.03.2019 15:28:00, Andrey Ivashov 16.03.2019 18:14:00, Arie 04.04.2019 15:33:00
#2 Опубликовано: 09.03.2020 22:48:36
netsonicyxf

netsonicyxf

2 сообщений из 79 понравились пользователям.

Группа: User

very good extension for Engineers who use Smath and Grasshopper.

Any progress?

PS. https://github.com/mluksevics/ghMATH
#3 Опубликовано: 10.06.2020 12:50:22
Alexander O. Melnik

Alexander O. Melnik

127 сообщений из 494 понравились пользователям.

Группа: Moderator

Any progress on this? Just starting to learn grasshopper
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений