24小时热门版块排行榜    

查看: 1140  |  回复: 0
【悬赏金币】回答本帖问题,作者liych_user将赠送您 20 个金币

liych_user

捐助贵宾 (初入文坛)

[求助] abaqus python脚本批量建模运算一天半后报错:Error in connection to analysis

请教各位大佬,abaqus python脚本批量建模计算,每一个都是先建模后计算完成后再继续建后续模型,一天半后出现错误:"ERROR in job messaging system: Error in connection to analysis",然后后续只建模不计算。谢谢大佬指教!
我的python脚本代码大致概括如下:
CODE:
# -*- coding: UTF-8 -*-
import matplotlib.pyplot as plt
import math
import random
import numpy as np
import time
import os
os.chdir(r"F:\\ABAQUS files\\spsw-parameters-MULTILINEAR")
from abaqus import *
from abaqusConstants import *
from odbAccess import *
import __main__

import section
import regionToolset
import displayGroupMdbToolset as dgm
import part
import material
import assembly
import step
import interaction
import load
import mesh
import optimization
import job
import sketch
import visualization
import xyPlot
import displayGroupOdbToolset as dgo
import connectorBehavior

def model_creation(x1,x2):
    ......#定义模型函数,详细内容略

def jobsubmit(job_name, model_name): #定义作业建立函数
    mdb.Job(name=job_name, model=model_name, description='', type=ANALYSIS, atTime=None,
        waitMinutes=0, waitHours=0, queue=None, memory=70, memoryUnits=PERCENTAGE,         getMemoryFromAnalysis=False,
        explicitPrecision=SINGLE, nodalOutputPrecision=SINGLE, echoPrint=OFF, modelPrint=OFF, contactPrint=OFF,
        historyPrint=OFF, userSubroutine='', scratch='', resultsFormat=ODB, multiprocessingMode=DEFAULT,
        numCpus=8, numDomains=8, numGPUs=0)
    mdb.jobs[job_name].submit(consistencyChecking=OFF)#提交作业进行计算
    mdb.jobs[job_name].waitForCompletion()

list_d=[......] #建立d的取值列表
list_n=[......] #建立n的取值列表

for d in list_d:
    for n in list_n:
        Name='%d-%d'%(int(d),n)
        model = mdb.Model(name=Name) #新建模型
        model_creation(int(d),n) #建立完整模型
        jobsubmit('Job%d-%d'%(int(d),n), Name)

rpy文件提示错误如下:
CODE:
......
#: Job Job27-31: Analysis Input File Processor completed successfully.
#: Job Job27-31: Abaqus/Standard completed successfully.
#: Job Job27-31 completed successfully.
#: The model "SPSW27-32" has been created.
#: Job Job27-32: Analysis Input File Processor completed successfully.
#: ERROR in job messaging system: Error in connection to analysis
#: Error in job Job27-32: Abaqus/Standard Analysis exited with an error - Please see the  message file for possible error messages if the file exists.
#: Job Job27-32 aborted due to errors.
#: The model "SPSW27-33" has been created.
#: Job Job27-33: Analysis Input File Processor completed successfully.
#: ERROR in job messaging system: Error in connection to analysis
#: Error in job Job27-33: Abaqus/Standard Analysis exited with an error - Please see the  message file for possible error messages if the file exists.
#: Job Job27-33 aborted due to errors.
#: The model "SPSW30-19" has been created.
#: Job Job30-19: Analysis Input File Processor completed successfully.
#: Job Job30-19: Abaqus/Standard completed successfully.
#: Job Job30-19 completed successfully.
#: The model "SPSW30-20" has been created.
#: Job Job30-20: Analysis Input File Processor completed successfully.
#: Job Job30-20: Abaqus/Standard completed successfully.
#: Job Job30-20 completed successfully.
#: The model "SPSW30-21" has been created.
#: Job Job30-21: Analysis Input File Processor completed successfully.
#: ERROR in job messaging system: Error in connection to analysis
#: Error in job Job30-21: Abaqus/Standard Analysis exited with an error - Please see the  message file for possible error messages if the file exists.
#: Job Job30-21 aborted due to errors.
#: The model "SPSW30-22" has been created.
#: Job Job30-22: Analysis Input File Processor completed successfully.
#: Error in job Job30-22: XML parsing failure for job Job30-22.  Shutting down socket and terminating all further messages.  Please check the .log, .dat, .sta, or .msg files for information about the status of the job.
#: Job Job30-22 aborted due to errors.
#: The model "SPSW30-23" has been created.
#: Job Job30-23: Analysis Input File Processor completed successfully.
#: Error in job Job30-23: XML parsing failure for job Job30-23.  Shutting down socket and terminating all further messages.  Please check the .log, .dat, .sta, or .msg files for information about the status of the job.
#: Job Job30-23 aborted due to errors.
#: The model "SPSW30-24" has been created.
#: Job Job30-24: Analysis Input File Processor completed successfully.
#: ERROR in job messaging system: Error in connection to analysis
#: Error in job Job30-24: Abaqus/Standard Analysis exited with an error - Please see the  message file for possible error messages if the file exists.
#: Job Job30-24 aborted due to errors.
#: The model "SPSW30-25" has been created.
#: Job Job30-25: Analysis Input File Processor completed successfully.
#: ERROR in job messaging system: Error in connection to analysis
#: Error in job Job30-25: Abaqus/Standard Analysis exited with an error - Please see the  message file for possible error messages if the file exists.
#: Job Job30-25 aborted due to errors.
......

