General Mechanical

General Mechanical

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

How to reduce .rst size in ANSYS APDL for a transient analysis?

    • safiana
      Subscriber

      Hi everyone,

      I found an interesting content regarding reducing the size of .rst file in ANSYS APDL in the following link:

      https://www.padtinc.com/blog/reducing-the-size-of-your-rst-file-outres-is-your-friend/

      Let's say I have a model with a large number of elements and nodes. After the solution, I only care about stress changes at a small portion of the model. Now, I want to write a code similar to this website to reduce my .rst size as much as possible only for that small portion. I wrote a sample code at the end of this post. For example, I have a cantilever beam with a large number of nodes. It has 4 load step and for the final result, assume I only care about the deformation of the nodes that are located between z=180 to z=200. The first question arises in my code: if OUTRES has to be written before LSWRITE or after it? Because if I write it before LSWRITE, it will ignore my boundary conditions at z=0 and the solution is not what I want. Can anyone fix this code to reduce the .rst size?

      /prep7  

      et,3,186

      MP,EX,1,2e5 

      MP,PRXY,1,0.3  

      MP,DENS,1,7.8e-9

      MP,BETD,1,1e-4

      BLC4,0,0,5,5,200

      esize,0.5

      vmesh,all


      /solu

      DA,1,all

      ANTYPE,4 

      TRNOPT,FULL 

      TIMINT,ON,ALL

      NSUBST,3,10,1


      nsel,s,loc,z,180,200

      esln,s

      nsle,s

      CM,nxtrnl,node

      CM,extrnl,elem

      OUTRES,erase

      OUTRES,nsol,last,nxtrnl


      time,1

      DA,2,Uy,0.1

      LSWRITE,1

      time,2

      DA,2,Uy,-0.1

      LSWRITE,2

      time,3

      DA,2,Uy,0.05

      LSWRITE,3

      time,4

      DA,2,Uy,-0.12

      LSWRITE,4


      allsel,all

      LSSOLVE,1,4,1  

    • dlooman
      Ansys Employee
      It should be before the first lswrite command. Outres won't cause your boundary conditions applied with the DA command to be ignored if that's what you mean by z=0. Lswrite commands can be replaced with solve commands.
Viewing 1 reply thread
  • The topic ‘How to reduce .rst size in ANSYS APDL for a transient analysis?’ is closed to new replies.