Configuring the Sizing Weights Input Parsing Instructions

You can specify regions from the ASCII input file that will be used to write Isight parameter values.

  1. Click the Input tab on the Simcode Component Editor.

    The contents of the tab appear. The template file contains several placeholders that must be replaced with the actual values of the parameters.

  2. To convert velocity to a parameter value, select velocity from the center of the editor.
    1. Type CruiseVel in the Parameter text box in the center of the editor.

      Once you begin to enter text, the text box is highlighted in yellow to indicate that the parameter does not exist but will be created.

    2. Click the Write button adjacent to the Parameter text box.

      This action tells Isight to write the value of a parameter called CruiseVel into the input file at the location where the term velocity now resides. For the purpose of file parsing in the Simcode component, Isight typically writes parameters into the input file so that their values may change from run to run. Conversely, Isight reads values from output files after they are run through the Simcode.

      The editor is updated with the new action added to the Actions list and the new parameter added to the Input Parameters list.

      The parameter CruiseVel was assumed to be a string. However, for this example the value is a real number.

    3. Click the cell that contains the word String in the Input Parameters area of the right side of the editor. You may need to scroll over to see this cell under the Type column.
      A list of variable types appears.
    4. Select Real.
      The Type value for the CruiseVel parameter is updated.
    5. Click in the Value cell, and enter 200.

      Isight updates the parameter information as shown in the following figure:

  3. Using the same procedure, create the following input parameters:

    ParameterInitial ValueType
    WingArea177.3Real
    aspectratio0Real
    FuseLngth32.6Real
    FuseDia4.85Real
    WtFuel296Real
    WtEngine197Real
    NumEng1Integer
    NumPass2Integer
    WtPayLoad100Real

    The WtFuel parameter does not appear in the parameter information because you already created it as input parameter for the Performance Simcode component. You need to remove the mapping and change the parameter to input.

  4. Click OK to close the Simcode Component Editor and to save your changes.
  5. With the Sizing Weights Simcode component selected in the Design Gateway, click the Dataflow tab.
  6. Click on the line (in the middle of the tab) that connects WtFuel on the left side of the editor to the Performance component on the right side of the editor.
    The tab looks similar to the following figure:

  7. Click Delete, and then click Yes to confirm the deletion.
  8. Click the Parameters tab.
    1. Select the WtFuel parameter, and change the Mode from output parameter to input parameter .
    2. Save the model.
    3. Click on the Simflow tab.
  9. Open the Sizing Weights Simcode component.

    The editor looks similar to the following figure: