BuildingTcl -- addModel Examples -- 2D Models

From OpenSeesWiki
Jump to navigation Jump to search


#########################
## BuildingTclFiles
##
## Silvia Mazzoni, 2008
##    University of California, Berkeley
#########################
addModelData ModelLabel PortalFrameRC
addModelData ModelDescription "W-Section Simple Portal Frame: 1Bay1Story"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 16*\$ft Story "1"  
addModelData -Geometry Width 20*\$ft Bay "1"  
addModelData -Columns SectionLabel "RCRectFiber1" ColumnLine "1 2" Story 1  
addModelData -Beams SectionLabel "RCRectFiber5" Bay 1 Floor 2  
addModelData SupportBC pin  
addModelData OutOfPlaneSupportBC pin
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 Floor 2 DistributedLoad 14*\$psf  
addModelData -GravityLoad LoadLabel DL2 Floor 2 DistributedLoad 16*\$psf  
addModelData -GravityLoad LoadLabel LL1 Floor 2 DistributedLoad 11*\$psf  
addModel 

addModelData ModelLabel BraceWSectionFrame
addModelData ModelDescription "W-Section Simple Variable-Size Frame, 1-Story, 2-Bay"  
addModelData ModelTypeLabel Elevation  
addModelData ColumnLineLabels "A.1 A.3 A.5.5"
addModelData -Geometry Height 14*\$ft StoryRange "1 1"  
addModelData -Geometry Width 20*\$ft BayRange "1 2"  
addModelData -Columns ElementTypeLabel Column SectionLabel W16x26 ColumnLine A.1  StoryRange "1 1"  
addModelData -Columns ElementTypeLabel Column SectionLabel W16x26 ColumnLineRange "A.3 A.5.5" StoryRange "1 1"  
addModelData -Beams ElementTypeLabel Beam SectionLabel W14x22 BayRange "1 2" FloorRange "2 2"  
addModelData -ChevronBraces ElementTypeLabel Brace SectionLabel W12x16 BayRange "1 1" Story 1
addModelData -ChevronBraces ElementTypeLabel Beam SectionLabel W12x16 Bay 2 Story 1 Eccentricity 18*\$in
addModelData SupportBC fix  
addModelData JointOffsetsSwitch off
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 FloorRange "2 2" DistributedLoad 14*\$psf  
addModelData -GravityLoad LoadLabel DL2 Floor 2 DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel DL2 Floor 2 DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel LL1 FloorRange "2 2" DistributedLoad 74*\$psf  
addModel  

addModelData ModelLabel RCTestFrame2Story2Bay  
addModelData ModelDescription "RC MRF, 2-Story, 2-Bay, default ElementModel"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 10*\$ft StoryRange "1 2"  
addModelData -Geometry Width 20*\$ft BayRange "1 2"  
addModelData -Columns SectionLabel rcSmallColumn ColumnLine "1 3" StoryRange "1 2"  
addModelData -Columns SectionLabel rcSmallColumn ColumnLine 2 StoryRange "1 2" Orient Rotated
addModelData -Beams SectionLabel rcSmallBeam BayRange "1 2" FloorRange "2 3"  
addModelData SupportBC pin  
addModelData OutOfPlaneSupportBC pin
addModelData JointOffsetsSwitch on
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 FloorRange "2 3" DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel DL2 FloorRange "2 3" DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel LL1 FloorRange "2 3" DistributedLoad 74*\$psf  
addModel  

addModelData ModelLabel WTestFrame2Story2Bay  
addModelData ModelDescription "RC MRF, 2-Story, 2-Bay, default ElementModel"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 10*\$ft StoryRange "1 2"  
addModelData -Geometry Width 20*\$ft BayRange "1 2"  
addModelData -Columns SectionLabel W16x26 ColumnLine "1 3" StoryRange "1 2"  
addModelData -Columns SectionLabel W16x26 ColumnLine 2 StoryRange "1 2" Orient Rotated
addModelData -Beams SectionLabel W12x16 BayRange "1 2" FloorRange "2 3"  
addModelData SupportBC pin  
addModelData OutOfPlaneSupportBC pin
addModelData JointOffsetsSwitch on
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 FloorRange "2 3" DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel DL2 FloorRange "2 3" DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel LL1 FloorRange "2 3" DistributedLoad 74*\$psf  
addModel  

addModelData ModelLabel WTestFrame2Story2BaySteady
addModelData ModelDescription "RC MRF, 2-Story, 2-Bay, default ElementModel"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 10*\$ft StoryRange "1 2"  
addModelData -Geometry Width 20*\$ft BayRange "1 2"  
addModelData -Columns SectionLabel W16x26 ColumnLine "1 3" StoryRange "1 2"  
addModelData -Columns SectionLabel W16x26 ColumnLine 2 StoryRange "1 2"
addModelData -Beams SectionLabel W12x16 BayRange "1 2" FloorRange "2 3"  
addModelData SupportBC pin  
addModelData OutOfPlaneSupportBC pin
addModelData JointOffsetsSwitch on
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 FloorRange "2 3" DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel DL2 FloorRange "2 3" DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel LL1 FloorRange "2 3" DistributedLoad 74*\$psf  
addModel  

addModelData ModelLabel WTestFrame2Story2BayRotated
addModelData ModelDescription "RC MRF, 2-Story, 2-Bay, default ElementModel"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 10*\$ft StoryRange "1 2"  
addModelData -Geometry Width 20*\$ft BayRange "1 2"  
addModelData -Columns SectionLabel W16x26 ColumnLine "1 3" StoryRange "1 2"   Orient Rotated
addModelData -Columns SectionLabel W16x26 ColumnLine 2 StoryRange "1 2" Orient Rotated
addModelData -Beams SectionLabel W12x16 BayRange "1 2" FloorRange "2 3"   Orient Rotated
addModelData SupportBC pin  
addModelData OutOfPlaneSupportBC pin
addModelData JointOffsetsSwitch on
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 FloorRange "2 3" DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel DL2 FloorRange "2 3" DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel LL1 FloorRange "2 3" DistributedLoad 74*\$psf  
addModel  

# ADDITIONAL MODELS
addModelData ModelLabel RCTestFrame2Story2BayNBC  
addModelData ModelDescription "RC MRF, 2-Story, 2-Bay, Specify ElementModel"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 10*\$ft StoryRange "1 2"  
addModelData -Geometry Width 20*\$ft BayRange "1 2"  
addModelData -Columns ElementTypeLabel RCColumnNBC SectionLabel rcSmallColumn ColumnLineRange "1 3" StoryRange "1 2"  
addModelData -Beams ElementTypeLabel RCBeamNBC SectionLabel rcSmallBeam BayRange "1 2" FloorRange "2 3"  
addModelData SupportBC fix  
addModelData JointOffsetsSwitch on
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 FloorRange "2 3" DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel DL2 FloorRange "2 3" DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel LL1 FloorRange "2 3" DistributedLoad 74*\$psf  
addModel  


# addModelData ModelLabel RCTestFrame2Story2BayTri
addModelData ModelLabel RCTestFrame2Story2BayTriLinear
addModelData ModelDescription "RC MRF, 2-Story, 2-Bay, All "  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 10*\$ft StoryRange "1 2"  
addModelData -Geometry Width 20*\$ft BayRange "1 2"  
addModelData -Columns SectionLabel rcSmallColumnTri ColumnLineRange "1 3" StoryRange "1 2"  
addModelData -Beams SectionLabel rcSmallBeamTri BayRange "1 2" FloorRange "2 3"  
addModelData SupportBC fix  
addModelData JointOffsetsSwitch on
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 FloorRange "2 3" DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel DL2 FloorRange "2 3" DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel LL1 FloorRange "2 3" DistributedLoad 74*\$psf  
addModel  


addModelData ModelLabel RCTestFrame3Story3BaySetbacks  
addModelData ModelDescription "RC-Section Simple Frame with Setbacks"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 10*\$ft StoryRange "1 3"  
addModelData -Geometry Width 20*\$ft BayRange "1 5"  
addModelData -Columns ElementTypeLabel RCColumn SectionLabel rcSmallColumn ColumnLineRange "1 6" Story 1  
addModelData -Columns ElementTypeLabel RCColumn SectionLabel rcSmallColumn ColumnLineRange "2 5" Story 2  
addModelData -Columns ElementTypeLabel RCColumn SectionLabel rcSmallColumn ColumnLineRange "3 4" Story 3
addModelData -Beams ElementTypeLabel RCBeam SectionLabel rcSmallBeam BayRange "1 5" Floor 2
addModelData -Beams ElementTypeLabel RCBeam SectionLabel rcSmallBeam BayRange "2 4" Floor 3 
addModelData -Beams ElementTypeLabel RCBeam SectionLabel rcSmallBeam Bay "3" Floor 4 
addModelData SupportBC fix  
addModelData JointOffsetsSwitch on
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 FloorRange "2 4" DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel DL2 FloorRange "2 4" DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel LL1 FloorRange "2 4" DistributedLoad 74*\$psf  
addModel  


addModelData ModelLabel WSectionTestFrame2Story2Bay
addModelData ModelDescription "Steel MRF, 2-Story, 2-Bay, Use TriLinearSteel MaterialModel"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 10*\$ft StoryRange "1 2"  
addModelData -Geometry Width 20*\$ft BayRange "1 2"  
addModelData -Columns SectionLabel W16x26 ColumnLineRange "1 3" StoryRange "1 2"  
addModelData -Beams SectionLabel W16x26 BayRange "1 2" FloorRange "2 3"  
addModelData SupportBC fix  
addModelData JointOffsetsSwitch on
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 FloorRange "2 3" DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel DL2 FloorRange "2 3" DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel LL1 FloorRange "2 3" DistributedLoad 74*\$psf  
addModel  

addModelData ModelLabel WSectionTestFrame2Story2BayTrilinear
addModelData ModelDescription "Steel MRF, 2-Story, 2-Bay, Use TriLinearSteel MaterialModel"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 10*\$ft StoryRange "1 2"  
addModelData -Geometry Width 20*\$ft BayRange "1 2"  
addModelData -Columns SectionLabel W16x26_Trilinear ColumnLineRange "1 3" StoryRange "1 2"  
addModelData -Beams SectionLabel W16x26_Trilinear BayRange "1 2" FloorRange "2 3"  
addModelData SupportBC fix  
addModelData JointOffsetsSwitch on
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 FloorRange "2 3" DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel DL2 FloorRange "2 3" DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel LL1 FloorRange "2 3" DistributedLoad 74*\$psf  
addModel



BuildingTcl -- addModel

Return to BuildingTcl Command Language Manual