<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html
  SYSTEM "about:legacy-compat">
<html xmlns:mml = "http://www.w3.org/1998/Math/MathML" lang = "en"><head><meta charset = "UTF-8"/><meta name = "copyright" content = "(C) Copyright 2020"/><meta name = "DC.rights.owner" content = "(C) Copyright 2020"/><meta name = "DC.type" content = "reference"/><meta name = "abstract" content = "This section shows general information as well as the basic parameters for the DRIVER command."/><meta name = "description" content = "This section shows general information as well as the basic parameters for the DRIVER command."/><meta name = "DC.format" content = "HTML5"/><meta name = "DC.identifier" content = "tso-r-cmd-driver-genInfo"/><meta name = "DC.language" content = "en"/><link rel = "stylesheet" type = "text/css" href = "../DSDocUI_XML34.css"/><title>General Information</title>
<script type = "text/javascript" src = "../DSDocUI_Highlight34.js">
  	/* */
  	</script></head><body onLoad = "highlightSearchTerms();" id = "tso-r-cmd-driver-genInfo">
<a name = "hj-top"> </a><table class = "table1" id = "table11"><tr><td><table class = "DocHeader"><tr><td class = "DocHeader1" colspan = "2"><h1>General Information</h1></td></tr><tr><td class = "DocHeader4" colspan = "2"/></tr><tr><td class = "DocHeader3" colspan = "2"><table class = "DocThemeIntro" id = "table12"><tr><td class = "Intro1Only"><p class = "header"><p class = "abstract">
<span class = "shortdesc">This section shows general information as well as the basic parameters for the 
<code class = "ph codeph">DRIVER</code> command.</span>

</p>
<p>This page discusses: </p><ul><li><a href = "#tso-r-cmd-driver-genInfo__tso-r-cmd-driver-genInfoIntroduction" id = "toc_rg" title = "">Introduction</a></li><li><a href = "#tso-r-cmd-driver-genInfo__jgh55427700121" id = "toc_rg" title = "">Step-in Example</a></li></ul>
</p></td></tr></table></td></tr></table>




<div class = "body refbody">


<div class = "section" id = "tso-r-cmd-driver-genInfo__tso-r-cmd-driver-genInfoIntroduction"><h2 class = "title sectiontitle">Introduction</h2>

<p>The <code class = "ph codeph">DRIVER</code> command is compatible with the
<a class = "xref" href = "../TsoUserMap/tso-m-usr-control-general-test-sb.htm#tso-m-usr-control-general-test-sb" title = "SIMULIA Tosca Structure consists of many individual software modules that load the FE input and result data or modify the input files when required. The complete optimization process is controlled from one principal module named SIMULIA Tosca Structure Control. It controls the calling sequence of the individual software modules and the relevant solver."><span class = "ph">SIMULIA Tosca Structure</span> Control</a>.
</p>
<p> The statements entered under <code class = "ph codeph">DRIVER</code> 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 <a class = "xref" href = "../TsoUserMap/tso-m-usr-control-general-test-sb.htm#tso-m-usr-control-general-test-sb" title = "SIMULIA Tosca Structure consists of many individual software modules that load the FE input and result data or modify the input files when required. The complete optimization process is controlled from one principal module named SIMULIA Tosca Structure Control. It controls the calling sequence of the individual software modules and the relevant solver."><span class = "ph">SIMULIA Tosca Structure</span> Control</a> that are also accessible through the
          <code class = "ph codeph">DRIVER</code>-command. </p>
</div>


<div class = "section" id = "tso-r-cmd-driver-genInfo__jgh55427700121"><p><map name = "FPMap1"><area href = "#hj-top" title = "Back to Top" shape = "rect" coords = "416, 0, 435, 10"/></map><span class = "itemsprite"/></p><h2 class = "title sectiontitle">Step-in Example</h2>
      
	The next example illustrates some typical statements used in a
        <code class = "ph codeph">DRIVER</code>-command. <pre class = "codeblock">
