How can I add a table with acceleration data to post26 acceleration variable?
I need the absolute acceleration for an acceleration time-history transient run with
the base fixed.
Attached is an example of how you could do this. The sample creates a table array like your ACX with values every .005 seconds. It then creates a non-table array using the table array and interpolation. After a dummy mode-sup solution, the non-table array is put into a post26 variable and added to the acceleration solution computed with a double derivative. *dim,input_table,table,5 input_table(1,1)=3,1,4,4,2 ! arbitrary input *vfill,input_table(1,0),ramp,.005,.005 *dim,input_array,array,25 row_num=0 *do,t_val,.001,.025,.001 row_num=row_num+1 input_array(row_num)=input_table(t_val) *enddo *stat,input_array(1) !!! Create dummy test model /prep7 et,1,3 mp,dens,1,.00026 mp,ex,1,1e7 r,1,.01,.01,.01 n,1 n,11,20 fill e,1,2 *repe,10,1,1 d,1,all fini /solu anty,trans trnop,msup delt,.001 outres,nsol,1 solve *do,t_val,.001,.025,.001 time,t_val acel,,input_table(t_val) solve *enddo fini /post26 file,file,rdsp nsol,2,11,uy deriv,3,2,1 deriv,4,3,1 prva,4 vput,input_array(1),5,0 prva,5 add,6,5,4 prva,6 |
||
|