LS Dyna

LS Dyna

Topics related to LS-DYNA, Autodyn, Explicit STR and more.

How to insert a Matlab script into Mechanical

    • DavideGiuliano
      Subscriber

      Good afternoon,

      I'm trying to simulate the effect a TNT explosion has on a plate. To do that I'd like to apply to each element of the shell plate a pressure by using a .csv file containing the pressure, the time, and the coordinates of the single element on which I want to apply it. I know how to manage a single .csv file and set it as input, but since my plate is a square with 40x40 elements this would take too much time and thus I need to optimize it. I know how to programme on Matlab, so I wonder if it's possible to do a script in Matlab that automatically selects a .csv file and relates it to the correct element, and import it into Ansys.

      The only alternative would be to programme directly inside Ansys (by using Commands?) but I don't know how to do it and I think it would be too time consuming for what I need to do.

      Thanks in advance to whoever can help me,

      Davide

    • peteroznewman
      Subscriber
      Why don't you just use the explosive material available in Explicit Dynamics?
      https://www.google.com/search?q=site%3Aforum.ansys.com+explicit+dynamics+TNT
    • DavideGiuliano
      Subscriber
      I already did a few Coupled Eulerian Lagrangian (CEL) analysis (the ones you advised me to do) and now I want to perform an Uncoupled Eulerian Lagrangian (UEL) analysis (extract the reflected pressure acting on a rigid plate and then apply it in a purely-Lagrangian simulation on the plate to be studied). To do that I created a model in Autodyn, exported the pressure thanks to a gauge on each element of the plate, and now I need to apply these pressure histories on each element of the plate in the purely-Lagrangian simulation.
Viewing 2 reply threads
  • The topic ‘How to insert a Matlab script into Mechanical’ is closed to new replies.