Defining graphical functions

A graphical function is a sketch of a relationship between an input (which itself can be an algebraic relationship) and an output.

You can choose to define the graphical function's input by specifying an equation, or you can use the default equation (Time).

For example, you may have a time series of data (sales per month, or average temperature per month). In these examples, the value of the graphical function is dependent on time. In other cases, you might have a graphical function where the value is dependent on other entities. For example, the death rate for an animal population is dependent on the availability of food, the productivity of a worker is dependent on the number of hours worked, etc.

You can define a graphical function for a flow or a converter.

To define a graphical function

  1. In the model, select the flow or converter for which you want to define a graphical function.

  2. On the Equation panel, define the graphical function's input by entering an equation in the Equation box. To use the default equation (TIME), leave the Equation box blank.
  3. On the Graphical Function panel, select the Graphical check box.
  4. On the Graph tab, use the two boxes beneath the graphical function grid to specify the minimum and maximum values for the X-axis.
  5. Use the two boxes to the left of the graphical function grid to specify the minimum and maximum values for the Y-axis.
  6. In the Data Points box, specify the number of data points.
  7. Use one (or a combination) of the following procedures to define the values for the data points:

  8. At the bottom of the Graphical Function panel, click the appropriate picture to select the type of graphical function you want to use: Continuous, Continuous extrapolation, or Step. For more information about these options, see Graphical Function panel.
  9. When you are finished defining the graphical function, click in the bottom-right corner of the panels.

To define a separate graphical function for each element

When you define a graphical function for an arrayed flow or converter and you clear the Apply To All check box, you need to specify a separate graphical function for each combination of dimensions and elements in the array.

For example, if the array has two dimensions, and one dimension has three elements and the other has four elements, you need to specify 12 separate graphical functions. Similarly, if the array has three dimensions, and one dimension has two elements, one has three elements, and one has four elements, you need to specify 36 separate graphical functions.

  1. Select the arrayed flow or converter for which you want to define separate graphical functions.
  2. Clear the Apply To All check box on the Graphical Function panel.

    A table appears at the bottom of the Graphical Function panel so that you can define the graphical functions for up to two dimensions at a time.

    The row of boxes above the table indicates the combination of elements and dimensions you are currently editing in the table.

    In the following example, the table allows you to define the graphical functions for the "Department" and "Employee Type" elements for the "Boston" dimension.

  3. To define a graphical function for any cell in the table, click the cell, then use the options at the top of the Graphical Function panel to define the graphical function for the cell (see steps 4-8, in the previous procedure).

  4. When you have finished defining the graphical functions for the currently displayed combination of elements and dimensions, click the button to display the next combination of elements and dimensions.

    Tip: You can move backwards through the displayed element/dimension combinations by clicking the button.

  5. Repeat steps 3-4 until you have defined graphical functions for each element/dimension combination.

    Tip: You can define a graphical function for a specific element/dimension combination by selecting the elements you want in the boxes above the table. The table adjusts to display the appropriate cells in which to define the graphical function for the selected elements.

To delete a graphical function

  1. In the model, select the converter or flow for which you want to delete the associated graph.

  2. On the Graphical Function panel, clear the Graphical check box.

Concept Link IconSee Also