Job#

The Job object is the abstract base type for other Job objects. The Job object has no explicit constructor. The methods and members of the Job object are common to all objects derived from Job.

Create jobs#

Create queues in Session#

JobSession.Queue(name: str, queueName: str, hostName: str = '', fileCopy: BooleanType = 1, directory: str = '', driver: str = '', remotePlatform: SymbolicConstantType = 'Linux', filesToCopy: str = 'ALL', deleteAfterCopy: BooleanType = 0, description: str = '') Queue[source]#

This method creates a Queue object. Note:Remote queues are available only on Linux platforms.

Parameters:
name

A String specifying the name of the new Queue object.

queueName

A String specifying the name of the remote analysis queue.

hostName

A String specifying the name of the remote host. The default value is an empty string.

fileCopy

A Boolean specifying if the results files are to be copied from the remote machine to the local machine. The default value is ON.

directory

A String specifying the remote location for the execution of the simulation. The default value is an empty string.

driver

A String specifying the designation of the remote driver. The default value is “abaqus”.

remotePlatform

A SymbolicConstant specifying the type of operating system on the remote machine. The default value is Linux.

filesToCopy

A list of Strings specifying the files to be copied from the remote location to the local machine, or ALL. Strings specified in a list are the extensions of the job files that will be copied, such as (‘log’, ‘dat’, ‘msg’, ‘sta’, ‘odb’). The default value is ALL.

deleteAfterCopy

A Boolean specifying whether remote files are to be deleted after they are copied to the local machine. The default value is OFF.

description

A String specifying a description of the queue. The default value is an empty string.

Returns:
A Queue object.
Raises:
  • If fileCopy*=ON :obj:`and` *hostName is empty:

    Remote queue host name is not set.

  • If fileCopy*=ON :obj:`and` *directory is empty:

    Directory in which to run the job on the remote computer is not set.

Notes

This function can be accessed by:

session.Queue

Features of the job#

Coexecution#

class Coexecution[source]#

The Coexecution object contains a set of jobs as associated parameters to define a co-simulation analysis.

Notes

This object can be accessed by:

import job
mdb.coexecutions[name]

The corresponding analysis keywords are:

  • HEADING
    • PREPRINT

Attributes:
name: str

A String specifying the name of the new job. The name must be a valid Abaqus/CAE object name.

type: SymbolicConstant

A SymbolicConstant specifying the type of analysis to execute for the co-execution. Possible values are ANALYSIS, SYNTAXCHECK, RECOVER, and RESTART. The default value is ANALYSIS.

masterAnalysisProduct: SymbolicConstant

A SymbolicConstant specifying the analysis product type of the master model for the co-execution. The default value is ABAQUS.

waitHours: int

An Int specifying the number of hours to wait before submitting the co-execution. This argument is ignored if queue is set. The default value is 0.This argument works in conjunction with waitMinutes. waitHours and atTime are mutually exclusive.

waitMinutes: int

An Int specifying the number of minutes to wait before submitting the job. This argument is ignored if queue is set. The default value is 0.This argument works in conjunction with waitHours. waitMinutes and atTime are mutually exclusive.

status: SymbolicConstant

A SymbolicConstant specifying the status of the co-execution. Possible values are SUBMITTED, RUNNING, ABORTED, TERMINATED, COMPLETED, CHECK_SUBMITTED, CHECK_RUNNING, and CHECK_COMPLETED.If the message member of all the jobs are empty, status is set to NONE.

queue: str

A String specifying the name of the queue to which to submit the co-execution. The default value is an empty string.Note:You can use the queue argument when creating a Coexecution object on a Windows workstation; however, remote queues are available only on Linux platforms.

atTime: str

A String specifying the time at which to submit the co-execution. If queue is empty, the string syntax must be valid for the Linux at command. If queue is set, the syntax must be valid according to the system administrator. The default value is an empty string.Note:You can use the atTime argument when creating a Coexecution object on a Windows workstation; however, the at command is available only on Linux platforms.

jobs: dict[str, Job]

A repository of Job objects specifying the jobs that comprise this co-execution.

slaveModels: tuple

A tuple of Strings specifying the names of the slave models for the co-execution.

slaveAnalysisProducts: SymbolicConstant

A tuple of SymbolicConstants specifying the analysis product types of the slave models for the co-execution. The default value is an empty sequence.

masterModel: str

A String specifying the name of the master model for the co-execution.

Methods

kill()

This method kills the analysis of a co-execution.

submit([consistencyChecking, datacheckJob, ...])

This method submits a co-execution for analysis.

waitForCompletion()

This method interrupts the execution of the script until the end of all the analyses.

writeInput([consistencyChecking])

This method writes an input file for each analysis in the co-execution.

kill()[source]#

This method kills the analysis of a co-execution.

submit(consistencyChecking: BooleanType = 1, datacheckJob: BooleanType = False, continueJob: BooleanType = False)[source]#

This method submits a co-execution for analysis.

Parameters:
consistencyChecking

A Boolean specifying whether to perform consistency checking for the individual jobs. The default value is ON. It is not recommended to turn the consistency checking off unless you are absolutely sure the models are all consistent.

datacheckJob

A Boolean specifying whether to run the co-execution as a datacheck analysis. The default value is False. The datacheckJob and continueJob arguments cannot both be True.

continueJob

A Boolean specifying whether to run the co-execution as a continuation analysis. The default value is False. The datacheckJob and continueJob arguments cannot both be True.

waitForCompletion()[source]#

This method interrupts the execution of the script until the end of all the analyses. If you call the waitForCompletion method and the status member is neither SUBMITTED nor RUNNING, Abaqus assumes the analysis has either completed or aborted and returns immediately.

writeInput(consistencyChecking: BooleanType = 1)[source]#

This method writes an input file for each analysis in the co-execution.

Parameters:
consistencyChecking

A Boolean specifying whether to perform consistency checking for the individual jobs. The default value is ON. It is not recommended to turn the consistency checking off unless you are absolutely sure the models are all consistent.

Job#

class Job[source]#

The Job object is the abstract base type for other Job objects. The Job object has no explicit constructor. The methods and members of the Job object are common to all objects derived from Job.

Notes

This object can be accessed by:

import job
mdb.coexecutions[name].jobs[name]
mdb.jobs[name]

The corresponding analysis keywords are:

  • HEADING
    • PREPRINT

Attributes:
name: str

A String specifying the name of the new job. The name must be a valid Abaqus/CAE object name.

type: SymbolicConstant

A SymbolicConstant specifying the type of job. Possible values are ANALYSIS, SYNTAXCHECK, RECOVER, and RESTART. The default value is ANALYSIS.If the object has the type JobFromInputFile, type=RESTART is not available.

waitHours: int

An Int specifying the number of hours to wait before submitting the job. This argument is ignored if queue is set. The default value is 0.This argument works in conjunction with waitMinutes. waitHours and atTime are mutually exclusive.

waitMinutes: int

An Int specifying the number of minutes to wait before submitting the job. This argument is ignored if queue is set. The default value is 0.This argument works in conjunction with waitHours. waitMinutes and atTime are mutually exclusive.

numCpus: int

An Int specifying the number of CPUs to use for this analysis if parallel processing is available. Possible values are numCpus >> 0. The default value is 1.

memory: int

An Int specifying the amount of memory available to Abaqus analysis. The value should be expressed in the units supplied in memoryUnits. The default value is 90.

memoryUnits: SymbolicConstant

A SymbolicConstant specifying the units for the amount of memory used in an Abaqus analysis. Possible values are PERCENTAGE, MEGA_BYTES, and GIGA_BYTES. The default value is PERCENTAGE.

getMemoryFromAnalysis: Boolean

A Boolean specifying whether to retrieve the recommended memory settings from the last datacheck or analysis run and use those values in subsequent submissions. The default value is ON.

explicitPrecision: SymbolicConstant

A SymbolicConstant specifying whether to use the double precision version of Abaqus/Explicit. Possible values are SINGLE, FORCE_SINGLE, DOUBLE, DOUBLE_CONSTRAINT_ONLY, and DOUBLE_PLUS_PACK. The default value is SINGLE.

nodalOutputPrecision: SymbolicConstant

A SymbolicConstant specifying the precision of the nodal output written to the output database. Possible values are SINGLE and FULL. The default value is SINGLE.

parallelizationMethodExplicit: SymbolicConstant

A SymbolicConstant specifying the parallelization method for Abaqus/Explicit. This value is ignored for Abaqus/Standard. Possible values are DOMAIN and LOOP. The default value is DOMAIN.

numDomains: int

An Int specifying the number of domains for parallel execution in Abaqus/Explicit. When parallelizationMethodExplicit=DOMAIN, numDomains must be a multiple of numCpus. The default value is 1.

activateLoadBalancing: Boolean

A Boolean specifying whether to activate dyanmic load balancing for jobs running on multiple processors with multiple domains in Abaqus/Explicit. The default value is OFF.

multiprocessingMode: SymbolicConstant

A SymbolicConstant specifying whether an analysis is decomposed into threads or into multiple processes that communicate through a message passing interface (MPI). Possible values are DEFAULT, THREADS,MPI, and HYBRID. The default value is DEFAULT.

numThreadsPerMpiProcess: int

An Int specifying the number of threads per MPI process to use for this analysis if parallel processing is available. Possible values are numThreadsPerMpiProcess >> 0. The default value is 1.

analysis: SymbolicConstant

A SymbolicConstant specifying whe:py:class:~.the`r :py:class:`~.the job will be analyzed by Abaqus/Standard or Abaqus/Explicit. Possible values are STANDARD, EXPLICIT, and UNKNOWN.If the object has the type JobFromInputFile, analysis=UNKNOWN.

status: SymbolicConstant

A SymbolicConstant specifying the status of the analysis. Possible values are SUBMITTED, RUNNING, ABORTED, TERMINATED, COMPLETED, CHECK_RUNNING, and CHECK_COMPLETED.If the message member is empty, status is set to NONE.

queue: str

A String specifying the name of the queue to which to submit the job. The default value is an empty string.Note:You can use the queue argument when creating a Job object on a Windows workstation; however, remote queues are available only on Linux platforms.

atTime: str

A String specifying the time at which to submit the job. If queue is empty, the string syntax must be valid for the Linux at command. If queue is set, the syntax must be valid according to the system administrator. The default value is an empty string.Note:You can use the atTime argument when creating a Job object on a Windows workstation; however, the at command is available only on Linux platforms.

scratch: str

A String specifying the location of the scratch directory. The default value is an empty string.

userSubroutine: str

A String specifying the file containing the user’s subroutine definitions. The default value is an empty string.

messages: MessageArray

A MessageArray object specifying the messages received during an analysis.

environment: tuple

A tuple of Strings specifying the environment variables and their values.

licenseType: SymbolicConstant

A SymbolicConstant specifying the type of license type being used in the case of the DSLS SimUnit license model. Possible values are DEFAULT, TOKEN, and CREDIT. The default value is DEFAULT.If the license model is not the DSLS SimUnit, the licenseType is not available.

Methods

clearMessage()

This method clears messages and sets the status to NONE.

kill()

This method kills the analysis of a job.

submit([consistencyChecking, datacheckJob, ...])

This method submits a job for analysis.

waitForCompletion()

This method interrupts the execution of the script until the end of the analysis.

clearMessage()[source]#

This method clears messages and sets the status to NONE.

kill()[source]#

This method kills the analysis of a job.

submit(consistencyChecking: BooleanType = 1, datacheckJob: BooleanType = False, continueJob: BooleanType = False)[source]#

This method submits a job for analysis.

Parameters:
consistencyChecking

A Boolean specifying whether to perform consistency checking for the job. The default value is ON. It is not recommended to turn the consistency checking off unless you are absolutely sure the model is consistent.

datacheckJob

A Boolean specifying whether to run the job as a datacheck analysis. The default value is False. The datacheckJob and continueJob arguments cannot both be True.

continueJob

