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.

writing large numbers from array to file

TAGGED: ,

    • Luiza Oltean
      Subscriber

      EDIT it should be %G

      hello! I'm trying to write an array to a file, but it only writes the small numbers such as 23 or 0.7 and not any large number like 356236. For the larger numbers it just prints *****. this is an apdl command inserted in the tree in a coupled field module in workbench mechanical 

      /OUTPUT
      *CFOPEN,'interpolated_val','txt'
      *VWRITE,final_val(1,1,1),final_val(1,2,1)
      %f,%f
      *CFCLOS

      do you have any suggestions for this?

    • Ashish Khemka
      Forum Moderator

      Hi,

      It looks that your query is resolved.

      Regards,

      Ashish Khemka

    • ErKo
      Ansys Employee

      Hi

      Yes I think use %G instead of %F.

      For more info see this:

      *MSG (ansys.com)

      If you are not able to open the links, refer to this forum discussion: How to access the ANSYS Online Help

      Guidelines for Posting on Ansys Learning Forum

      Hope that helps

      All the best

Viewing 2 reply threads
  • The topic ‘writing large numbers from array to file’ is closed to new replies.
[bingo_chatbox]