Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
General Mechanical

General Mechanical

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

Command Snippet APDL Code for Importing Convective Load Table

    • Admin Admin
      Subscriber

      Hi,

      I've run a transient thermal simulation in Mechanical which imports a convective thermal load from an external .csv file. I've created a command snippet that automates the importing of the thermal load in order to be able to parameterise the scale factors applied to the film coefficients and temperatures as part of a response surface optimisation I'd like to do. I wrote the input file (.dat) out to get the apdl code for the above process of applying scale factors to the film coefficients and temperatures. However, I noticed that these scale factor have already been applied and the thermal loads calculated in the tabular data within the input file meaning I'm not able to parameterise the scale factors as inputs. Below is a snapshot of the imported load as it appear in the input file.

      Does anyone know how I can create a table within a command snippet that replicates the imported convective load tabular data within the GUI?

      Many thanks,

      Jason

    • Chandra Sekaran
      Ansys Employee

      Why don't you just use that input file to change the scale factors on the fly during the optimization process? Then whatever the output is (above snapshot) you just use it to applyl the load.

    • Admin Admin
      Subscriber

      Hi Chandra,

      Thanks for your reply. My issue is the scale factors don't appear anywhere in the input file. When Ansys writes the input file it has already applied the scale factors to obtain the scaled thermal loads table I showed in the snapshot. In addition, there's no way in the GUI to toggle "P" against these scale factors in order to parameterise them (see below) so I can't work out how I pass them from Workbench to Mechanical and vice versa.

      Thanks,

      Jason

Viewing 2 reply threads
  • The topic ‘Command Snippet APDL Code for Importing Convective Load Table’ is closed to new replies.
[bingo_chatbox]