Abaqus批量提交作業
瀏覽:2457
# -*- coding: utf-8 -*-
from abaqus import *
from abaqusConstants import *
import os
import time
def clean_residual_files(job_name):
"""清理殘留文件函數"""
residual_ext = ['.lck', '.prt', '.sim', '.sta',
'.abq', '.com', '.dat', '.msg','.odb',
'.log', '.odb', '.inp']
for ext in residual_ext:
file_path = job_name + ext
if os.path.exists(file_path):
try:
os.remove(file_path)
print("Residual files have been cleaned up: %s" % file_path)
except Exception as e:
print("Failed file cleanup: %s - %s" % (file_path, str(e)))
# 作業列表與參數配置
jobs = []
以下內容為付費內容,請購買后觀看
批量提交作業,每個作業提交時會給出一個當前時間,運算完會給出一個結束時間,最后全部計算完了會給出一個總耗時。
技術鄰APP
工程師必備
工程師必備
- 項目客服
- 培訓客服
- 平臺客服
TOP




















