Creating Sketched-Law Excitations

You can use a sketched-law excitation to drive a command in your mechanism according to a design table or a formula.

To do so, for each time step of the kinematics simulation, you can associate a spline or a curve and a reference axis to the command.

Notes:
  • You cannot use sketched-law excitations in a dynamics simulation.
  • You cannot use the Sketched-Law Excitation command to modify an existing sketched-law excitation. To do so, use the Formula Editor.


Before you begin:
See Also
About the Interpolation of Time Increments
Creating Kinematics Scenarios
  1. From the Scenario section of the action bar, click Sketched-Law Excitation .
  2. In the Sketched-Law Excitation dialog box, define the sketched-law excitation:
    1. Under the Mechanism representation node in the tree, select the kinematics command to drive with the excitation.

      The name of the selected command appears as the Piloted command.

    2. Under the Part representation node, select either a Generative Shape Design sketch-based law or a sketch defining the excitation profile.

      The name of the sketch-based law or sketch appears as the Sketched-law/Sketch. The command generates the corresponding law and adds it to the part that includes the initial sketch.

    3. Under the Scenario node, select a scenario to attach the excitation to.

      If no scenario exists, Referenced scenario is not available anymore, and you can select the Time-scale option.

      When a scenario exists, Referenced scenario is selected by default, and the excitation appears as time-scaled according to the duration of the selected scenario. You can also enter a specific Time-scale value.

      Important:
      • If the sketch-based law is not a proper mathematical function (for example, if the curve has undetermined points), the output excitation can be truncated, discontinued, or appear in a stepped-shape curve.
      • The sketch selected as input data must be drawn on the standard X-Y plan.

  3. Click OK.
    • The excitation law appears under the Scenario node.
    • The excitation appears in the excitation list. If you selected Referenced Scenario, the excitation also appears in the excitation list of the scenario.
    • The command validation adds information to the resource table and generates a knowledge formula. The resource table includes a new law resource referencing the selected sketched-law, and named ExcitationName_LawResource, where ExcitationName is the name of the new law excitation.
    • The app generates a new knowledge formula based on this resource and selects it as the definition of the new law excitation.
  4. To define the sketched-law excitation, do one of the following:
    • Right-click the law excitation and select Definition.
    • Double-click the law excitation.
    • Under the Relations node in the tree, click the scenario formula.
  5. To visualize the new knowledge formula as the new definition of the law excitation, click , or double-click the scenario.
    1. Click Preview to proceed to a PLM update.
    2. Click to run the kinematics scenario.
      The element moves along the curve, sketch, or Generative Shape Design law.
    Depending on the selected Referenced scenario or Time-scale, the Length formula (start and end time) appears as the Excitation Length of the Formula Editor:
    Selection Description Formula
    Referenced scenario The sketched-law excitation is attached to a specific scenario Excitations\ExcitationName\[Length/Angle] = (AccessResource("ExcitationName_LawResource", "Law"):Law).Evaluate(`Excitations\ ExcitationName \Time`/((`ScenarioName\End time`-`ScenarioName\Start time`)/1s))*1[mm/deg]
    Time-scale A time-scale factor is specified Excitations\ExcitationName\[Length/Angle] = (AccessResource("ExcitationName_LawResource", "Law"):Law).Evaluate(`Excitations\ ExcitationName \Time`/TimeScaleFactor)*1[mm/deg]
    You can edit the length directly in the formula. The new sketched-law excitation becomes a standard law excitation.
  6. In the Kinematics scenario dialog box, to define the excitation using a formula, right-click the Length formula or the Angle formula field, and select Formula > Edit. For more information, see About Writing Formulas for Law Excitations.
  7. To define the excitation using a design table, from the Tools section of the action bar, click Design Table .
    The design table appears in the Length formula or Angle formula field.
    Tip: To edit the design table, click .

    For more information, see About Design Tables and Law Excitations.

  8. Click OK .