Equations

Use the Equations option under Modelica Model Editor to add, edit, or remove language-specific equations.

Adding an Equation

Editing an Equation

Removing an Equation

Adding an Equation

  1. Click Modelica Model Editor > Equations. The Edit Model dialog box opens.
  2. Note:

    You can also access this panel from Modelica Model Editor > Variables & Declarations > Equation.

  3. Click to add a row. The Equation dialog box opens.
  4. Use the options to create the equation. Select from the language constructs and functions. On the right is a list of available local variables and component names.
  5. After you create the equation, click OK. The equation is added to the Equations list.

  6. Click OK.

  7. To add this equation to the model text, click Modelica Model Editor > Update Text from Diagram.

Editing an Equation

Click in the Edit column on the Equation panel to edit an equation. Make your changes in the Equation dialog box and click OK.

Removing an Equation

Highlight an equation row in the Equation panel and click to remove it.

Related Topics

Diagram Editor

Using the Diagram Editor