Defining Laws using Knowledgeware

This task will show you how to define laws based on Knowledgeware features allowing time-based simulations
Note that in CATIA two formula edition procedures are available:

  • through I_FormulaP2.gif (164 bytes)

  • using the Command edition dialog box (see step3-8)

A law is an expression which gives the command value for a given time value.

You need a V5 mechanism you can simulate. Read Designing a V5 Mechanism 

Open the DEFNE_LAWS.CATProduct document. Use Fit All In I_ReframeP2.gif (216 bytes) to position the model geometry on the screen.

(Optional)


You can display the relations node in the specification tree.

For this, activate the relations option display:

  • Select Tools > Options from the menu bar.
    The Options dialog box is displayed

  • Expand the Infrastructure category from the  tree

  • Select Product Structure item in the tree 

  • Click the Tree Customization tab

  • Activate the Relations option.

  1. Click Simulation with Laws I_UseLawP2.gif (280 bytes) in the DMU Kinematics toolbar.
    The Kinematics Simulation dialog box appears:

    You need to define at least one relation between a command and the Time parameter, let's create this relation referred to as law throughout this scenario.

  2. Click the Close button to exit the dialog box.

    You are going to create a law using the existing command.1 (joint.1,Angle)

  3. IN CATIA ONLY Click Formula I_FormulaP2.gif (164 bytes) from the Knowledge toolbar. The Formulas dialog box is displayed. The Incremental check box must be cleared.

    1. Select Mechanism.1 in the specification tree to obtain quickly the parameters specific to your mechanism document (you can also filter on Time parameter)

    1. Select Mechanism.1\Commands\command.1\Angle and Click Add Formula  when done.

  4. IN ENOVIA DMU  Double-click Command.1 in the specification tree. Right-click Command value field and select the Edit Formula item from the contextual menu displayed. The Formulas dialog box is displayed.

    The Formula Editor dialog box appears:
  5. Select Time in the Members of Parameters list.

  6. Double-click Mechanism.1\KINTime in the Members of Time list.

  7. Enter /1s*36deg after Mechanism.1\KINTime to complete the formula. 

    When done click OK to exit the Formula Editor dialog box. In Enovia

    The Formulas dialog box is updated,


  8. Click Ok to end the formula creation.

  9. IN ENOVIA DMU: the Command Edition: Command.1 (Angle) is updated:

    The relation is created and identified in the specification tree under:

    • Relations item

    • Laws item

    The Mechanism can be simulated with laws.

  10. Click Mechanism Analysis I_KinPropertiesP2.gif (301 bytes) in the DMU Kinematics toolbar.
    Click in the Mechanism Analysis dialog box.

    The Laws display dialog box appears:

aremind.gif (956 bytes)
  •  Open USE_LAWS.CATProduct to see another example in which various laws have been defined.
  • For more information, refer to the Knowledge Advisor User's Guide.