General Information

This section shows general information as well as the basic parameters for the DRIVER command.

This page discusses:

Introduction

The DRIVER command is compatible with the SIMULIA Tosca Structure Control.

The statements entered under DRIVER are lines of Python code embedded into the control script and executed at a certain point of the job-initialization. Thus, syntax rules for the Python language apply to the way these statements should be written by the user. This guide provides an insight of the objects and variable specific to the SIMULIA Tosca Structure Control that are also accessible through the DRIVER-command.

Step-in Example

The next example illustrates some typical statements used in a DRIVER-command.

DRIVER
  driver.registerSaveRule( UpdateRules.COPY, CheckPoints.CYCLE_COMPLETE, EventTimes.EVER, [  ], r'', r'_%i_%p' )
  driver.Modules[ ToscaModules.TOSCA_PREP ].Path = r'e:\FE_APP\TOSCA\SMATsoToscaPrep.exe'
  driver.Solver.Path = r'e:\FE_APP\abaqus\SMALauncher.exe'
  driver.LifeSolver.Path = r'e:\FE_APP\fesafe.exe'
  driver.Logger.LogLevel = LogLevels.DEBUG
END_

Configuration Parameter

Example

Remarks

Type

driver.registerSaveRule

driver.registerSaveRule( UpdateRules.COPY, CheckPoints.CYCLE_COMPLETE, EventTimes.EVER, [ ], r'', r'_%i_%p' )

Adds new file archiving rule

Function

driver.Modules

driver.Modules[ ToscaModules.TOSCA_PREP ].Path = r'e:\FE_APP\TOSCA\SMATsoToscaPrep.exe'

Tosca modules register

Dictionary

driver.Solver

driver.Solver.Path = r'e:\FE_APP\abaqus\SMALauncher.exe'

Fe-Solver associated with the current job

Object

driver.LifeSolver

driver.LifeSolver.Path = r'e:\FE_APP\fesafe.exe'

Life solver associated with the current job

Object

driver.Logger

driver.Logger.LogLevel = LogLevels.DEBUG

Gets or sets the logging instance infrastructure

Object

Note: Notice the handy usage of "raw" Python strings, for example r'e:\FE_APP\fesafe.exe'. If strings are entered with the r-prefix the Python interpreter does not consider any escape-character sequences in the string and it is used "as-is."