Introduction and OverviewA Python object called driver is exposed to the user via the DRIVER-command. The usual syntax of accessing the members or properties of this object is as follows: DRIVER driver.Logger.LogLevel = LogLevels.DEBUG driver.Modules[ ToscaModules.TOSCA_PREP ].Path = r'e:\FE_APP\TOSCA\SMATsoToscaPrep.exe' END_The driver-object contains further Python-objects. An overview of the hierarchy of all available objects looks as follows: ![]() The squared letters (shown also in the Legend) correspond to the different types of the Python-objects. A detailed explanation of the different objects is provided in the sections below. driver.SolverThe driver.Solver object provides access to the settings of the FE-solver used for the optimization. Please note that this object can have additional and/or different members for some solvers. For example, the driver.Solver.MatrixFormat is used only in the context of the Abaqus solver and is ignored for other solvers.
driver.LifeSolverThe driver.LifeSolver object provides access to settings specific to the different Life-solvers which are supported by SIMULIA Tosca Structure. The driver.LifeSolver object is derived from the driver.Solver object and thus most of the settings are identical between driver.LifeSolver and driver.Solver. In this section, only the settings unique to the Life-Solvers are documented.
driver.ModulesThe driver.Modules dictionary gives access to the setup of the SIMULIA Tosca Structure executable modules. The user can replace one or mode modules for a specific optimization run. For a list of the modules, please refer to the Redefinition of the Tosca Modules section.
driver.LoggerThe driver.Logger object allows modification of the logging settings of the SIMULIA Tosca Structure run.
driver.registerSaveRuleThe driver.registerSaveRule function allows the user to add rules for saving files from the SIMULIA Tosca Structure working directory. Here is an example of the usage of driver.registerSaveRule. In this example, any *.odb files found at the end of the optimization design cycle ("Iteration") are saved into the sub-folder SAVE.odb. A suffix with the iteration number is added to the file name, and this is done for design cycles 0, 1, and the last one. DRIVER driver.registerSaveRule( UpdateRules.COPY, CheckPoints.ITER_COMPLETE, EventTimes.FIRST_LAST, [ '*.odb' ], 'SAVE.odb', '_%i' ) driver.registerSaveRule( UpdateRules.COPY, CheckPoints.ITER_COMPLETE, (EventTimes.NTH, 1), [ '*.odb' ], 'SAVE.odb', '_%i' ) END_ The meaning of the arguments to driver.registerSaveRule can be explained as follows: ![]()
|