SolverString
Class SolverString()
SolverString(parent='MODEL', name='SolverString_n', label='SolverString_n', active=True, value=''))Creates a string within the solver input file.
Keyword Arguments
| Argument | Data Type | Description | Default | 
|---|---|---|---|
| name | String | The variable name. | SolverString_n, for next available integer n. | 
| label | String | The descriptive label. | SolverString_n, for next available integer n. | 
| parent | Object | The parent. | MODEL | 
| active | Boolean | Used to activate or deactivate this entity. | True | 
| value | Double | The value of solver string. Defaults to ''. * user (Bool) : Use user defined properties, if true. | False | 
| usr_sub | Function | The expression passed to the user dll. When using solver expressions, Templex syntax (within ``) is used and all variables are enclosed in braces {} and the rest is treated as literal. | 'USER()' | 
| local_funcname | String | The function/subroutine name. | 'MOTSUB' | 
| use_local_dll | Bool | Uses a local function instead of default if True. | False | 
| local_dll | File | The path of the local dll which has the local_funcname. | '' | 
| local_func_type | Enum | The type of the user subroutine. One of DLL, PYTHON or MATLAB. | 'DLL' | 
Examples
   >>> # Import the mview module
   >>> from hw import mview
   >>> # Create a SolverString
   >>> solstr = mview.SolverString(name = 'solstr', label = 'Solver mode')
   >>> solstr.value = 'ABAQUS'
   >>> # Cross check the SolverString value
   >>> solstr.value
   'ABAQUS'
   >>> # Change the solver mode using SolverString
   >>> mview.getModel().SolverMode.value = solstr.value
   >>> # Check the solver mode now
   >>> mview.getModel().SolverMode.value
   'ABAQUS'