Define Model Dependencies

When defining a model, model resources identify additional files required for the model to evaluate successfully, for example reference files called by script or linked result files that were generated by other models.

Varnames can be referenced in the Solver Input Arguments field, for example $file $filebase, and so on. The proper syntax is ${varname}, for example ${m_1.file_2}.
  1. In the Define Models step, click Model Resources.
    The Model Resources dialog opens.
  2. Optional: Graphically view the model.
    1. In the Model Resources dialog, click Block View.
    2. Click and drag items to rearrange the view of the model.
    3. Use the options menu to determine which items display in the window.


  3. Select the model to which the resource will be assigned.
  4. Click Add Resource and select the type of resource to add.
    • Add Input File adds a file that does not change.
    • Add Output File tags a file that can be referenced by a link resource.
    • Add Input Folder adds a folder that does not change.
    • Add Output Folder tags a folder that can be referenced by a link resource.
    • Add Link adds an Output File or Output Folder that changes with each run.
  5. In the Select dialog, navigate to your working directory and open the file/folder/resource to reference.
    Tip: To correct mistakes, right-click the resource file and select Modify Resource from the context menu. The resource is maintained and the operation is performed on a new file.
  6. In the Operation column, select an option.
    • None leaves the file as is. The file is able to be referenced from its existing location.
    • Copy copies the resource into the run directory.
    • Move moves the resource into the run directory (this is only available for Link Resources).
    • Copy Content copies all resources from the selected folder into the run directory.
    • Move Content moves all resource from the selected folder into the run directory.
    • Write Input is a special case for the resource file for the model (for example, the HyperMesh database for a HyperMesh model type).
  7. Click Close.


Figure 1.
Tip:
  • View Include files and links between models in the run directory by enabling Run Directory Preview.
  • For guided help defining a model resource, click Resource Assistant.