A Boolean specifying whether to run the job as a continuation analysis. The default value is False. The datacheckJob and continueJob arguments cannot both be True.

waitForCompletion()[source]#

This method interrupts the execution of the script until the end of the analysis. If you call the waitForCompletion method and the status member is neither SUBMITTED nor RUNNING, Abaqus assumes the analysis has either completed or aborted and returns immediately.

JobFromInputFile#

class JobFromInputFile(name: str, inputFileName: str, type: SymbolicConstantType = 'ANALYSIS', queue: str = '', waitHours: int = 0, waitMinutes: int = 0, atTime: str = '', scratch: str = '', userSubroutine: str = '', numCpus: int = 1, memory: int = 90, memoryUnits: SymbolicConstantType = 'PERCENTAGE', explicitPrecision: SymbolicConstantType = 'SINGLE', nodalOutputPrecision: SymbolicConstantType = 'SINGLE', parallelizationMethodExplicit: SymbolicConstantType = 'DOMAIN', numDomains: int = 1, activateLoadBalancing: BooleanType = 0, multiprocessingMode: SymbolicConstantType = 'DEFAULT', licenseType: SymbolicConstantType = 'DEFAULT')[source]#

The JobFromInputFile object defines a Job object which analyzes a model contained in an input file. The JobFromInputFile object is derived from the Job object.

Notes

This object can be accessed by:

import job
mdb.jobs[name]
Attributes:
getMemoryFromAnalysis: Boolean

A Boolean specifying whether to retrieve the recommended memory settings from the last datacheck or analysis run and use those values in subsequent submissions. The default value is ON.

analysis: SymbolicConstant

A SymbolicConstant specifying whe:py:class:~.the`r :py:class:`~.the job will be analyzed by Abaqus/Standard or Abaqus/Explicit. Possible values are STANDARD, EXPLICIT, and UNKNOWN.If the object has the type JobFromInputFile, analysis=UNKNOWN.

status: SymbolicConstant

A SymbolicConstant specifying the status of the analysis. Possible values are SUBMITTED, RUNNING, ABORTED, TERMINATED, COMPLETED, CHECK_RUNNING, and CHECK_COMPLETED.If the message member is empty, status is set to NONE.

messages: MessageArray

A MessageArray object specifying the messages received during an analysis.

environment: tuple

A tuple of Strings specifying the environment variables and their values.

Methods

setValues([type, queue, waitHours, ...])

This method modifies the JobFromInputFile object.

setValues(type: SymbolicConstantType = 'ANALYSIS', queue: str = '', waitHours: int = 0, waitMinutes: int = 0, atTime: str = '', scratch: str = '', userSubroutine: str = '', numCpus: int = 1, memory: int = 90, memoryUnits: SymbolicConstantType = 'PERCENTAGE', explicitPrecision: SymbolicConstantType = 'SINGLE', nodalOutputPrecision: SymbolicConstantType = 'SINGLE', parallelizationMethodExplicit: SymbolicConstantType = 'DOMAIN', numDomains: int = 1, activateLoadBalancing: BooleanType = 0, multiprocessingMode: SymbolicConstantType = 'DEFAULT', licenseType: SymbolicConstantType = 'DEFAULT')[source]#

This method modifies the JobFromInputFile object.

Parameters:
type

A SymbolicConstant specifying the type of job. Possible values are ANALYSIS, SYNTAXCHECK, and RECOVER. The default value is ANALYSIS.For theJobFromInputFile object, *type*=RESTART is not currently supported.

queue

A String specifying the name of the queue to which to submit the job. The default value is an empty string.Note: You can use the queue argument when creating a Job object on a Windows workstation; however, remote queues are available only on Linux platforms.

waitHours

An Int specifying the number of hours to wait before submitting the job. This argument is ignored if queue is set. The default value is 0.This argument works in conjunction with waitMinutes. waitHours and atTime are mutually exclusive.

waitMinutes

An Int specifying the number of minutes to wait before submitting the job. This argument is ignored if queue is set. The default value is 0.This argument works in conjunction with waitHours. waitMinutes and atTime are mutually exclusive.

atTime

