当前位置:网站首页>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]
边栏推荐
- 数商云:数字化供应链系统搭建,赋能企业实现物流供应链的优化升级
- 数字赋能机械制造业,供应链协同管理系统解决方案助力企业供应链再升级
- shell脚本详解(七)——正则表达式、sort、uniq、tr
- PAT甲级1093 Count PAT‘s (25分)
- China's games are "harvesting" foreigners
- Shell script explanation (VII) -- regular expression, sort, uniq, tr
- Shell编程规范与变量
- STM32 control matrix key, Hal library, cubemx configuration
- Is flush easy to use? Is it safe to open a mobile account?
- Aiops intelligent operation and maintenance experience sharing
猜你喜欢

Digital enabling machinery manufacturing industry, supply chain collaborative management system solution helps enterprises upgrade their supply chain

Vs Code suddenly fails to jump

Flutter系列-flutter路由管理

数商云:解析B2B2C多用户商城系统架构设计思路,开启智能商城新时代

Typescript (7) generic

小波变换db4进行四层分解及其信号重构—matlab分析及C语言实现

IPLOOK 成为 RedHat(红帽)业务合作伙伴

机械设备行业数字化供应链集采平台解决方案:优化资源配置,实现降本增效

Niuke network: minimum coverage substring
Notes on Combinatorics (V) chains in distributive lattice
随机推荐
Iplook and SBC establish long-term cooperation
Getting started with database connection pooling (c3p0, Druid)
Niuke.com: judge whether it is palindrome string
Weizhi technology appeared in the Western Digital Expo, and the space-time AI technology was highly recognized
插槽里如何判断text为数组
组合学笔记(五)分配格中的链
Thread pool: reading the source code of threadpoolexcutor
A homekit enabled camera? Zhiting IPC camera IC1 unpacking experience
IPLOOK作为O-RAN联盟会员,将共同促进5G产业发展
[dry goods | necessary skills for interface testing common interface protocol analysis]
5g short message solution
Service实战:使用Service完成一个下载任务
wpa_ CLI parameter description
mini-Web框架:模板替换与路由列表功能开发 | 黑马程序员
Zynq UltraScale + RFSoC ZCU111 RF时钟树学习 1
IPLOOK 5GC与亚信国际CHF(计费功能)对接成功
AUTOCAD——五种标注快捷键
回文数(简单版)
5gc and satellite integrated communication scheme
维智科技亮相西部数博会,时空AI技术获高度认可