Abaqus Model Database#

Mdb commands are used to create and upgrade an Abaqus model database that stores models and analysis controls.

Objects in Mdb

Object features#

class Mdb(pathName: str = '')[source]#

The Mdb object is the high-level Abaqus model database. A model database stores models and analysis controls.

Notes

This object can be accessed by:

mdb
Attributes:
version: int

An Int specifying the release number of the Mdb object in memory.

lastChangedCount: float

A Float specifying the value of a counter associated with the Mdb object. The counter indicates when the Mdb object was last changed.

jobs: dict[str, Job]

A repository of Job objects.

adaptivityProcesses: dict[str, AdaptivityProcess]

A repository of AdaptivityProcess objects.

coexecutions: dict[str, Coexecution]

A repository of Coexecution objects.

optimizationProcesses: dict[str, OptimizationProcess]

A repository of OptimizationProcess objects.

meshEditOptions: MeshEditOptions

A MeshEditOptions object specifying the undo/redo behavior when editing meshes on parts or part instances.

models: dict[str, Model]

A repository of Model objects.

customData: RepositorySupport

A RepositorySupport object.

annotations: dict[str, Annotation]

A repository of Annotation objects.

Methods

Model(name[, description, stefanBoltzmann, ...])

This method creates a Model object.

Model(name: str, description: str = '', stefanBoltzmann: float | None = None, absoluteZero: float | None = None, waveFormulation: SymbolicConstantType = 'NOT_SET', modelType: SymbolicConstantType = 'STANDARD_EXPLICIT', universalGas: float | None = None, copyConstraints: BooleanType = 1, copyConnectors: BooleanType = 1, copyInteractions: BooleanType = 1) Model[source]#

This method creates a Model object.

Parameters:
name

A String specifying the repository key.

description

A String specifying the purpose and contents of the Model object. The default value is an empty string.

stefanBoltzmann

None or a Float specifying the Stefan-Boltzmann constant. The default value is None.

absoluteZero

None or a Float specifying the absolute zero constant. The default value is None.

waveFormulation

A SymbolicConstant specifying the type of incident wave formulation to be used in acoustic problems. Possible values are NOT_SET, SCATTERED, and TOTAL. The default value is NOT_SET.

modelType

A SymbolicConstant specifying the analysis model type. Possible values are STANDARD_EXPLICIT and ELECTROMAGNETIC. The default is STANDARD_EXPLICIT.

universalGas

None or a Float specifying the universal gas constant. The default value is None.

copyConstraints

A boolean specifying whether to copy the constraints created in the model to the model that instances this model. The default value is ON.

copyConnectors

A boolean specifying whether to copy the connectors created in the model to the model that instances this model. The default value is ON.

copyInteractions

A boolean specifying whether to copy the interactions created in the model to the model that instances this model. The default value is ON.

Returns:
model: Model

A Model object

Notes

This function can be accessed by:

mdb.Model
class AcisMdb(pathName: str = '')[source]#

The Mdb object is the high-level Abaqus model database. A model database stores models and analysis controls.

Notes

This object can be accessed by:

mdb

Methods

openAcis(fileName[, scaleFromFile])

This method creates an AcisFile object from a file containing ACIS-format geometry.

openCatia(fileName[, topology, ...])

This method creates an AcisFile object from a file containing V5-format geometry.

openEnf(fileName, fileType[, topology, ...])

This method creates an AcisFile object from a file containing Elysium Neutral File-format geometry that was created by CATIA V5, I-DEAS, or Pro/ENGINEER.

openIges(fileName[, trimCurve, ...])

This method creates an AcisFile object from a file containing IGES-format geometry.

openParasolid(fileName[, topology])

This method creates an AcisFile object from a file containing Parasolid-format geometry.

openSolidworks(fileName[, topology])

This method creates an AcisFile object from a file containing Solidworks format geometry.

openStep(fileName[, scale])

This method creates an AcisFile object from a file containing STEP-format geometry.

openVda(fileName)

This method creates an AcisFile object from a file containing VDA-FS-format geometry.

static openAcis(fileName: str, scaleFromFile: BooleanType = 0)[source]#

This method creates an AcisFile object from a file containing ACIS-format geometry. This object is subsequently used by the PartFromGeometryFile method.

Parameters:
fileName

A String specifying the path to the ACIS file to open.

scaleFromFile

A Boolean specifying whether to scale, rotate, and translate the part using the transform read from the ACIS file. The default value is OFF.