A String specifying the time at which to submit the job. If queue is empty, the string syntax must be valid for the Linux at command. If queue is set, the syntax must be valid according to the system administrator. The default value is an empty string.Note: You can use the atTime argument when creating a Job object on a Windows workstation; however, the at command is available only on Linux platforms.

scratch

A String specifying the location of the scratch directory. The default value is an empty string.

userSubroutine

A String specifying the file containing the user’s subroutine definitions. The default value is an empty string.

numCpus

An Int specifying the number of CPUs to use for this analysis if parallel processing is available. Possible values are numCpus >> 0. The default value is 1.

memory

An Int specifying the amount of memory available to Abaqus analysis. The value should be expressed in the units supplied in memoryUnits. The default value is 90.

memoryUnits

A SymbolicConstant specifying the units for the amount of memory used in an Abaqus analysis. Possible values are PERCENTAGE, MEGA_BYTES, and GIGA_BYTES. The default value is PERCENTAGE.

explicitPrecision

A SymbolicConstant specifying whether to use the double precision version of Abaqus/Explicit. Possible values are SINGLE, FORCE_SINGLE, DOUBLE, DOUBLE_CONSTRAINT_ONLY, and DOUBLE_PLUS_PACK. The default value is SINGLE.

nodalOutputPrecision

A SymbolicConstant specifying the precision of the nodal output written to the output database. Possible values are SINGLE and FULL. The default value is SINGLE.

parallelizationMethodExplicit

A SymbolicConstant specifying the parallelization method for Abaqus/Explicit. This value is ignored for Abaqus/Standard. Possible values are DOMAIN and LOOP. The default value is DOMAIN.

numDomains

An Int specifying the number of domains for parallel execution in Abaqus/Explicit. When parallelizationMethodExplicit*=DOMAIN, *numDomains must be a multiple of numCpus. The default value is 1.

activateLoadBalancing

A Boolean specifying whether to activate dyanmic load balancing for jobs running on multiple processors with multiple domains in Abaqus/Explicit. The default value is OFF.

multiprocessingMode

A SymbolicConstant specifying whether an analysis is decomposed into threads or into multiple processes that communicate through a message passing interface (MPI). Possible values are DEFAULT, THREADS, and MPI. The default value is DEFAULT.

licenseType

A SymbolicConstant specifying the type of license type being used in the case of the DSLS SimUnit license model. Possible values are DEFAULT, TOKEN, and CREDIT. The default value is DEFAULT.If the license model is not the DSLS SimUnit, the licenseType is not available.

Message#

class Message[source]#

The Message object contains information about a given phase of the simulation. Job messages are not returned if a script is run without the Abaqus/CAE GUI (using the noGUI option).

Notes

This object can be accessed by:

import job
mdb.coexecutions[name].jobs[name].messages[i]
mdb.jobs[name].messages[i]
Attributes:
type: SymbolicConstant
A SymbolicConstant specifying the type of message. Possible values are:
  • ABORTED

  • ANY_JOB

  • ANY_MESSAGE_TYPE

  • COMPLETED

  • END_STEP

  • ERROR

  • HEADING

  • HEALER_JOB

  • HEALER_TYPE

  • INTERRUPTED

  • ITERATION

  • JOB_ABORTED

  • JOB_COMPLETED

  • JOB_INTERRUPTED

  • JOB_SUBMITTED

  • MONITOR_DATA

  • ODB_FILE

  • ODB_FRAME

  • STARTED

  • STATE_FRAME

  • STATUS

  • STEP

  • WARNING

data: dict

A Dictionary object specifying the data returned by the analysis product. The value depends on the message returned. For a list of the possible entries, see the members of DataObject.

MessageArray#

class MessageArray(iterable=(), /)[source]#

Methods

findAt

ModelJob#

