找回密码
 注册
Simdroid-非首页
查看: 217|回复: 3

[二次开发] abaqus python脚本批量建模运算报错:Error in connection to analysis

[复制链接]
发表于 2022-1-19 10:34:44 | 显示全部楼层 |阅读模式 来自 广东清远
悬赏1仿真币已解决
请教各位大佬,abaqus python脚本批量建模计算,每一个都是先建模后计算完成后再继续建后续模型,一天半后出现错误:"ERROR in job messaging system: Error in connection to analysis",然后后续只建模不计算。谢谢大佬指教!
我的python脚本代码大致概括如下:
  1. # -*- coding: UTF-8 -*-
  2. import matplotlib.pyplot as plt
  3. import math
  4. import random
  5. import numpy as np
  6. import time
  7. import os
  8. os.chdir(r"F:\\ABAQUS files\\spsw-parameters-MULTILINEAR")
  9. from abaqus import *
  10. from abaqusConstants import *
  11. from odbAccess import *
  12. import __main__

  13. import section
  14. import regionToolset
  15. import displayGroupMdbToolset as dgm
  16. import part
  17. import material
  18. import assembly
  19. import step
  20. import interaction
  21. import load
  22. import mesh
  23. import optimization
  24. import job
  25. import sketch
  26. import visualization
  27. import xyPlot
  28. import displayGroupOdbToolset as dgo
  29. import connectorBehavior

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

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

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

  42. for d in list_d:
  43.     for n in list_n:
  44.         Name='%d-%d'%(int(d),n)
  45.         model = mdb.Model(name=Name) #新建模型
  46.         model_creation(int(d),n) #建立完整模型
  47.         jobsubmit('Job%d-%d'%(int(d),n), Name)
复制代码
rpy文件提示错误如下:
  1. ......
  2. #: Job Job27-31: Analysis Input File Processor completed successfully.
  3. #: Job Job27-31: Abaqus/Standard completed successfully.
  4. #: Job Job27-31 completed successfully.
  5. #: The model "SPSW27-32" has been created.
  6. #: Job Job27-32: Analysis Input File Processor completed successfully.
  7. #: ERROR in job messaging system: Error in connection to analysis
  8. #: 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.
  9. #: Job Job27-32 aborted due to errors.
  10. #: The model "SPSW27-33" has been created.
  11. #: Job Job27-33: Analysis Input File Processor completed successfully.
  12. #: ERROR in job messaging system: Error in connection to analysis
  13. #: 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.
  14. #: Job Job27-33 aborted due to errors.
  15. #: The model "SPSW30-19" has been created.
  16. #: Job Job30-19: Analysis Input File Processor completed successfully.
  17. #: Job Job30-19: Abaqus/Standard completed successfully.
  18. #: Job Job30-19 completed successfully.
  19. #: The model "SPSW30-20" has been created.
  20. #: Job Job30-20: Analysis Input File Processor completed successfully.
  21. #: Job Job30-20: Abaqus/Standard completed successfully.
  22. #: Job Job30-20 completed successfully.
  23. #: The model "SPSW30-21" has been created.
  24. #: Job Job30-21: Analysis Input File Processor completed successfully.
  25. #: ERROR in job messaging system: Error in connection to analysis
  26. #: 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.
  27. #: Job Job30-21 aborted due to errors.
  28. #: The model "SPSW30-22" has been created.
  29. #: Job Job30-22: Analysis Input File Processor completed successfully.
  30. #: 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.
  31. #: Job Job30-22 aborted due to errors.
  32. #: The model "SPSW30-23" has been created.
  33. #: Job Job30-23: Analysis Input File Processor completed successfully.
  34. #: 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.
  35. #: Job Job30-23 aborted due to errors.
  36. #: The model "SPSW30-24" has been created.
  37. #: Job Job30-24: Analysis Input File Processor completed successfully.
  38. #: ERROR in job messaging system: Error in connection to analysis
  39. #: 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.
  40. #: Job Job30-24 aborted due to errors.
  41. #: The model "SPSW30-25" has been created.
  42. #: Job Job30-25: Analysis Input File Processor completed successfully.
  43. #: ERROR in job messaging system: Error in connection to analysis
  44. #: 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.
  45. #: Job Job30-25 aborted due to errors.
  46. ......
复制代码


最佳答案

查看完整内容

這個應該是舊版的某一個bug,之前好像是2018的問題?你的message系統壞掉了~也許可以試試裝新版的2020以上或是重新安裝。
发表于 2022-1-19 10:34:45 | 显示全部楼层 来自 台湾
Simdroid开发平台
這個應該是舊版的某一個bug,之前好像是2018的問題?你的message系統壞掉了~也許可以試試裝新版的2020以上或是重新安裝。
回复

使用道具 举报

发表于 2022-1-20 08:50:56 | 显示全部楼层 来自 河南
跟python代码没什么关系,应该是软件的问题
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-5-2 16:19 , Processed in 0.028566 second(s), 13 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表