upxo.meshing.gbconformant.fm_steel_abaqus.jobs module
Scripts that run the deck with Abaqus, and Abaqus’s own data check of it.
write_job_scripts puts these beside the deck (the values come from the deck settings):
submit.batandsubmit.sh: run the job on this machine;datacheck.batanddatacheck.sh: the same with the Abaqus data check only;submit.slurm: a Slurm batch script with the job name, CPUs, memory and time limit.
Every script runs abaqus job=<name> input=model_master.inp with the user subroutine file (user=) when one is
set. run_datacheck runs the data check where Abaqus is installed and reads the error and warning lines Abaqus
writes into the job’s files. None of this has been run against a particular Abaqus installation by UPXO: the
scripts are the commands, written out.
- upxo.meshing.gbconformant.fm_steel_abaqus.jobs.validate_job(settings)[source]
Raise
ValueErrorwhen a job setting cannot be written into a script safely.
- upxo.meshing.gbconformant.fm_steel_abaqus.jobs.slurm_time(hours)[source]
Slurm’s
days-hours:minutes:secondsfor a time in hours.
- upxo.meshing.gbconformant.fm_steel_abaqus.jobs.abaqus_arguments(settings, *, datacheck=False, cpus=None, memory=True)[source]
The arguments after the Abaqus command, as
key=valuetokens (a data check runs on one CPU, without memory).
- upxo.meshing.gbconformant.fm_steel_abaqus.jobs.script_texts(settings)[source]
{file name: text}of the job scripts.
- upxo.meshing.gbconformant.fm_steel_abaqus.jobs.write_job_scripts(folder, settings)[source]
Write the job scripts into
folder; returns their file names.
- upxo.meshing.gbconformant.fm_steel_abaqus.jobs.find_abaqus(command)[source]
Full path of the Abaqus command (
Nonewhen it is not found on the PATH or at that path).
- upxo.meshing.gbconformant.fm_steel_abaqus.jobs.read_messages(folder, job)[source]
(errors, warnings): the***ERRORand***WARNINGlines in the job’s data, message and log files.
- upxo.meshing.gbconformant.fm_steel_abaqus.jobs.run_datacheck(folder, settings, *, command=None, timeout=3600)[source]
Run the Abaqus data check on the deck in
folder; returns (and writesabaqus_datacheck.json) the outcome.okmeans Abaqus exited with 0 and its files hold no***ERRORline. When Abaqus cannot be started, or runs out of time,okis false andproblemsays why.