General Mechanical

General Mechanical

Topics relate to Mechanical Enterprise, Motion, Additive Print and more

Insert Python Code object through APDL command sheet for batch automation

    • thermalsr71
      Subscriber

      Hello,

      Following my last week's post (Export temperature data with Python code object (ansys.com)), I have a fully automated thermal analysis procedure allowing me to get the desired results by launching a batch instance of mAPDL, as it is the only way I found of doing that kind of thing in ANSYS Mechanical. In my analysis, I use already existing ANSYS databases. My question is, would it be possible to include the creation of a Python Code object for post-processing tasks inside an APDL command sheet? The command sheet would potentially be included inside the ANSYS database to be used for my analysis.

       

      I am used to creating temperature result objects inside these command sheets, but do not know if it is possible to creataae Python Code objects as well.

       

      I hope someone is familiar with such a topic and can give me a hand. Thank you all for your attention.

    • mrife
      Ansys Employee

      Hi thermalsr71

      No, not yet.  At the current release this capability is in the 'alpha' stage.  That is still in development and not yet available.  Check the Release Notes when the new releases come out.  When it is moved to 'beta' stage it will be noted; then when generally available will be in the 'new commands' section of the release notes.

      MIke

      • thermalsr71
        Subscriber

        Alright, thanks. I'll check the release notes. Alternatively, is there a way of exporting temperature result data into files using APDL commands?

    • mrife
      Ansys Employee

      Yes; generally speaking we usually gather the result to an array (*VGET); open a file for writing (*CFOPEN); write the array to the file with a format of your choice (*VWRITE); then close the file (*CFCLOS). 

Viewing 2 reply threads
  • You must be logged in to reply to this topic.