Move MBD after 1 simulation

JungHyun
JungHyun Altair Community Member
edited August 8 in Community Q&A

Hello, I'm trying mixing with MBD

 

after I simulate 1 case, i want to change MBD's motion and simulate again.

Can I export last position of MBD from EDEM or motion view.

 

cause last position of MBD and particle doesn't match from initial position

Answers

  • GTT Adam
    GTT Adam
    Altair Employee
    edited August 7

    Hi Junghyun,

    It sounds like you're working on a MotionSolve/EDEM cosimulation.

    One method of updating a MotionView model with a new position is to export the final position (x, y, and z) for all key points from your model using HyperGraph. Then, you can update the Data Summary Sheet in your model with the new points, and your model will reflect the new position. It helps to have as much of your parent model parameterized as possible with expressions, so there are the minimum number of points that you need to update.

     

    Hope this helps!

    Adam Reid

  • Christopher_Fadanelli
    Christopher_Fadanelli
    Altair Employee
    edited August 7

    Hi Junghyun,

    Another option is to add a template to the MotionView model and use the save command.

    For example:

     <Save
        model_file          = "Restart_1s0.xml"
     />
    <Simulate
         analysis_type       = "Transient"
         duration            = "2"
         print_interval      = "0.01"
     />
     <Save
        model_file          = "Restart_3s0.xml"
     />

    What will happen is the model will be saved via xml at that state. 

    You can also deactivate certain forces after a certain time (let's say the 1 second mark). You can include a Deactivate command.

     

    <span class="- topic/ph ph Blue"><span style="font-family: arial, helvetica, sans-serif;"><Deactivate </span></span>

    <span class="- topic/ph ph Blue"><span style="font-family: arial, helvetica, sans-serif;"> element_type = "FORCE" </span></span>

    <span class="- topic/ph ph Blue"><span style="font-family: arial, helvetica, sans-serif;"> element_id = "301002"</span></span>

    <span class="- topic/ph ph Blue"><span style="font-family: arial, helvetica, sans-serif;"> /></span><br /></span>

    What can also be done is the model can be ran again at those saved time intervals.

    All you will need to do is create an xml with the load and Simulate command.

     

    Example:

     

    <Command>
       <Load_Model
          model_file          = "Restart_1s0.xml"
          result_file         = "LOADSAVE_RUN.mrf"
          anima_file          = "LOADSAVE_RUN.h3d"
      />
       
       <Simulate
          analysis_type       = "Transient"
          end_time            = "3.0"
          print_interval      = "0.01"
       />

     

    And run that solver script (will need to use the Compute Console in order to do so).

     

    Best,

     

    Christopher Fadanelli

  • JungHyun
    JungHyun Altair Community Member
    edited August 8

    Hi Junghyun,

    It sounds like you're working on a MotionSolve/EDEM cosimulation.

    One method of updating a MotionView model with a new position is to export the final position (x, y, and z) for all key points from your model using HyperGraph. Then, you can update the Data Summary Sheet in your model with the new points, and your model will reflect the new position. It helps to have as much of your parent model parameterized as possible with expressions, so there are the minimum number of points that you need to update.

     

    Hope this helps!

    Adam Reid

    Thank you for replying.

    But in EDEM, MBD showed the different position from MotionView, at that case.

    Is it okay? just use position from MotionView?

  • GTT Adam
    GTT Adam
    Altair Employee
    edited August 8

    Thank you for replying.

    But in EDEM, MBD showed the different position from MotionView, at that case.

    Is it okay? just use position from MotionView?

    Hi Junghyun,

    Are you stating that the initial position of the MotionView simulation is not the same as the initial position of the MotionView/EDEM cosimulation?

    Can you please send any pictures or animations to help explain your issue?

     

    Hope this helps!

    Adam Reid