Advertisement
Guest User

Untitled

a guest
Apr 4th, 2015
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 1.87 KB | None | 0 0
  1. wipe
  2. set pathname "STR2_Result"
  3. file mkdir $pathname
  4. set filename "STR_in.out"
  5.  
  6. # Work in [N], [m], [s], [kg]
  7.  
  8. # Define the properties of SDoF
  9. set Tn 1.0
  10. set M 1.0
  11. set dampRatio 0.02
  12.  
  13. # Define constants
  14. set g 9.81
  15. set pi [expr 2.0 * asin(1.0)]
  16.  
  17. # Calculate SDoF parameters
  18. set wn [expr 2.0 * $pi / $Tn]
  19. set K [expr $M*$wn*$wn]
  20. set c [expr 2.0*$M*$wn*$dampRatio]
  21.  
  22. # create the model
  23. wipe
  24. model basic -ndm 3
  25.  
  26. node  1       0.0 0.0 0.0
  27. node  2       0.0 0.0 0.0
  28. node  3       0.0 0.0 1.0
  29.  
  30. fix 1 1 1 1 1 1 1
  31. equalDOF 1 2  1 2 3 4   6
  32.  
  33. rigidLink beam 2 3
  34.  
  35. mass 3  $M 0.0 0.0 0.0 0.0 0.0
  36. #unity mass assigned to node 3 (top of SDOF) in X direction
  37.  
  38. geomTransf Linear 1  -1  0  0
  39. uniaxialMaterial Steel01 1 0.118623 1.949551 0.03
  40. #uniaxialMaterial Steel01 $matTag $Fy $E0 $b <$a1 $a2 $a3 $a4>
  41. uniaxialMaterial Viscous 2 $c 1
  42. #uniaxialMaterial Viscous $matTag    $C $alpha; alpha=1 is linear damping, C is damping coeff.
  43. uniaxialMaterial Parallel 3 1 2
  44. #uniaxialMaterial Parallel $matTag $tag1 $tag2 - combines two materials together
  45.  
  46. element zeroLength 1 1 2 -mat 3 -dir 5
  47.  
  48. element elasticBeamColumn 2 2 3  1. 1. 1. 1. 1. 1. 1
  49.  
  50. recorder Node -file $pathname/Node_disp.out -time -node 3 -dof 1 disp
  51. recorder Node -file $pathname/Node_vel.out -time -node 3 -dof 1 vel
  52. recorder Node -file $pathname/Node_acc.out -time -node 3 -dof 1 accel
  53. recorder Element -file $pathname/Int_force.out -time -ele 1 force
  54.  
  55. rigidLink beam 1 2
  56.  
  57. setTime 0.0
  58. wipeAnalysis
  59.  
  60. constraints Transformation
  61. numberer RCM
  62. system FullGeneral
  63. test NormDispIncr 1.e-12 500 0
  64. integrator Newmark 0.50 0.25
  65. algorithm KrylovNewton
  66. analysis Transient
  67.  
  68. set dT 0.01
  69. set NumSteps 295
  70.  
  71. puts "dT: $dT, Number of Steps: $NumSteps"
  72.  
  73. set record "Series -dt $dT -filePath $filename -factor 1.0"
  74.  
  75. pattern UniformExcitation 1 1 -accel $record
  76.  
  77. analyze   $NumSteps $dT
  78.  
  79. puts "Analysis complete..."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement