Yogesh Borole
Subscriber

Hii, I need to write my frequency response of acceleration in text file using APDL commands. But unfortunately my commands are just generating the blank text file. It would be great if someone could help me with the same.

 

resume,file,db 
/post1
 
*set,last
 
*get,freq_count,active,,set,sbst
 
*dim,freq_array,ARRAY,freq_count,2
 
*do,ii,1,freq_count     
   SET,1,ii    
   *GET,temp_b,ACTIVE,0,SET,FREQ             
   freq_array(ii,1)=temp_b       
   cmsel,s,Node_response   
   *get,node_id,NODE,0,num,max     
   *get,acc,NODE,node_id,A,X     
   freq_array(ii,2)=acc
*enddo
 
*cfopen,'response','txt'
*vwrite,freq_array(1,1),freq_array(1,2)
(%10.5f,%10.5f)
*cfclos