General Mechanical

General Mechanical

Read variable from txt file

Tagged: 

    • Md_Salem
      Subscriber

      Hello, I used next APDL commands to write some variable (frequency) to external txt file: *GET,Fd,MODE,2,FREQ

      *CFOPEN,MODE_F,TXT,C:\Users\MD\Desktop\modal-harmonic

      *VWRITE,Fd

      (F12.4)

      *CFCLOSE

      it was written in the sepcified file at required location properly 

      I am trying now to recall this value in other APDL file to varaible (Fn) in order to use Fn in the analysis ,with next command

      *VREAD,Fn,MODE_F,TXT,C:\Users\MD\Desktop\modal-harmonic

      (F12.4)

      Unfortunately it don't work 

      Could any one help me with this problem please

    • Md_Salem
      Subscriber
      Hi everyone, I figured it out , first parameter Fn has to be set as array of dimensions (1,1,1) *DIM,Fn then, *VREAD,FRQ,MODE_F,TXT,C:\Users\MD\Desktop\modal-harmonic (F12.4)
Viewing 1 reply thread
  • You must be logged in to reply to this topic.