回复此楼

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 liych_user 的主题更新
不应助 确定回帖应助 (注意:应助才可能被奖励,但不允许灌水,必须填写15个字符以上)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 材料专硕288分求调剂 一志愿211 +4 在家想你 2026-03-11 4/200 2026-03-13 22:49 by JourneyLucky
[考研] 材料与化工085600调剂求老师收留 +9 jiaanl 2026-03-11 9/450 2026-03-13 20:22 by JourneyLucky
[教师之家] 焦虑 +3 水冰月月野兔 2026-03-13 4/200 2026-03-13 17:50 by newind
[考研] 274求调剂 +3 S.H1 2026-03-12 3/150 2026-03-13 15:15 by JourneyLucky
[考研] 土木第一志愿276求调剂,科研和技能十分丰富,求新兴方向的导师收留 +3 土木小天才 2026-03-12 3/150 2026-03-13 15:01 by JourneyLucky
[考研] 290求调剂 +3 @将就将就看 2026-03-10 7/350 2026-03-13 13:28 by Iveryant
[考研] 0856化工原理 +6 z2839474511 2026-03-10 6/300 2026-03-13 10:41 by houyaoxu
[考研] 274求调剂0856材料化工 +12 z2839474511 2026-03-11 13/650 2026-03-13 10:39 by peike
[考研] 081200-11408-276学硕求调剂 +3 崔wj 2026-03-12 4/200 2026-03-12 19:33 by 求调剂zz
[考研] 材料工程330分求调剂,一志愿985 +5 小材化本科 2026-03-07 5/250 2026-03-11 16:51 by 535743368
[考研] 293求调剂,一志愿陕师大生物学 +3 ??????.?.??? 2026-03-09 3/150 2026-03-11 10:02 by 学员8dgXkO
[考研] 306求调剂 +3 唐薏薏 2026-03-09 3/150 2026-03-10 22:30 by peike
[考研] 086000生物与医药319分求调剂 +4 Tolkien 2026-03-07 8/400 2026-03-10 21:34 by Tolkien
[考研] 313分生物学求调剂 +5 Yyt杨1 2026-03-09 7/350 2026-03-10 18:58 by 清风月
[基金申请] PDF在线压缩软件 10+3 haxia 2026-03-08 4/200 2026-03-10 13:44 by lfy8008
[考研] 一志愿山东大学,总分327,英语二79,有论文,有竞赛,已过四六级 +3 木木目目1 2026-03-09 3/150 2026-03-09 19:52 by yuningshan
[考研] 0856材料与化工290求调剂 +7 Nebulala 2026-03-08 8/400 2026-03-09 05:25 by houyaoxu
[考研] 269求调剂 +3 朔朔话 2026-03-08 4/200 2026-03-08 20:39 by 热情沙漠
[考研] 求调剂 +3 拾柒12。 2026-03-08 3/150 2026-03-08 17:33 by bingxueer79
[考研] 化学290求调剂 +3 两颗 西柚 2026-03-07 4/200 2026-03-07 20:55 by macy2011
信息提示
请填处理意见