Code:
! Commands inserted into this file will be executed immediately after the ANSYS /POST1 command.! Active UNIT system in Workbench when this object was created: Metric (m, kg, N, s, V, A)
! NOTE: Any data that requires units (such as mass) is assumed to be in the consistent solver unit system.
! See Solving Units in the help system for more information.
_nmfrm = 10 ! number of frames
_tmax = 1e-3 ! time at end of animation
!PNG-Bild konfigurieren
PNGR,COMP,1,9
PNGR,ORIENT,HORIZ
PNGR,COLOR,2
PNGR,TMOD,1
/GFILE,2400,
!Colormap konfigurieren
/CMAP,_TEMPCMAP_,CMP,,SAVE
/RGB,INDEX,100,100,100,0
/RGB,INDEX,0,0,0,15
!Für jeden Zeitschritt die Lösung plotten und als PNG speichern
*do,_I,1,_nmfrm !Loop on frames
set,,,400,, _tmax*(_I-1)/(_nmfrm - 1)
plnsol,u,sum
/VIEW, 1, 1, 1, 1 ! Bild drehen
/DIST,1,0.2 ! Abstand des ViewPoints
/SHOW,PNG,,0
*enddo
!Speicherplatz leeren
/CMAP,_TEMPCMAP_,CMP
/DELETE,_TEMPCMAP_,CMP
/SHOW,CLOSE
/DEVICE,VECTOR,0