Abaqus 中脚本运行
1. 命令区kernel Command Line Interface (KCLI)
execfile('C:\\temp\second develop\chapter2\pyTest1.py')
2. CAE-Run Script
File->Run Script
3. Abaqus command
Abaqus cae noGUI=script.py(前后处理都可)
Abaqus Python script.py (没有检查licensing,仅用于提取odb文件)
4. Abaqus PDE(Python Development Environment)
用于调试
File -> Abaqus PDE
Abaqus cae -pde (guiLog文件记录CAE的每一步GUI操作、更有用的是rpy文件记录内核函数命令 )
Abaqus pde (不与Abaqus/CAE 工作区间关联,不占用许可证,启动较快)
NotePad++ 运行
打开Notepad++, F5快捷键打开”运行对话框“。依次输入
1. Run with Python
cmd /k cd "$(CURRENT_DIRECTORY)" & C:\Python27\Python.exe "$(FULLCURRENT_PATH)" & ECHO. & PAUSE & EXIT
2. Run with AbaqusPost
cmd /k cd "$(CURRENT_DIRECTORY)" & Abaqus Python "$(FULL_CURRENT_PATH)" & ECHO. & PAUSE & EXIT
3. Run with AbaqusnoGUI
cmd /k cd "$(CURRENT_DIRECTORY)" & Abaqus CAE "noGUI=$(FULL_CURRENT_PATH)" & ECHO. & PAUSE &EXIT
4. Run with AbaqusGUI
cmd /k cd "$(CURRENT_DIRECTORY)" & Abaqus CAE "script=$(FULL_CURRENT_PATH)" & ECHO. & PAUSE &EXIT
#!/bin/bash
export ABAQUS=/mnt/c/SolidSQUAD_License_Servers/Bin/ABAQUSLM.exe
export SCRIPT=/mnt/c/temp/v6/simple_explicit_voronoi_2d_calculation.py
SCRIPT_ARGS=" \--IGES_path=/mnt/c/temp/v6/iges/000000.igs \"
$ABAQUS CAE noGUI=$SCRIPT -- $SCRIPT_ARGS
https://haiiliin.github.io/abqpy/en/2023/getting_started.html#installation