当前位置:网站首页>ABAQUS 使用RSG绘制插件初体验
ABAQUS 使用RSG绘制插件初体验
2022-06-22 18:10:00 【shengyutou】
大概工作流为:
- 将操作过程记录并修改为.py文件,即将操作转为函数,也就是后面kernel调用的对象。
- 为函数的变量定义默认参数,并且在RSG里面定义对应的参数名称,变量类型。
- 在RSG里面进行界面排版。 保存在相应位置。




kernel
# -*- coding: mbcs -*-
#
def Create_cube(part_name="cube",L=200,W=50,H=20):
from abaqus import *
from abaqusConstants import *
from caeModules import *
from driverUtils import executeOnCaeStartup
executeOnCaeStartup()
Mdb()
#: A new model database has been created.
#: The model "Model-1" has been created.
session.viewports['Viewport: 1'].setValues(displayedObject=None)
s = mdb.models['Model-1'].ConstrainedSketch(name='__profile__',
sheetSize=200.0)
g, v, d, c = s.geometry, s.vertices, s.dimensions, s.constraints
s.setPrimaryObject(option=STANDALONE)
s.rectangle(point1=(0.0, 0.0), point2=(L, W))
p = mdb.models['Model-1'].Part(name= part_name, dimensionality=THREE_D,
type=DEFORMABLE_BODY)
p = mdb.models['Model-1'].parts[part_name]
p.BaseSolidExtrude(sketch=s, depth=20.0)
s.unsetPrimaryObject()
p = mdb.models['Model-1'].parts[part_name]
边栏推荐
- Pull down refresh and pull up to load more listviews
- 实验七 触发器
- Notes on new reports
- 使能伙伴,春节重大保障“不停歇”
- 2022 R2 mobile pressure vessel filling test question simulation test platform operation
- 贪心之分配问题(1)
- 小波变换db4进行四层分解及其信号重构—matlab分析及C语言实现
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- 插槽里如何判断text为数组
- 一款支持HomeKit的摄像头?智汀 IPC摄像头IC1开箱体验
猜你喜欢

下拉刷新及上拉加载更多的ListView

智能家居不知如何选?不妨看下这篇选购指南

STM32控制矩阵按键,HAL库,cubeMX配置

How much do you know about the bloom filter and cuckoo filter in redis?

【干货|接口测试必备技能-常见接口协议解析】

IPLOOK作为O-RAN联盟会员,将共同促进5G产业发展
Getting started with database connection pooling (c3p0, Druid)

Cookie encryption 3+rpc solution

AUTOCAD——五种标注快捷键

Digital commerce cloud: analyze the design idea of B2B2C multi-user mall system architecture, and open a new era of intelligent mall
随机推荐
贪心之区间问题(2)
加工制造业智慧采购系统解决方案:助力企业实现全流程采购一体化协同
mysql数据库设计
Niuke.com: consolidation interval
回文数(简单版)
到底使用Thread还是Service?
In the first half of the year, there were 7 new unicorns in this field, and the capital scrambled to enter the market
Shell script explanation (IV) -- while loop and until loop of loop statements (additional examples and analysis)
Service practice: use service to complete a download task
下拉刷新及上拉加载更多的ListView
Zynq UltraScale + RFSoC ZCU111 RF时钟树学习 1
最长公共子序列
同花顺难开户么?网上开户安全么?
Iplook, as a member of o-ran alliance, will jointly promote the development of 5g industry
使能伙伴,春节重大保障“不停歇”
Niuke.com: judge whether it is palindrome string
贪心之区间问题(1)
std::enable_ shared_ from_ This error: error: expected template name before '<' token
ActiveReports报表实战应用教程(十九)——多数据源绑定
Flutter系列-搭建Flutter开发环境