You are on page 1of 4

FINISH

/CLEAR
/FILNAME,SB3_d0_Trans_v2_Top_Axis,0
! /CWD,'D:\ANSYS'
/TITLE, SB3_d0_Trans_v2_Top_Axis
/CONFIG, NRES, 20000
/PREP7

!! Transient Analysis
!! Set up options
! Specifies the analysis type and restart status.
ANTYPE,TRANS
! Specifies transient analysis options.
TRNOPT,FULL
! Includes large-deflection effects in a static or full transient analysis.
NLGEOM,OFF
! Specifies the Newton-Raphson options in a static or full transient analysis.
NROPT,AUTO
! Specifies the type of equation solver.
EQSLV,SPARSE,,0 ! default = SPARSE
! Defines the mass matrix multiplier for damping.
ALPHAD,5.943285187559920
! Defines the stiffness matrix multiplier for damping.
BETAD,0.000006333156445
! Controls the solution printout.
! OUTPR,ALL,NONE
! Controls the solution data written to the database.
OUTRES,ALL,NONE
OUTRES,NSOL,LAST
! Specifies stepped or ramped loading within a load step.
KBC,0 ! 0 = Loads are linearly interpolated
! Turns on transient effects.
TIMINT,ON
! Specifies whether to use optimized nonlinear solution defaults and some enhanced
internal solution algorithms.
SOLCONTROL,ON

! Write header to time_history file

P5='P5'

*CFOPEN,SB3_d0_Time_History_v1,xls,,APPEND
*VWRITE,P5
(1(A8,1X))
*CFCLOS

! Time step 1 = 0s
TM=1E-10
LOAD=0
TIME,TM ! Sets the time for a load step.
F,ALL,FY,LOAD ! Specifies force loads at nodes.
NSUBST,1 ! Specifies the number of substeps to be taken this load step.
SOLVE

*GET,UX8853,NODE,8853,U,X

*CFOPEN,SB3_d0_Time_History_v1,xls,,APPEND
*VWRITE,UX8853
(1(F15.10,1X))
*CFCLOS

! Time step 2 = 0.0001s


TM=0.0001
LOAD=150
TIME,TM ! Sets the time for a load step.
NSEL,S,NODE,,8858,, ! Select impact point
F,ALL,FY,LOAD ! Specifies force loads at nodes.
ALLSEL,ALL
NSUBST,1 ! Specifies the number of substeps to be taken this load step.
SOLVE

*GET,UX8853,NODE,8853,U,X

*CFOPEN,SB3_d0_Time_History_v1,xls,,APPEND
*VWRITE,UX8853
(1(F15.10,))
*CFCLOS

! Time step 3 = 0.0002s


TM=0.0002
LOAD=400
TIME,TM ! Sets the time for a load step.
NSEL,S,NODE,,8858,, ! Select impact point
F,ALL,FX,LOAD ! Specifies force loads at nodes.
ALLSEL,ALL
NSUBST,1 ! Specifies the number of substeps to be taken this load step.
SOLVE

*GET,UX8853,NODE,8853,U,X

*CFOPEN,SB3_d0_Time_History_v1,xls,,APPEND
*VWRITE,UX8853
(1(F15.10,))
*CFCLOS

! Time step 4 = 0.0003s


TM=0.0003
LOAD=500
TIME,TM ! Sets the time for a load step.
NSEL,S,NODE,,8858,, ! Select impact point
F,ALL,FX,LOAD ! Specifies force loads at nodes.
ALLSEL,ALL
NSUBST,1 ! Specifies the number of substeps to be taken this load step.
SOLVE

*GET,UX8853,NODE,8853,U,X

*CFOPEN,SB3_d0_Time_History_v1,xls,,APPEND
*VWRITE,UX8853
(1(F15.10,))
*CFCLOS

! Time step 5 = 0.0004s


TM=0.0004
LOAD=400
TIME,TM ! Sets the time for a load step.
NSEL,S,NODE,,8858,, ! Select impact point
F,ALL,FX,LOAD ! Specifies force loads at nodes.
ALLSEL,ALL
NSUBST,1 ! Specifies the number of substeps to be taken this load step.
SOLVE

*GET,UX8853,NODE,8853,U,X

*CFOPEN,SB3_d0_Time_History_v1,xls,,APPEND
*VWRITE,UX8858
(1(F15.10,))
*CFCLOS

! Time step 6 = 0.0005s


TM=0.0005
LOAD=250
TIME,TM ! Sets the time for a load step.
NSEL,S,NODE,,8858,, ! Select impact point
F,ALL,FX,LOAD ! Specifies force loads at nodes.
ALLSEL,ALL
NSUBST,1 ! Specifies the number of substeps to be taken this load step.
SOLVE

*GET,UX8853,NODE,8853,U,X

*CFOPEN,SB3_d0_Time_History_v1,xls,,APPEND
*VWRITE,UX8853
(1(F15.10,))
*CFCLOS

! Time step 7 = 0.0006s


TM=0.0006
LOAD=0
TIME,TM ! Sets the time for a load step.
NSEL,S,NODE,,8858,, ! Select impact point
F,ALL,FX,LOAD ! Specifies force loads at nodes.
ALLSEL,ALL
NSUBST,1 ! Specifies the number of substeps to be taken this load step.
SOLVE

*GET,UX8853,NODE,8853,U,X

*CFOPEN,SB3_d0_Time_History_v1,xls,,APPEND
*VWRITE,UX8853
(1(F15.10,))
*CFCLOS

! Time step 7 to 16378 = 0.001s to 1.6384


FDELE,ALL,ALL
LOAD=0
*DO,I,1,16378
TM=TM+0.0001
TIME,TM
F,ALL,FX,LOAD
NSUBST,1 ! Specifies the number of substeps to be taken this load step.
SOLVE
*GET,UX8853,NODE,8853,U,X

*CFOPEN,SB3_d0_Time_History_v1,xls,,APPEND
*VWRITE,UX8853
(1(F15.10,))
*CFCLOS
*ENDDO

FINISH

You might also like