General Mechanical

General Mechanical

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

Exporting results as text file into traceable directories

TAGGED: , ,

    • fixed-term.raghavendra.prithvi
      Subscriber

      Hello ,

      I have written an APDL script that exports nodal results into a text file.

      I plan to run multilple simulations with design points created in Workbench. So for every design point, this APDL script exports a text file.

      But now, I want to create a directory for every design point, to trace the respective result files. How can I do this in APDL.

      Is there a way I can access like the current design point number or a specific design parameter value inside mechanical in the script?

    • Govindan Nagappan
      Ansys Employee

      See if this helps:

      Used input argument as shown,

      Example, I set ARG1 as 11 in this example

      Inline image 1

       

      ARG1 in table of design point. You can use a different value for each design point and you can use this in the folder name or file name

      Inline image 2

       

      To send text files in requested folder, in cfopen command, use the ARG1

      Example:

      *cfopen,C:\Solution\my_file_%ARG1%,txt,''    !here ARG1 is used in file name. See if you can use it for folder name

       

      Inline image 3

       

Viewing 1 reply thread
  • You must be logged in to reply to this topic.