NNMB
Aerospace
- Mar 1, 2011
- 1
Hello everyone,
I have spent too much time on this matter as it is, therefore decided to ask for help.
I am running a transient analysis with 500 steps where I apply a tone burst on a beam, and I would like - at the end of my simulation - to retrieve all results for all nodes and convert it into a .dat or .txt file. This means no headers and nothing of the sort.
I believe I must use /Post26, but because it can only store 200 variables at a time, I have to store 200 nodes at a time, meaning writing the following code many, many times:
NSEL,S,LOC,X,0,10*L/DivL
NSEL,R,LOC,Y,-He,He
*VGET,NODENUM1,NODE,0,NLIST
*GET,NUM_NODES1,NODE,0,COUNT
*DO,I,1,NUM_NODES1,1
ANSOL,I+1,NODENUM1(I),EPEL,X,EPELX_I+1
STORE,MERGE
PRVAR,2,
LINES,1000
PRVAR,2,
XVAR,1
PLVAR,2,
FILLDATA,191,,,,1,1
REALVAR,191,191
*ENDDO
*DIM,S1,,STEPS,NUM_NODES1,0 !Define temporary array
*DIM,TIME,,STEPS,1,0
VGET,TIME,1,,
*DO,J,1,NUM_NODES1,1
VGET,S1(1,J),J+1, ,
*ENDDO
NSEL, ALL
Is there a easier way to do this without having to repeat code and still presenting results in a proper manner to be used on Matlab?
Thanks in advance.
NNMB
I have spent too much time on this matter as it is, therefore decided to ask for help.
I am running a transient analysis with 500 steps where I apply a tone burst on a beam, and I would like - at the end of my simulation - to retrieve all results for all nodes and convert it into a .dat or .txt file. This means no headers and nothing of the sort.
I believe I must use /Post26, but because it can only store 200 variables at a time, I have to store 200 nodes at a time, meaning writing the following code many, many times:
NSEL,S,LOC,X,0,10*L/DivL
NSEL,R,LOC,Y,-He,He
*VGET,NODENUM1,NODE,0,NLIST
*GET,NUM_NODES1,NODE,0,COUNT
*DO,I,1,NUM_NODES1,1
ANSOL,I+1,NODENUM1(I),EPEL,X,EPELX_I+1
STORE,MERGE
PRVAR,2,
LINES,1000
PRVAR,2,
XVAR,1
PLVAR,2,
FILLDATA,191,,,,1,1
REALVAR,191,191
*ENDDO
*DIM,S1,,STEPS,NUM_NODES1,0 !Define temporary array
*DIM,TIME,,STEPS,1,0
VGET,TIME,1,,
*DO,J,1,NUM_NODES1,1
VGET,S1(1,J),J+1, ,
*ENDDO
NSEL, ALL
Is there a easier way to do this without having to repeat code and still presenting results in a proper manner to be used on Matlab?
Thanks in advance.
NNMB