curing-job
GitHub用于通过 Socket 桥接提交、创建和监控带有 UMAT 子程序的 Abaqus 固化模拟任务。涵盖作业生成、提交(禁用一致性检查)、状态监控及结果文件管理,旨在自动化有限元仿真流程。
Trigger Scenarios
Install
npx skills add Cai-aa/CAE-Agent-Hub --skill curing-job -g -y
SKILL.md
Frontmatter
{
"name": "curing-job",
"description": "Submit Abaqus curing simulation jobs with UMAT subroutine via socket bridge. Invoke when user needs to create, submit, or monitor curing simulation jobs."
}
Curing Job Execution
Description
Submit Abaqus curing simulation jobs with UMAT subroutine via socket bridge. Invoke when user needs to create, submit, or monitor curing simulation jobs.
Content
Job Creation with UMAT
Create a job from an input file with the UMAT subroutine specified:
from abaqusConstants import *
job = mdb.JobFromInputFile(
name='job_name',
inputFileName=work_dir + '\\job_name.inp',
userSubroutine=umat_path,
numCpus=4,
numDomains=4
)
Job Submission
Submit the job with consistencyChecking=OFF to avoid unicode TypeError issues:
mdb.jobs['job_name'].submit(consistencyChecking=OFF)
Important: You MUST use consistencyChecking=OFF when submitting. Without this parameter, Abaqus may raise a unicode TypeError during the consistency check phase.
Monitoring Job Status
Check the current status of a submitted job:
status = mdb.jobs['job_name'].status
# Possible values: RUNNING, COMPLETED, SUBMITTED, etc.
Common Pitfalls
Unicode Errors
- Avoid using
print()with%formatting in the Abaqus kernel - Use
result = ...to return data instead of printing
String Key Issues
- Use plain strings for job names, not unicode strings
- Dictionary keys should be plain strings; unicode keys may fail
Multiple Jobs
- Submit jobs sequentially, not in parallel
- The first
submit()call in a loop may submit all jobs if not handled carefully - Wait for each job to complete before submitting the next
Job Output Location
- Scratch directory:
C:\Temp - ODB file generated at:
C:\Temp\job_name.odb
Post-Completion
After the job completes, copy the ODB file from the scratch directory to the work directory:
import shutil
shutil.copy(
'C:\\Temp\\job_name.odb',
work_dir + '\\job_name.odb'
)
Workflow Summary
- Create job from input file with UMAT subroutine path
- Submit with
consistencyChecking=OFF - Monitor job status until COMPLETED
- Copy ODB from
C:\Tempto work directory - Proceed to post-processing (ODB extraction, CSV export)
Version History
- cb4d869 Current 2026-10-19 04:34


