当前位置:网站首页>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]
边栏推荐
- [dry goods | necessary skills for interface testing common interface protocol analysis]
- AIOps 智能运维经验分享
- 小波变换db4进行四层分解及其信号重构—matlab分析及C语言实现
- 数字赋能机械制造业,供应链协同管理系统解决方案助力企业供应链再升级
- 【干货|接口测试必备技能-常见接口协议解析】
- Shell script (V) -- function
- 机械设备行业数字化供应链集采平台解决方案:优化资源配置,实现降本增效
- what? Homekit, Micah, aqara and other ecosystems can also be linked with tmall elf ecology through zhiting?
- PAT甲级1093 Count PAT‘s (25分)
- 20billion vs 5billion, how much is the "dehydration" little red book worth?
猜你喜欢

How to manage tasks in note taking software such as flowus and notation?

线程池:ThreadPoolExcutor源码阅读

2022 R2 mobile pressure vessel filling test question simulation test platform operation

wpa_ State machine migration of supplicant

20billion vs 5billion, how much is the "dehydration" little red book worth?

Detailed explanation of session mechanism and related applications of session

新唐NUC980使用记录:开发环境准备与编译配置基础说明

2年狂赚178亿元,中国游戏正在“收割”老外

Iplook and SBC establish long-term cooperation

PostgreSQL 字符串分隔函数(regexp_split_to_table)介绍以及示例应用
随机推荐
Robotframework installation tutorial
session机制详解以及session的相关应用
Notes on Combinatorics (V) chains in distributive lattice
Implementing Domain Driven Design - using ABP framework - solution overview
上半年,这个领域竟出了7家新独角兽,资本争抢入局
Flutter series -dart basic grammar learning
YARN笔记
实验4 NoSQL和关系数据库的操作比较
shell脚本(五)——函数
mini-Web框架:模板替换与路由列表功能开发 | 黑马程序员
Weizhi technology appeared in the Western Digital Expo, and the space-time AI technology was highly recognized
2022 G2 power plant boiler stoker question bank and online simulation examination
Detailed explanation of shell script (x) -- how to use sed editor
加工制造业智慧采购系统解决方案:助力企业实现全流程采购一体化协同
Flutter2.0运行在web上不同渲染器的问题
PostgreSQL reconfigure from library
线程池:ThreadPoolExcutor源码阅读
ssh免密码登录
插槽里如何判断text为数组
Digital business cloud: build a digital supply chain system to enable enterprises to optimize and upgrade their logistics supply chain