class ModelJob(name: str, model: str, description: str = '', type: SymbolicConstantType = 'ANALYSIS', queue: str = '', waitHours: int = 0, waitMinutes: int = 0, atTime: str = '', echoPrint: BooleanType = 0, contactPrint: BooleanType = 0, modelPrint: BooleanType = 0, historyPrint: BooleanType = 0, scratch: str = '', userSubroutine: str = '', numCpus: int = 1, memory: int = 90, memoryUnits: SymbolicConstantType = 'PERCENTAGE', explicitPrecision: SymbolicConstantType = 'SINGLE', nodalOutputPrecision: SymbolicConstantType = 'SINGLE', parallelizationMethodExplicit: SymbolicConstantType = 'DOMAIN', numDomains: int = 1, activateLoadBalancing: BooleanType = 0, multiprocessingMode: SymbolicConstantType = 'DEFAULT', licenseType: SymbolicConstantType = 'DEFAULT', *args, **kwargs)[source]#

The ModelJob object defines a Job object which analyzes a model on a model database (MDB). The ModelJob object is derived from the Job object.

Notes

This object can be accessed by:

import job
mdb.adaptivityProcesses[name].job
mdb.jobs[name]
Attributes:
name: str

A String specifying the name of the new job. The name must be a valid Abaqus/CAE object name.

echoPrint: Boolean

A Boolean specifying whether an echo of the input data is printed. The default value is OFF.

contactPrint: Boolean

A Boolean specifying whether contact constraint data are printed. The default value is OFF.

modelPrint: Boolean

A Boolean specifying whether model definition data are printed. The default value is OFF.

historyPrint: Boolean

A Boolean specifying whether history data are printed. The default value is OFF.

model: str

A String specifying the name of the model to be analyzed or a Model object specifying the model to be analyzed.

description: str

A String specifying a description of the job.

type: SymbolicConstant

A SymbolicConstant specifying the type of job. Possible values are ANALYSIS, SYNTAXCHECK, RECOVER, and RESTART. The default value is ANALYSIS.If the object has the type JobFromInputFile, type=RESTART is not available.

waitHours: int

An Int specifying the number of hours to wait before submitting the job. This argument is ignored if queue is set. The default value is 0.This argument works in conjunction with waitMinutes. waitHours and atTime are mutually exclusive.

waitMinutes: int

An Int specifying the number of minutes to wait before submitting the job. This argument is ignored if queue is set. The default value is 0.This argument works in conjunction with waitHours. waitMinutes and atTime are mutually exclusive.

numCpus: int

An Int specifying the number of CPUs to use for this analysis if parallel processing is available. Possible values are numCpus >> 0. The default value is 1.

memory: int

An Int specifying the amount of memory available to Abaqus analysis. The value should be expressed in the units supplied in memoryUnits. The default value is 90.

memoryUnits: SymbolicConstant

A SymbolicConstant specifying the units for the amount of memory used in an Abaqus analysis. Possible values are PERCENTAGE, MEGA_BYTES, and GIGA_BYTES. The default value is PERCENTAGE.

getMemoryFromAnalysis: Boolean

A Boolean specifying whether to retrieve the recommended memory settings from the last datacheck or analysis run and use those values in subsequent submissions. The default value is ON.

explicitPrecision: SymbolicConstant

A SymbolicConstant specifying whether to use the double precision version of Abaqus/Explicit. Possible values are SINGLE, FORCE_SINGLE, DOUBLE, DOUBLE_CONSTRAINT_ONLY, and DOUBLE_PLUS_PACK. The default value is SINGLE.

nodalOutputPrecision: SymbolicConstant

A SymbolicConstant specifying the precision of the nodal output written to the output database. Possible values are SINGLE and FULL. The default value is SINGLE.

parallelizationMethodExplicit: SymbolicConstant

A SymbolicConstant specifying the parallelization method for Abaqus/Explicit. This value is ignored for Abaqus/Standard. Possible values are DOMAIN and LOOP. The default value is DOMAIN.

numDomains: int

An Int specifying the number of domains for parallel execution in Abaqus/Explicit. When parallelizationMethodExplicit=DOMAIN, numDomains must be a multiple of numCpus. The default value is 1.

activateLoadBalancing: Boolean

A Boolean specifying whether to activate dyanmic load balancing for jobs running on multiple processors with multiple domains in Abaqus/Explicit. The default value is OFF.