Returns:
An AcisFile object.
Raises:
  • File is from a newer version of ACIS than the CAE kernel.

    Texterror: ACIS File version exceeds Kernel.

  • The data in the ACIS file are corrupted.

    Texterror: Failed to read ACIS file.

Notes

This function can be accessed by:

mdb.openAcis
static openCatia(fileName: str, topology: SymbolicConstantType | None = None, convertUnits: SymbolicConstantType = 0, combineBodies: BooleanType = 0)[source]#

This method creates an AcisFile object from a file containing V5-format geometry. This object is subsequently used by the PartFromGeometryFile method.

Parameters:
fileName

A String specifying the path to the CATIA file to open.

topology

A SymbolicConstant specifying the topology of the data to be read from the file and of the part to be created. Possible values are SOLID , SHELL, and WIRE. If *topology*=SOLID, Abaqus/CAE attempts to attach cells to create a solid. If *topology*=SHELL, Abaqus/CAE builds the body as a shell entity and not as a solid entity. The default value is SOLID .

convertUnits

A SymbolicConstant specifying whether the original units should be retained. Possible values are ON and OFF. The default value is OFF.

combineBodies

A Boolean specifying whether to combine the bodies in the CATPart file. If the bodies to be combined touch or overlap, invalid entities would result. For CATProduct files, this option will be ignored.

Returns:
An AcisFile object.

Notes

This function can be accessed by:

mdb.openCatia
static openEnf(fileName: str, fileType: str, topology: SymbolicConstantType = 'SOLID', convertUnits: BooleanType = 0)[source]#

This method creates an AcisFile object from a file containing Elysium Neutral File-format geometry that was created by CATIA V5, I-DEAS, or Pro/ENGINEER. This object is subsequently used by the PartFromGeometryFile method.

Parameters:
fileName

A String specifying the path to the Elysium Neutral File that was created by I-DEAS, Pro/ENGINEER, or CATIA V5.

fileType

A String specifying the type of CAD system that created the file. Possible values are “ideas”, “proe”, or “catiav5” or a combination similar to “proe/ideas/catiav5” if the type is unknown.

topology

A SymbolicConstant specifying the topology of the data to be read from the file and of the part to be created. Possible values are SOLID , SHELL, and WIRE. If *topology*=SOLID, Abaqus/CAE attempts to attach cells to create a solid. If *topology*=SHELL, Abaqus/CAE builds the body as a shell entity and not as a solid entity. The default value is SOLID.

convertUnits

A Boolean specifying if the dimensions of the part should be converted to millimeters. The default value is OFF.

Returns:
An AcisFile object.

Notes

This function can be accessed by:

mdb.openEnf
static openIges(fileName: str, trimCurve: SymbolicConstantType = 'DEFAULT', scaleFromFile: SymbolicConstantType = 0, msbo: BooleanType = False, includedLayers: tuple = (), topology: SymbolicConstantType = 'SOLID', uniteWires: SymbolicConstantType = 1)[source]#

This method creates an AcisFile object from a file containing IGES-format geometry. This object is subsequently used by the PartFromGeometryFile method.

Parameters:
fileName

A String specifying the path to the IGES file to open.

trimCurve

A SymbolicConstant specifying the method used to define the trim curves that bound parametric surfaces. Possible values are:DEFAULT, use either of the following as specified by the contents of the IGES file.PARAMETRIC_DATA, use the parameter space of the surface being trimmed.THREED_DATA, use real space—the coordinate system of the part along with an indication that the trim curve lies on the parametric surface.The default value is DEFAULT.

scaleFromFile

A SymbolicConstant specifying whether the imported geometry needs to be scaled using the units information available in the IGES file. Possible values are ON and OFF. The default value is OFF. When the argument is set to ON, the geometry is scaled to millimeters with respect to the unit system specified in the IGES file.

msbo

A Boolean specifying if the IGES file contains MSBO (Manifold Solid B-Rep Object) entities. The default value is False.

includedLayers

A sequence of Ints specifying the levels or layers of entities that will be translated from the IGES file to build the part. The default is to include all the layers.

topology

A SymbolicConstant specifying the topology of the data to be read from the file and of the part to be created. Possible values are SOLID , SHELL, and WIRE. If *topology*=SOLID, Abaqus/CAE attempts to attach cells to create a solid. If *topology*=SHELL, Abaqus/CAE builds the body as a shell entity and not as a solid entity. The default value is SOLID.

uniteWires

A SymbolicConstant specifying whether the imported wires need to be united or not. Possible values are ON and OFF. The default value is ON. When importing a sketch, this value is set to OFF.

