LS Dyna

LS Dyna

Accessing results from an External Force Tracker object in Workbench LS-Dyna using the Scripting API

    • emarkowski
      Subscriber

      I am working on an automation script that will set up, run, and export results from a simple analysis in Workbench LS-Dyna. One of the results that I want to be able to access and export with the script is force data from an External Force Tracker.

      I was able to create the External Force Tracker and scope to an existing boundary condition with something like:

      dataModel = ExtAPI.DataModel
      solutionInformation = dataModel.GetObjectsByName("Solution Information")[0]
      normalForce = solutionInformation.AddExternalForce()
      normalForce.BoundaryCondition = displacement
      normalForce.NormalOrientation = NormalOrientationType.YAxis
      normalForce.Name = "Normal Force"
      

      In the above code, "displacement" is a reference of type: Ansys.ACT.Automation.Mechanical.BoundaryConditions.Displacement that points to an existing Displacement condition in the set up.

      However, I cannot seem to find a way to actually access any of the tabular data captured by the External Force Tracker using the scripting API. Is this supported?

    • Aniket
      Ansys Employee
      Sorry, it doesn't seem supported as of now.
      -Aniket
      How to access Ansys help links
      Guidelines for Posting on Ansys Learning Forum
    • emarkowski
      Subscriber
      Thank you for the information. Is there an alternative route that I could use to access and export time vs force data for a selection in the simulation using scripting?
      Essentially, I'm just looking to being able to export force magnitude results over time at a named selection. One result for the X direction and another result for the Y direction.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.