General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

Command(APDL) Scripting in Workbench for solution and postprocessing

    • SujaanKhan
      Subscriber

      I tried to use Command(APDL) Scripting in Workbench which includes iterative heat load using *do loop. I want to extract the temperature in /POST1 during each iteration and use it to update input under /SOLU. However, a single *do loop cannot take /SOLU and /POST1 together in workbench. But this flexiblity is there in APDL(classic). I cannot put /SOLU and /POST separately, as I want to update input load based on postprocessing data. Is there is any way to solve this kind of problem. I am using 2022 R2 enterprise version.

      APDL screenshot is attached:

      The Error screenshot is:

    • Erik Kostson
      Ansys Employee

      Hi

      Perhaps this helps

      To have a temp. dependent heat generation use this:

      /forum/forums/topic/internal-heat-generation-depending-on-temperature/

       

      • SujaanKhan
        Subscriber

        The link is not much helpful. There has to be some method for Command(APDL) in workbench to combine /SOLU and /POST1 in single *Do loop.

    • Erik Kostson
      Ansys Employee

      Hi

      You said: 'I tried to use Command(APDL) Scripting in Workbench which includes iterative heat load using *do loop. I want to extract the temperature in /POST1 during each iteration and use it to update input under /SOLU.'

       

      So what do you want to get from POST1 - is it temperature?

      And what do you want to update (BFE,,HGEN?) using the post1 results above in your input?

       

      Yes there are some ways, but the way you do it is wrong as you can see from the error message (BFE is a /PREP7 or /SOLU not /POST1 command), and it is outside what we (Ansys employees) can help with here as it requires extensive apdl scripting - perhaps some other users can help, but if you answer in detail my questions, there might be an easier way of doing what you want.

      Thank you

      Erik

       

      • SujaanKhan
        Subscriber

         

        Actually I am updating HGEN with each iteration under /SOLU, this will provide some Tmax in /POST1. I wanted to get different Tmax based on each HGEN applied. It is true that /SOLU is not updating based on any data from /POST1. But why cannot I iterate and get Tmax for each HGEN. The other way can be manually give HGEN and record Tmax. But I wanted to automate the process. The same thing can be easily done in APDL(classic), so why can’t we do it with Command(APDL) in Workbench.

         

      • SujaanKhan
        Subscriber

        I just want to know, where I am committing mistakes. Is there any way to this analysis using Command(APDL) in Workbench?

Viewing 2 reply threads
  • The topic ‘Command(APDL) Scripting in Workbench for solution and postprocessing’ is closed to new replies.