Rhino and YJK finally achieve real-time linkage, and it’s bidirectional!
Rhino and YJK finally achieve real-time linkage, and it’s bidirectional!
Official Account: Non-Deconstructive · Author: Zhou Wenqi (Venchy)
相信很多结构工程师都对Rhino爱不释手,它强大的几何图形处理能力,和它的开放性带来的众多算法资源,再结合Grasshopper这样的可视化编程平台,可以使我们结构工程师的工作效率得到很大的提升。然而,由于目前结构工程师的工作流程中尚未出现比较方便的整合工具。Rhino的使用,对于很多的结构工程师来说还是有相当高的门槛,它无法和YJK建立直接有效的联系。很多结构工程师只能通过二次开发的手段,建立Rhino和诸如Sap2000或者Etabs这类软件的联系,对大部分结构工程师来说,这些软件的应用面是有限的,更不要说Grasshopper平台自带的有限元分析插件。这进一步导致了Rhino在结构设计领域成为了一款非常小众的软件。一线的结构工程师无法充分利用Rhino的优势,只能望洋兴叹。
In order to solve this problem, more structural engineers can make full use of the various resources provided by Rhino and Grasshopper to improve our work efficiency and work quality. Based on YJK-GAMA, we developed a real-time linkage interface between Grasshopper and YJK-GAMA. Through this interface, the data on YJK-GAMA and Grasshopper can be linked in real time in both directions, and YJK can seamlessly call and connect any resources on the Rhino and Grasshopper platforms.
Introduction to the interface between YJK-GAMA and Grasshopper
As shown below is the GH interface of YJK-GAMA, including sending and receiving data. Common basic data types, such as Boolean values, integers, real numbers and other types of data can be transferred through interface cards. Commonly used geometric objects, including straight lines, curves, arcs, circles, planes, etc. also have corresponding cards for data transfer.
The data transfer between YJK-GAMA and Grasshopper is very simple. Take the transfer of floating point numbers from GAMA to Grasshopper as an example. As long as the data to be transferred is prepared on GAMA and connected to the sending data card, Grasshopper will automatically create a battery in the center of the canvas to receive floating point numbers. This battery is the same as the data received in the sending card on the GAMA side. vice versa. Only a very simple interface card is needed to realize data transfer.
YJK calls Grasshopper for form finding
Introduction to Kangaroo: Kangaroo is the built-in physics engine of Grasshopper. Currently, many architects use Kangaroo for shape finding. We can set relevant structural components and boundary conditions through Kangaroo on the Grasshopper platform to achieve the purpose of finding the shape with the highest structural efficiency. Through the YJK-GAMA interface, we can link the Kangaroo form-finding results to achieve real-time update of the structure obtained by form-finding in YJK.
下面,我们通过这个简单的案例,来说明Kangaroo和YJK是如何实现实时联动的。根据之前演示的Kangaroo找形的结构,我们可以通过Rhino自带的发送曲线卡片,将找形得到的各结构构件传送至YJK中,从而直接在YJK中建立Kangaroo找形得到的模型。
After passing the modeling data to YJK, you can define the corresponding component attributes and other information in YJK-GAMA. After the definition is completed, the finite element analysis model can be established. We can directly control the model in YJK through Grasshopper’s slider. In this way, real-time linkage between the form-finding algorithm on the Grasshopper platform and the YJK model can be achieved.
Through the above simple operations, we have achieved efficient linkage between YJK and Grasshopper. YJK, which seemed to have nothing to do with form-finding in the past, can also easily access richer and more efficient analysis methods with the support of YJK-GAMA. Currently, on the Grasshopper platform, in addition to Kangaroo, there are also a series of shape-finding tools such as 3D Graphic Statics, EMU, etc. You can find different shape-finding tools in Grasshopper according to your needs.
通过Grasshopper对YJK模型数据进行分析
The smooth forward and reverse data transfer between GAMA and Grasshopper can also provide more possibilities for analyzing existing YJK model data. Based on the existing functions of YJK-GAMA, engineers have already produced relevant analysis tools. Data transmission with Grasshopper can provide the possibility for the production of more powerful analysis tools.
通过GAMA将YJK数据发送到Grasshopper中,我们可以获得更强的分析能力。如下图所示,我们可以读取已有YJK模型,然后通过接口将几何数据传送到Rhino中。将YJK中的数据传递给Grasshopper后,我们可以使用Grasshopper中的分析工具对模型进行统计分析,获得我们想要的数据。另外,当前诸如Archicad等BIM软件都已经开发了和Grasshopper实时联动的插件,我们可以通过GAMA传递相关的构件参数至Grasshopper中,实现多场景下的模型联动。
Summarize
Many users are asking, what are the advantages of YJK-GAMA compared to Grasshopper? From our point of view, the relationship between YJK-GAMA and Grasshopper is not one of me and another, but a complementary relationship. Grasshopper is a very versatile plug-in that integrates Rhino’s powerful geometric processing capabilities and is also very open. It has formed an ecosystem of a certain scale. However, there has not yet been a better expansion for domestic structural design scenarios. YJK-GAMA’s practice of parametric design based on structural design makes up for Grasshopper’s shortcomings in this field. YJK-GAMA can be better integrated into the workflow of structural engineers. The two-way data interaction between YJK-GAMA and Grasshopper can greatly simplify the difficulty of structural engineers using tools such as form finding and optimization algorithms in actual work, allowing structural engineers to have more means to conduct corresponding analyses. At the same time, the simple data interaction logic can help structural engineers simply obtain the data in the model. Based on the model data, more methods can be used to analyze the model. At the same time, you can also use the interface of the Grasshopper platform to interact with more other software.
该功能已经在YJK-GAMA1.2版本上线,欢迎各位下载使用。下载链接:盈建科官网 http://www.yjk.cn/article/1098/
Of course, YJK-GAMA has far more functions than these. Join the QQ group and let’s explore the infinite possibilities of YJK-GAMA! We will bring you more surprises in the future, so follow our official account! If you have any questions, you can also contact us directly at “Da Feier”.
*This document is automatically collected and organized by AI from non-deconstructed public accounts and is for learning reference only. *
Original Source: https://mp.weixin.qq.com/s/MMxo4MNkDg2BgtJ52yXxoQ
LOADING…