<meta name='keywords'
content='abaqus, abaqus python, abaqus scripts, abaqus github, abaqus tools, Abaqus, plugins, Abaqus FEA, Abaqus CAE, FEA, Structural Engineering, Structural Software, FE Software, Simulia, Simulia Software, Python plugins, Python automation, FE automation, Abaqus scripts, Abaqus parametric analysis'/>
# Abaqus scripts
Python scripts to automate the boring stuff in everyday use of Simulia Abaqus, from opening the GUI to controlling parametric analysis.
# Launching Abaqus CAE
The open_abaqus.bat launches Abaqus CAE and calls for open_abaqus.py script. You can create a link for the bat file and put it on the desktop for easier acces.
The open python script does several things:
- Modifies visuatization options.
- Changes work directory to the one specified in the config_abaqus.cfg file
- Imports abaqus_inside module, which containts functions to be used within Abaqus itself.
- Optionally: opens a default file at start, imports "develop.py" file and assigns it to a function named dev, so you can easily modify snippets and run them by calling "dev()" in Abaqus CAE command area.
# Macros
Macros to be used in the CAE mode of Simulia Abaqus.
You should place both abaqusMacros.py and abaqusMacros.cfg files in the "site" directory of your installation, commonly, in C:\SIMULIA\CAE\2020\win_b64\SMA\site. This is required so Abaqus can find the files even when the 'Work directory' is changed during the CAE session. If you don't plan to do that, then keeping both on Work directory should be OK.
The .cfg file contains inputs parameters to some of the macros scripts, present in abaqusMacros.py. You can config them on the fly, by saving changes on cfg file and then hitting the Reload button in the File->Macro manager dialog box on the GUI.
# Parametric analysis
In this framework, parametric analysis is thought as a 6 steps process, which are intented to be as automatized as posible. These are:
1. Creation of input psf and inp files required by Abaqus CAE, and an auxiliar csv file with parameters samples values. It requires a cfg config file with mathematical details of the parametric project and a template inp of the FEA model.
2. Run simulations from an auxiliar command line.
3. Extract output data and save it as npz numpy arrays, one for each odb file in the project. A script to read and gather time history and field data is required. It can be created manually, studying the rpy file generated automatically by Abaqus when performing actions in the GUI software.
4. Summarize output data, calling all npz files, ordinating them into a database and saving it as a hdf5 file.
5. Postprocess hdf5 file to export data, create plots, etc.
Parametric functions, present in abaqus_outside script, are designed to be used during each of these steps. An example of input cfg and inp files are provided in examples folder.
# Looking forward to keep including new actions. All sugestions are welcome.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Abaqus 脚本 Python 脚本可自动执行 Simulia Abaqus 日常使用中的枯燥工作,从打开 GUI 到控制参数分析。 启动 Abaqus CAE open_abaqus.bat 启动 Abaqus CAE 并调用 open_abaqus.py 脚本。您可以为 bat 文件创建一个链接并将其放在桌面上以便于访问。打开的 python 脚本做了几件事: 修改可视化选项。 将工作目录更改为 config_abaqus.cfg 文件中指定的目录 导入 abaqus_inside 模块,其中包含要在 Abaqus 本身中使用的函数。 可选:在启动时打开一个默认文件,导入“develop.py”文件并将其分配给一个名为 dev 的函数,这样您就可以轻松地修改代码片段并通过在 Abaqus CAE 命令区域中调用“dev()”来运行它们。
资源推荐
资源详情
资源评论
收起资源包目录
abaqus_scripts-master.zip (27个子文件)
abaqus_scripts-master
.gitignore 78B
README.md 3KB
open_abaqus.py 6KB
.gitmodules 108B
tools_submodule
examples
main_script.py 1KB
main_script.cfg 197B
developing.py 2KB
__init__.py 0B
IDL_2D_1M_ALPHA_DYN
IDL_2D_1M_ALPHA_DYN.cfg 414B
old_IDL_2D_1M_ALPHA_DYN.inp 942KB
IDL_2D_1M_ALPHA_DYN.inp 942KB
IDL_2D_1M_ALPHA_DYN.csv 467B
IDL_2D_1M_ALPHA_DYN.psf 641B
IDL_2D_1M_ALPHA_DYN.hdf5 478KB
main_flowchart.drawio 3KB
IDL_2D_1M_ALPHA_DYN.py 1KB
prueba.drawio 3KB
open_abaqus.bat 292B
LICENSE 1KB
abaqus_inside.py 13KB
develop.py 2KB
abaqus_outside.py 27KB
abaqusMacros.cfg 25B
open_abaqus_config_file.cfg 254B
__init__.py 0B
first_script.py 287B
abaqusMacros.py 4KB
共 27 条
- 1
资源评论
- weixin_519490632024-04-18资源不错,对我启发很大,获得了新的灵感,受益匪浅。
- weixin_437966402022-11-24资源有很好的参考价值,总算找到了自己需要的资源啦。
- 一凛冬一2022-07-11内容与描述一致,超赞的资源,值得借鉴的内容很多,支持!
快撑死的鱼
- 粉丝: 1w+
- 资源: 9156
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功