Returns:
An AcisFile object.
Raises:
  • The data in the IGES file are corrupted.

    Texterror: Failed to read IGES file.

Notes

This function can be accessed by:

mdb.openIges
static openParasolid(fileName: str, topology: SymbolicConstantType = 'SOLID')[source]#

This method creates an AcisFile object from a file containing Parasolid-format geometry. This object is subsequently used by the PartFromGeometryFile method.

Parameters:
fileName

A String specifying the path to the Parasolid file to open.

topology

A SymbolicConstant specifying the topology of the data to be read from the file and of the part to be created. Possible values are SOLID , SHELL, and WIRE. If *topology*=SOLID, Abaqus/CAE attempts to attach cells to create a solid. If *topology*=SHELL, Abaqus/CAE builds the body as a shell entity and not as a solid entity. The default value is SOLID.

Returns:
An AcisFile object.

Notes

This function can be accessed by:

mdb.openParasolid
static openSolidworks(fileName: str, topology: SymbolicConstantType = 'SOLID')[source]#

This method creates an AcisFile object from a file containing Solidworks format geometry. This object is subsequently used by the PartFromGeometryFile method.

Parameters:
fileName

A String specifying the path to the Solidworks file to open.

topology

A SymbolicConstant specifying the topology of the data to be read from the file and of the part to be created. Possible values are SOLID, SHELL, and WIRE. If *topology*=SOLID, Abaqus/CAE attempts to attach cells to create a solid entity. If *topology*=SHELL, Abaqus/CAE builds the body as a shell entity, not as a solid entity. The default value is SOLID.

Returns:
An AcisFile object.
Raises:
  • The data in the Solidworks file are corrupted.

    Texterror: Failed to read Solidworks file.

Notes

This function can be accessed by:

openSolidworks
static openStep(fileName: str, scale: float = 1)[source]#

This method creates an AcisFile object from a file containing STEP-format geometry. This object is subsequently used by the PartFromGeometryFile method.

Parameters:
fileName

A String specifying the path to the STEP file to open.

scale

A Float specifying the scaling factor to apply to the imported geometric entities. The default value is 1.0.

Returns:
An AcisFile object.
Raises:
  • The data in the STEP file are corrupted.

    Texterror: Failed to read STEP file.

Notes

This function can be accessed by:

mdb.openStep
static openVda(fileName: str)[source]#

This method creates an AcisFile object from a file containing VDA-FS-format geometry. This object is subsequently used by the PartFromGeometryFile method.

Parameters:
fileName

A String specifying the path to the VDA-FS file to open.

Returns:
An AcisFile object.
Raises:
  • The data in the VDA-FS file are corrupted.

    Texterror: Failed to read VDA file.

Notes

This function can be accessed by:

mdb.openVda
class JobMdb(pathName: str = '')[source]#

The Mdb object is the high-level Abaqus model database. A model database stores models and analysis controls.

Notes

This object can be accessed by:

mdb

Methods

Job(name, model[, description, type, queue, ...])

This method creates an analysis job using a model on a model database (MDB) for the model definition.

JobFromInputFile(name, inputFileName[, ...])

This method creates an analysis job using an input file for the model definition.

OptimizationProcess(name, model, task, ...)

This method creates an OptimizationProcess object.

Job(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) ModelJob[source]#

This method creates an analysis job using a model on a model database (MDB) for the model definition.

Parameters:
name

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

model

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

description

A String specifying a description of the job.

type

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.

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.

echoPrint

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

contactPrint

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

modelPrint

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

historyPrint

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

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.

Returns:
A ModelJob object.
Raises:
AbaqusException.

Notes

This function can be accessed by:

mdb.Job
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') JobFromInputFile[source]#

This method creates an analysis job using an input file for the model definition.

Parameters:
name

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

inputFileName

A String specifying the input file to read. Possible values are any valid file name. If the .inp extension is not included in the value of the argument, the system will append it for the user.

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

Notes

This function can be accessed by:

mdb.JobFromInputFile
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) OptimizationProcess[source]#

This method creates an OptimizationProcess object.

Parameters:
name

A String specifying name of the optimization process.

model

A String specifying name of the model to be used for the optimization process.

task

A String specifying name of the optimization task to be used for the optimization process.

prototypeJob

A String specifying name of the job to be used as the prototype for all analysis jobs run by the optimization process.

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.

Returns:
An OptimizationProcess object.
Raises:
AbaqusException.

Notes

This function can be accessed by:

mdb.OptimizationProcess