python调用hypermesh调用tcl_Python fc-hypermesh包_程序模块 - PyPI - Python中文网

该博客演示了如何使用Python的fc_hypermesh包来调用Hypermesh并执行TCL脚本,进行三维(simplicial)和五维(orthotope)网格的生成。代码示例显示了不同参数下网格生成的时间性能。
摘要由CSDN通过智能技术生成

importfc_hypermeshfc_hypermesh.bench_gen(3,'simplicial',[[-1,1],[-1,1],[-1,1]],range(20,170,20))

The output of this code is:# BENCH in dimension 3 with simplicial mesh

#d: 3

#type: simplicial

#box: [[-1, 1], [-1, 1], [-1, 1]]

#desc: N nq nme time(s)

20 9261 48000 0.214

40 68921 384000 0.211

60 226981 1296000 0.274

80 531441 3072000 0.363

100 1030301 6000000 0.492

120 1771561 10368000 0.679

140 2803221 16464000 0.951

160 4173281 24576000 1.323importfc_hypermeshfc_hypermesh.bench_gen(5,'orthotope',[[-1,1],[-1,1],[-1,1],[-1,1],[-1,1]],[5,10,15,20,25,27])

The output of this code is:# BENCH in dimension 5 with orthotope mesh

#d: 5

#type: orthotope

#box: [[-1, 1], [-1, 1], [-1, 1], [-1, 1], [-1, 1]]

#desc: N nq nme time(s)

5 7776 3125 0.468

10 161051 100000 0.512

15 1048576 759375 0.738

20 4084101 3200000 1.223

25 11881376 9765625 2.542

27 17210368 14348907 3.350

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值