hylovegj 发表于 2011-9-12 02:09:28

Isight4.0集成Patran2008和Nastran2007教程(原创)

Isight-FD与Patran/Nastran的集成困扰了我好长一段时间,最近在hhf_cas的帮助下终于取得了突破性性进展,为了帮助有同样困扰的朋友早日摆脱困扰,我抽了点时间写了个简单的教程。还是用的上次的那个甲板板架优化的例子,为了避免重复,没有包含前期准备的内容,需要了解相关内容的朋友请参考我的另一个帖子——iSIGHT集成Nastran实例教程(独家首发,版权所有) (http://forum.simwe.com/thread-973238-1-1.html)。
请下载的朋友尊重作者的劳动成果,不要发布到其它论坛上,谢谢合作!


hylovegj 发表于 2011-9-12 02:13:20

下面是教程用到的所有文件



kay 发表于 2011-9-12 08:38:15

支持原创,感谢hylovegj

xiaosen1989 发表于 2011-9-12 09:03:38

非常感谢楼主的共享,特别是这样的原创值得鼓励。

hhf_cas 发表于 2011-9-12 10:02:21

楼主不错,呵呵。不知道你后来偏心量的问题解决了没有?

hylovegj 发表于 2011-9-12 10:49:43

hhf_cas 发表于 2011-9-12 10:02 static/image/common/back.gif
楼主不错,呵呵。不知道你后来偏心量的问题解决了没有?

暂时没有,正在解决,飞哥也帮忙弄弄?呵呵!

hhf_cas 发表于 2011-9-12 11:14:17

hylovegj 发表于 2011-9-12 10:49 static/image/common/back.gif
暂时没有,正在解决,飞哥也帮忙弄弄?呵呵!

后续我关注一下,有消息告诉我哈

heartlee 发表于 2011-9-13 13:36:51

支持原创,谢谢

Menghui_555 发表于 2011-9-20 16:54:54

支持原创~

唯有时光 发表于 2011-9-21 00:07:45

谢谢分享,很有用的经验~~

einvltq 发表于 2011-9-21 11:31:04

hhf_cas 发表于 2011-9-12 10:02 static/image/common/back.gif
楼主不错,呵呵。不知道你后来偏心量的问题解决了没有?

偏心量 对后来的计算结果影响大吗?

hhf_cas 发表于 2011-9-21 14:32:38

einvltq 发表于 2011-9-21 11:31 static/image/common/back.gif
偏心量 对后来的计算结果影响大吗?

应该会有较大影响的,跟板的厚度关系很大

yuhu3641 发表于 2011-9-22 10:18:33

能不能免费呀

yuhu3641 发表于 2011-9-22 10:19:07

一点儿仿真币都没有真可怜

zxy123 发表于 2011-9-22 11:24:45

支持原创

hylovegj 发表于 2011-9-27 19:13:35

本帖最后由 hylovegj 于 2011-9-27 21:22 编辑

Guys,I think I have solved the problem of updating the offset of beam elements,all you need to do is to use the "Insert Java Statements"parsing tool to create a method(in other programming languages it is called function) to calculate the offset,and then use the "Insert Calculation"parsing tool to call the method.The source code of the method is as follows, float offset(String section)
    {
       int H,W,t;
       float area,static_moment;

       String[] size = section.split("[\\D]+");
       H = Integer.parseInt(size);
       W = Integer.parseInt(size);
       t = Integer.parseInt(size);
       area = (H-t)*t + W*t;
       static_moment = (float) ((H-t)*t*(H-t)/2.0 + W*t*(H-t/2.0));
       return static_moment/area;
    }In the method,I use the beam section specification,for example,"L125*80*8",as the input parameter.In the method body,first we extract the substrings standing for the sizes of the beam section,they are,as with the previous example,"125","80"and"8";then we transform the numerical substrings to their corresponding numerical values,that is,125,80 and 8;at last we calculate the offset and return it.
Please pay attension to the use of regular expresion and forced type conversion.

juntaozhou 发表于 2011-9-29 15:21:46

顶一下楼主。

caiweijun 发表于 2011-12-7 16:09:45

yuhu3641 发表于 2011-9-22 10:18 static/image/common/back.gif
能不能免费呀

值得啊,好好

阳光就够了 发表于 2011-12-30 18:59:57

感谢楼主,真是好东西啊

xiaoerh 发表于 2012-3-12 23:28:53

好东西,学习了
页: [1] 2 3
查看完整版本: Isight4.0集成Patran2008和Nastran2007教程(原创)