Process Integration and Design Optimization

Process Integration and Design Optimization

Automation of Aqwa Load Simulations in Mechanical Using Scripts

    • James Taylor
      Subscriber

      Hello,

      I have an Aqwa simulation which performs a 1-hour time domain analysis on a moored floating structure, with 0.5s time steps. I export the pressure and mooring load results from this into a Mechanical environment to run quasi-static simulations. I cannot run all time steps in one go, as my computer does not have the memory and the program crashes.

      Instead, I tried to write a script which runs a single time step pressure and cable loads, then solves and exports the results. The script then updates the time step in the imported pressure module, and re-runs for all time steps. 

      I have discovered that my script is updating the time step and running the simulation each time, but it is not actually updating the load values for the Aqwa pressure or mooring loads for the time step it is on. I am getting the same results for all steps.

      What's strange is that I have recorded the manual actions necessary to update the loads, which writes the corresponding script. However for some reason when executed the script will not do this automatically.

      Does anyone know if there is a way to ensure the imported Aqwa loads also update with the time step through scripting? Or could anyone suggest a better approach for automating this process?

      Thank you

       

    • Mike Pettit
      Ansys Employee

      Hi James,

      Does your script include a command like

      hydro_pressure.NotifyChange()

      where hydro_pressure is the Hydrodynamic Pressure object, after you set the time step? This is required to get the Mechanical UI to process the change and set the object/solution states.

      I hope this helps!

      Mike

      • James Taylor
        Subscriber

        Hi Mike,

        Thanks for getting back to me. I have included this command - it works for the first attempt but will not work in a for-loop for subsequent steps. It updates the timestep but not the load values.

        I've tried to use this command with the cable force modules also. It doesn't appear to work when these modules have question marks beside them, which happens each time the hydro pressure time step is updated.

        I've attached an image of my code, I hope it makes sense.Code sample showing the steps used to automatically update timesteps for imported Aqwa modules in Mechanical

         

Viewing 1 reply thread
  • The topic ‘Automation of Aqwa Load Simulations in Mechanical Using Scripts’ is closed to new replies.