<code class = "ph codeph">
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_
</code>
</pre>
      <table class = "table"><caption/><colgroup><col/><col/><col/><col/></colgroup><thead class = "thead">
            <tr class = "row">
              <th class = "entry" id = "tso-r-cmd-driver-genInfo__jgh55427700121__entry__1">
                <p>Configuration Parameter</p>
              </th>
              <th class = "entry" id = "tso-r-cmd-driver-genInfo__jgh55427700121__entry__2">
                <p>Example</p>
              </th>
              <th class = "entry" id = "tso-r-cmd-driver-genInfo__jgh55427700121__entry__3">
                <p>Remarks</p>
              </th>
              <th class = "entry" id = "tso-r-cmd-driver-genInfo__jgh55427700121__entry__4">
                <p>Type</p>
              </th>
            </tr>
          </thead><tbody class = "tbody">
            <tr class = "row">
              <td class = "entry" headers = "tso-r-cmd-driver-genInfo__jgh55427700121__entry__1">
                <p>driver.registerSaveRule</p>
              </td>
              <td class = "entry" headers = "tso-r-cmd-driver-genInfo__jgh55427700121__entry__2">
                <p>driver.registerSaveRule( UpdateRules.COPY, CheckPoints.CYCLE_COMPLETE,
                  EventTimes.EVER, [ ], r'', r'_%i_%p' )</p>
              </td>
              <td class = "entry" headers = "tso-r-cmd-driver-genInfo__jgh55427700121__entry__3">
                <p>Adds new file archiving rule</p>
              </td>
              <td class = "entry" headers = "tso-r-cmd-driver-genInfo__jgh55427700121__entry__4">
                <p>Function</p>
              </td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "tso-r-cmd-driver-genInfo__jgh55427700121__entry__1">
                <p>driver.Modules</p>
              </td>
              <td class = "entry" headers = "tso-r-cmd-driver-genInfo__jgh55427700121__entry__2">
                <p>driver.Modules[ ToscaModules.TOSCA_PREP ].Path =
                  r'e:\FE_APP\TOSCA\SMATsoToscaPrep.exe'</p>
              </td>
              <td class = "entry" headers = "tso-r-cmd-driver-genInfo__jgh55427700121__entry__3">
                <p><span class = "ph">Tosca</span> modules register</p>
              </td>
              <td class = "entry" headers = "tso-r-cmd-driver-genInfo__jgh55427700121__entry__4">
                <p>Dictionary</p>
              </td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "tso-r-cmd-driver-genInfo__jgh55427700121__entry__1">
                <p>driver.Solver</p>
              </td>
              <td class = "entry" headers = "tso-r-cmd-driver-genInfo__jgh55427700121__entry__2">
                <p>driver.Solver.Path = r'e:\FE_APP\abaqus\SMALauncher.exe'</p>
              </td>
              <td class = "entry" headers = "tso-r-cmd-driver-genInfo__jgh55427700121__entry__3">
                <p>Fe-Solver associated with the current job</p>
              </td>
              <td class = "entry" headers = "tso-r-cmd-driver-genInfo__jgh55427700121__entry__4">
                <p>Object</p>
              </td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "tso-r-cmd-driver-genInfo__jgh55427700121__entry__1">
                <p>driver.LifeSolver</p>
              </td>
              <td class = "entry" headers = "tso-r-cmd-driver-genInfo__jgh55427700121__entry__2">
                <p>driver.LifeSolver.Path = r'e:\FE_APP\fesafe.exe'</p>
              </td>
              <td class = "entry" headers = "tso-r-cmd-driver-genInfo__jgh55427700121__entry__3">
                <p>Life solver associated with the current job</p>
              </td>
              <td class = "entry" headers = "tso-r-cmd-driver-genInfo__jgh55427700121__entry__4">
                <p>Object</p>
              </td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "tso-r-cmd-driver-genInfo__jgh55427700121__entry__1">
                <p>driver.Logger</p>
              </td>
              <td class = "entry" headers = "tso-r-cmd-driver-genInfo__jgh55427700121__entry__2">
                <p>driver.Logger.LogLevel = LogLevels.DEBUG</p>
              </td>
              <td class = "entry" headers = "tso-r-cmd-driver-genInfo__jgh55427700121__entry__3">
                <p>Gets or sets the logging instance infrastructure</p>
              </td>
              <td class = "entry" headers = "tso-r-cmd-driver-genInfo__jgh55427700121__entry__4">
                <p>Object</p>
              </td>
            </tr>
          </tbody></table>
      <div class = "note"><span class = "run-in.note">Note:
			</span><span class = "notecontent"> Notice the handy usage of "raw" Python strings, for example
          <code class = "ph codeph">r'e:\FE_APP\fesafe.exe'</code>. If strings are entered with the
          <code class = "ph codeph">r</code>-prefix the Python interpreter does not consider any escape-character
        sequences in the string and it is used "as-is." </span></div>

      
    </div>

</div>

</td></tr></table><script type = "text/javascript" src = "../DSDocUI_Bottom34.js">/* */</script></body>
</html>
