Creating Functions from Formulas

You can define a system excitation using a user-defined formula, which can serve as an input for conducting both kinematic and dynamic simulations.

See Also
About Functions
  1. From the Mechanism section of the action bar, click Function .
  2. Select Formula as the function type to create.

    The Plot Graph panel plots the curve. This lets you preview the resulting function before computing the mechanism and generating the 2D Plot results. For more information, see Using 2D Plots.

    Note: The plot curve updates according to the selected function type, input or output physical quantities, or other function parameters.
    Tip: Select an area of the plot graph to zoom in on, and click Zoom to Fit to return to the full view.

  3. Optional: Modify the default name of the element.

    Tip: Click outside the field to update the name of the element in the tree.

  4. From Create in, select an option:
    OptionDescription
    Mechanism Creates the function in the current mechanism.

    In the tree, the function appears under the Functions node of the Model .

    Analysis Case Creates the function in the current analysis case.

    In the tree, the function appears under the Functions node of the Scenario .

    Tip: To compute function results in different analysis cases, create the functions in the current mechanism.

  5. In the Physical Quantities section, select a type of quantity for the output value in the Dependent, F(x) field.

    The Independent, x physical quantity can only be time.

  6. In the Definition section, define the formula for Function, F(x).

    Notes:
    • You can click the buttons at the bottom of the section to compose the formula without typing.
    • You can define formulas using constant values or expressions based on the independent variable, x.
    • The formula definition is unit sensitive; that is, the app considers the units of the independent variable, dependent variable, and any constants.
    • You can enter a formula without specifying units. In such cases, the app considers the SI units (for example, meters, seconds) and not the current units.

    The Function dialog box indicates whether a formula is valid or invalid using:
    • A warning or error flag to the left of Function, F(x). Hover over the flag to resolve the identified issue.
    • Colored borders around the Definition field: red for errors, yellow for warnings.
  7. Expand Definition range, and then define the limits of the independent physical quantity:
    1. Select Lower limit, and enter a value for the lower limit of the independent physical quantity.
    2. Select Upper limit, and enter a value for the upper limit of the independent physical quantity.

    Notes:
    • For undefined limits, the axis of the independent physical quantity defaults to ±10 in SI units.
    • To update the resulting curve, click outside of the edited field or press Tab.

  8. Optional: Expand Function Constants, and then define the constants of the function:
    1. From New constant of magnitude, select the type of the constant.
    2. In each row of the table, enter the name and the value of the constant.

      Notes:
      • Constants remain fixed over time; that is, they do not vary with the independent variable.
      • You can use knowledge formulas to define the function parameters.

        To do so, right-click a parameter field and select Edit formula. For more information, see Using Knowledge Parameters and Formulas.

      • Once defined, you can reuse constants within your formula.
      • Defining constants is optional, but it is helpful for clarity and reuse.

    Edit the table using the following options:

    OptionDescription


    Append a row
    Adds a new row at the end of the table, with default values, and increments the x value.

    Use this option to create the first row of the table.



    Delete the selected rows
    Deletes the selected row or rows.


    Inserts the constant at the current cursor position in the Definition field.
  9. Click Show Plot to hide or show the Plot Graph panel.