multiprocessingMode: SymbolicConstant

A SymbolicConstant specifying whether an analysis is decomposed into threads or into multiple processes that communicate through a message passing interface (MPI). Possible values are DEFAULT, THREADS, and MPI. The default value is DEFAULT.

analysis: SymbolicConstant

A SymbolicConstant specifying whe:py:class:~.the`r :py:class:`~.the job will be analyzed by Abaqus/Standard or Abaqus/Explicit. Possible values are STANDARD, EXPLICIT, and UNKNOWN.If the object has the type JobFromInputFile, analysis=UNKNOWN.

status: SymbolicConstant

A SymbolicConstant specifying the status of the analysis. Possible values are SUBMITTED, RUNNING, ABORTED, TERMINATED, COMPLETED, CHECK_RUNNING, and CHECK_COMPLETED.If the message member is empty, status is set to NONE.

queue: str

A String specifying the name of the queue to which to submit the job. The default value is an empty string.Note:You can use the queue argument when creating a Job object on a Windows workstation; however, remote queues are available only on Linux platforms.

atTime: str

A String specifying the time at which to submit the job. If queue is empty, the string syntax must be valid for the Linux at command. If queue is set, the syntax must be valid according to the system administrator. The default value is an empty string.Note:You can use the atTime argument when creating a Job object on a Windows workstation; however, the at command is available only on Linux platforms.

scratch: str

A String specifying the location of the scratch directory. The default value is an empty string.

userSubroutine: str

A String specifying the file containing the user’s subroutine definitions. The default value is an empty string.

messages: MessageArray

A MessageArray object specifying the messages received during an analysis.

environment: tuple

A tuple of Strings specifying the environment variables and their values.

Methods

setValues()

This method modifies the ModelJob object.

writeInput([consistencyChecking])

This method writes an input file.

setValues()[source]#

This method modifies the ModelJob object.

writeInput(consistencyChecking: BooleanType = 1)[source]#

This method writes an input file.

Parameters:
consistencyChecking

A Boolean specifying whether to perform consistency checking for the job. The default value is ON.It is not recommended to turn the consistency checking off unless you are absolutely sure the model is consistent.

OptimizationProcess#

class OptimizationProcess(name: str, model: str, task: str, prototypeJob: str, description: str = '', maxDesignCycle: int = 15, dataSaveFrequency: str = 'OPT_DATASAVE_SPECIFY_CYCLE', saveInitial: BooleanType = True, saveFirst: BooleanType = True, saveLast: BooleanType = True, saveEvery: int | None = None)[source]#

The OptimizationProcess object defines a process to perform an optimization of a model defined using an optimization task.

Notes

This object can be accessed by:

import job
mdb.optimizationProcesses[name]

Methods

extract(outputFileName, designCycle[, ...])

This method extracts a surface mesh from the optimized model.

setValues([description, maxDesignCycle, ...])

This method modifies the OptimizationProcess object.

submit([validate])

This method submits an optimization process.

waitForCompletion()

This method interrupts the execution of the script until the end of all the analyses.

writeParAndInputFiles()

This method allows you to write par and input files for an optimization task.

extract(outputFileName: str, designCycle: str, isoValue: str = 0, smoothCycles: str = 5, reductionPercent: str = 0, reductionAngle: str = '', targetVolume: str = 0, extractFormat: tuple = 'OPT_EXTRACT_SMOOTH_ABAQUS_INPUT_FILE', resultFiltering: str = 0, instances: str = '')[source]#

This method extracts a surface mesh from the optimized model.

Parameters:
outputFileName

Name of the output file for the extracted surface mesh.

designCycle

The design cycle number for which the surface mesh should be extracted.

isoValue

Value used to determine the positions on the element edges where the new nodes are created. Value between 0 and 1. The default value is 0.3.

smoothCycles

Number of smoothing cycles; if set to 0, no smoothing is performed. The default value is 5.

reductionPercent

Defines the percent of faces that should be removed during the data reduction. If set to 0, no data reduction occurs. If set to 100, the data reduction stops when no faces can be removed (that is checked using reductionAngle parameter). Value between 0 and 100. The default value is 0.

reductionAngle

Defines the maximal angle between adjacent faces at a node such that the node may be removed during the data reduction. Value in degrees between 0 and 90. The default value is15.

targetVolume

Defines the target volume that is to be achieved iteratively by varying the isovalue. Value between 0 and 1. The default value is 0.

extractFormat

A tuple for the types of format of the output. Possible values are OPT_EXTRACT_SMOOTH_ABAQUS_INPUT_FILE, OPT_EXTRACT_SMOOTH_STL, OPT_EXTRACT_SMOOTH_IGES1, OPT_EXTRACT_SMOOTH_IGES2, or OPT_EXTRACT_SMOOTH_IGES3. The default value is OPT_EXTRACT_SMOOTH_ABAQUS_INPUT_FILE.

resultFiltering

Possible string values are OFF or MODERATE or FULL. Defines if the element material values are to be filtered (averaged locally) before the isocut, and to what extent. The default value is OFF.

instances

Defines a list of names of part instances to be used for surface extraction. One file (according to extractFormat) is created for each part instance. If the argument is not specified, no part instance is selected and surface is generated for the whole model.

setValues(description: str = '', maxDesignCycle: int = 15, dataSaveFrequency: str = 'OPT_DATASAVE_SPECIFY_CYCLE', saveInitial: BooleanType = True, saveFirst: BooleanType = True, saveLast: BooleanType = True, saveEvery: int | None = None)[source]#

This method modifies the OptimizationProcess object.

Parameters:
description

A String specifying a description of the optimization process.

maxDesignCycle

An Int specifying the maximum number of allowed design cycles for the optimization process. The default value is 15.

dataSaveFrequency

An Enum specifying whether Abaqus should save every iteration file in the optimization process or a selection of iteration files saved at a user-specified frequency. If you set dataSaveFrequency*=OPT_DATASAVE_EVERY_CYCLE, Abaqus saves every iteration file; if you set *dataSaveFrequency*=OPT_DATASAVE_SPECIFY_CYCLE, Abaqus saves iteration files according to the frequency defined by the *saveEvery parameter. The default value is OPT_DATASAVE_SPECIFY_CYCLE.

saveInitial

A Boolean specifying whether the initial cycle should be saved when dataSaveFrequency is OPT_DATASAVE_SPECIFY_CYCLE. The default value is True.

saveFirst

A Boolean specifying whether the first cycle should be saved when dataSaveFrequency is OPT_DATASAVE_SPECIFY_CYCLE. The default value is True.

saveLast

A Boolean specifying whether the last cycle should be saved when dataSaveFrequency is OPT_DATASAVE_SPECIFY_CYCLE. The default value is True.

saveEvery

An Int specifying every nth cycle iterations to be saved when dataSaveFrequency is OPT_DATASAVE_SPECIFY_CYCLE. Abaqus saves file iterations for every nth iteration after iteration 1; if you set *saveEvery*=3, Abaqus saves file iterations for cycles 1, 4, 7, and so on. The default value is None.

submit(validate: BooleanType = False)[source]#

This method submits an optimization process.

Parameters:
validate

A Boolean specifying whether Abaqus should perform the validation of the optimization process only. The default value is False.

waitForCompletion()[source]#

This method interrupts the execution of the script until the end of all the analyses. If you call the waitForCompletion method and the status member is neither SUBMITTED nor RUNNING, Abaqus assumes the analysis has either completed or aborted and returns immediately.

writeParAndInputFiles()[source]#

This method allows you to write par and input files for an optimization task.

Queue#

class Queue(name: str, queueName: str, hostName: str = '', fileCopy: BooleanType = 1, directory: str = '', driver: str = '', remotePlatform: SymbolicConstantType = 'Linux', filesToCopy: str = 'ALL', deleteAfterCopy: BooleanType = 0, description: str = '')[source]#

A Queue object tells the job where and how to submit a job remotely. A Queue object can be used as the queue argument to the Job method.

Notes

This object can be accessed by:

import job
session.queues[name]