Creating a Functional or Logical Structure with a Dymola Behavior Containing a Modelica Component

You can create a structure of functions or logical components with a Dymola behavior containing a Modelica component.

In this scenario you create, from scratch, a function or a logical component with a child function or child logical component, containing a resistor from the Modelica Standard Library.

This scenario is useful in two ways:

  • It is an example how to quickly build a simple Modelica behavior where you also can work with parameters and other modifiers from the Functional & Logical Design app.
  • It allows you to be able to quickly be able to investigate the features of Dymola Behavior Modeling behaviors available in the Functional & Logical Design app.

Important: This scenario describes how you insert a component from Modelica Standard Library which is by default always open. If you need to insert a component from a library not open, see the note in Step 5b.

  1. If the Functional & Logical Design app is not open, do the following:
    1. From the Compass, click 3D Modeling Apps .
    2. Expand 3DEXPERIENCE Roles and Apps.
    3. Expand My 3D Modeling apps.
    4. Select Functional & Logical Design.
  2. To create a top level function or logical component, do the following:
    • To create a new function, right-click, in the tree, Functional and select Insert New Function.
    • To create a new logical component:
      1. Right-click, in the tree, Logical and select Insert New Logical Component
      2. From the New Content dialog box, expand Logical and select Logical Reference.
    A top level function or logical component is created.
    Important: You can insert a Dymola behavior directly under this top-level item, but you cannot work with parameters or other modifiers for such a behavior. To be able to do this, behaviors must be inserted in functions or logical components added under this top level item.
  3. To create a function or logical component under the top level function or logical component, do the following:
    • To create a new function, right-click, in the tree, Functional Reference and select Insert New Function.
    • To create a new logical component:
      1. Right-click, in the tree, Logical Reference and select Insert New Logical Component
      2. From the New Content dialog box, expand Logical and select Logical Reference.
    A child function or logical component is created under the top level function or logical component.
  4. Insert a Dymola behavior in this child function or child logical component.

    For more information about inserting a Dymola behavior, see Inserting a Behavior in an Existing Function or Logical Component.

  5. In the Dymola behavior, insert a resistor from the Modelica Standard Library. Follow Editing a Dymola Behavior or a Context Behavior the following way:
    1. Perform the steps in any alternative in the reference until the step "Edit the behavior".
    2. From the Package Browser, expand the nodes, in turn, Modelica > Electrical > Analog > Basic.

      Important: This scenario describes how you insert a component from Modelica Standard Library which is by default always open. If you need to insert a component from a library not open, you must first open that library to be able to insert components from it. For information about opening a Dymola behavior library see Dymola Behavior Modeling Users Guide: Working with Behavior Libraries: Opening a Dymola Behavior Library.

      Note that when you open with search, you open a new tab, but if you go back to the original tab, the library is now present also in the Package Browser of that tab.

      You see the electrical components of this package.
    3. From the Package Browser, drag Resistor to the diagram.
      You have instantiated the resistor as a component in your behavior.
    4. Perform, for the alternative that you have selected in the reference above, the steps after the step "Edit the behavior".

      You save the result and leave the Dymola Behavior Modeling app.

You have built a functional or logical structure containing a Dymola behavior with a resistor from the Modelica Standard Library as a component.