General Mechanical

General Mechanical

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

*mwrite – variable format descriptors

    • Clemens_C
      Subscriber
      Hi, I want to use '*mwrite' to write an array (e.g. 5x5x1) in a .txt-file. That's my code:   /output,matrix_file,txt,,append *mwrite,matrix(1,1,1),,,,ijk (5e18.9)  ! method 1 ! /input,helpfile,txt ! method 2 /output   Is there a way to write something like that: ('number'e18.9) instead of specifying the variable 'number' (method 1)? In this example 'number'=5 which represents the dimension of the matrix that I want to write. Unfortunately my method 1 with 'number' doesn't work. Method 2 with an extra textfile with content "(5e18.9)" doesn't work either...
    • Ashish Khemka
      Forum Moderator


      Please see if the following link helps:

      sheldon's ansys.net-macro

      Regards Ashish Khemka
    • Clemens_C
      Subscriber

      that helped a lot, thank you!
      Regards Clemens
Viewing 2 reply threads
  • The topic ‘*mwrite – variable format descriptors’ is closed to new replies.