BuildingTcl -- addModel Examples -- 3D Models

From OpenSeesWiki
Jump to navigation Jump to search


# source LargeBuilding.tcl

addModelData ModelLabel PortalFrameARC
addModelData ModelDescription "Frame A, Exterior Frame"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 14*\$ft Story 1
addModelData -Geometry Width 5*\$ft Bay 1
addModelData -Columns ElementTypeLabel Column SectionLabel "RCRectFiber4" ColumnLine "1 2"  Story 1
addModelData -Beams ElementTypeLabel Beam SectionLabel "RCRectFiber4" Bay 1 Floor 2
addModelData JointOffsetsSwitch off
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 Floor 2 DistributedLoad 175*\$psf  
addModelData -GravityLoad LoadLabel DL2 Floor 2 DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel LL1 Floor 2 DistributedLoad 74*\$psf  
addModel  

addModelData ModelLabel PortalFrameARCflexible
addModelData ModelDescription "Frame A, Exterior Frame"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 14*\$ft Story 1
addModelData -Geometry Width 5*\$ft Bay 1
addModelData -Columns ElementTypeLabel Column SectionLabel "RCRectFiber4" ColumnLine "1 2"  Story 1
addModelData -Beams ElementTypeLabel Beam SectionLabel Elastic1small Bay 1 Floor 2
addModelData JointOffsetsSwitch off
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 Floor 2 DistributedLoad 175*\$psf  
addModelData -GravityLoad LoadLabel DL2 Floor 2 DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel LL1 Floor 2 DistributedLoad 74*\$psf  
addModel  

addModelData ModelLabel PortalFrameBRC
addModelData ModelDescription "Frame B, Interior Frame"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 14*\$ft Story 1
addModelData -Geometry Width 10*\$ft Bay 1
addModelData -Columns ElementTypeLabel Column SectionLabel "RCRectFiber4" ColumnLine "1 2"  Story 1 Orient Rotated
addModelData -Beams ElementTypeLabel Beam SectionLabel "RCRectFiber4" Bay 1 Floor 2
addModelData JointOffsetsSwitch off
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 Floor 2 DistributedLoad 175*\$psf  
addModelData -GravityLoad LoadLabel DL2 Floor 2 DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel LL1 Floor 2 DistributedLoad 74*\$psf  
addModel  

addModelData ModelLabel PortalFrameBRCbraced
addModelData ModelDescription "Frame B, Interior Frame"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 14*\$ft Story 1
addModelData -Geometry Width 10*\$ft Bay 1
addModelData -Columns ElementTypeLabel Column SectionLabel "RCRectFiber4" ColumnLine "1 2"  Story 1 Orient Rotated
addModelData -Beams ElementTypeLabel Beam SectionLabel "RCRectFiber4" Bay 1 Floor 2
addModelData -ChevronBraces ElementTypeLabel Beam SectionLabel W16x26 Bay 1 Story 1 Eccentricity 18*\$in
addModelData JointOffsetsSwitch off
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 Floor 2 DistributedLoad 175*\$psf  
addModelData -GravityLoad LoadLabel DL2 Floor 2 DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel LL1 Floor 2 DistributedLoad 74*\$psf  
addModel  

addModelData ModelLabel 1x1Floor
addModelData ModelDescription "4-Bay by 3-Bay Floor Plan"
addModelData ModelTypeLabel Plan
addModelData iVerticalGridLineLabel "0.0 10.0"
addModelData -HorizontalBayWidth Bay 1 Width 10*\$ft
addModelData iHorizontalGridLineLabel "A B"
addModelData -VerticalBayWidth Bay 1 Width 5*\$ft
addModel  


addModelData ModelLabel 3DBuildingPortalFrameRC
addModelData ModelDescription "Let's try It"
addModelData ModelTypeLabel 3DFrame
addModelData PlanModelLabel 1x1Floor
addModelData -addElevation ElevationModelLabel PortalFrameARC GridLineLabel "0.0 10.0"
addModelData -addElevation ElevationModelLabel PortalFrameBRC GridLineLabel "A B"
addModel


addModelData ModelLabel 3DBuildingPortalFrameRCbraced
addModelData ModelDescription "Let's try It"
addModelData ModelTypeLabel 3DFrame
addModelData PlanModelLabel 1x1Floor
addModelData -addElevation ElevationModelLabel PortalFrameARCflexible GridLineLabel "0.0 10.0"
addModelData -addElevation ElevationModelLabel PortalFrameBRC GridLineLabel A
addModelData -addElevation ElevationModelLabel PortalFrameBRCbraced GridLineLabel B
addModel







# larger Frame


addModelData ModelLabel PortalFrameA
addModelData ModelDescription "Frame A, Exterior Frame"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 14*\$ft Story 1
addModelData -Geometry Width 5*\$ft Bay 1
addModelData -Columns ElementTypeLabel Column SectionLabel W16x26 ColumnLine "1 2"  Story 1
addModelData -Beams ElementTypeLabel Beam SectionLabel W14x22 Bay 1 Floor 2
addModelData JointOffsetsSwitch off
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 Floor 2 DistributedLoad 175*\$psf  
addModelData -GravityLoad LoadLabel DL2 Floor 2 DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel LL1 Floor 2 DistributedLoad 74*\$psf  
addModel  

addModelData ModelLabel PortalFrameB
addModelData ModelDescription "Frame B, Interior Frame"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 14*\$ft Story 1
addModelData -Geometry Width 10*\$ft Bay 1
addModelData -Columns ElementTypeLabel Column SectionLabel W16x26 ColumnLine "1 2"  Story 1 Orient Rotated
addModelData -Beams ElementTypeLabel Beam SectionLabel W14x22 Bay 1 Floor 2
addModelData -ChevronBraces ElementTypeLabel Brace SectionLabel W12x16 Bay 1 Story 1 Eccentricity 18*\$in
addModelData JointOffsetsSwitch off
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 Floor 2 DistributedLoad 175*\$psf  
addModelData -GravityLoad LoadLabel DL2 Floor 2 DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel LL1 Floor 2 DistributedLoad 74*\$psf  
addModel  

addModelData ModelLabel 3DBuildingPortalFrame
addModelData ModelDescription "Let's try It"
addModelData ModelTypeLabel 3DFrame
addModelData PlanModelLabel 1x1Floor
addModelData -addElevation ElevationModelLabel PortalFrameA GridLineLabel "0.0 10.0"
addModelData -addElevation ElevationModelLabel PortalFrameB GridLineLabel "A B"
addModel



# larger Frame

addModelData ModelLabel FrameA
addModelData ModelDescription "Frame A, Exterior Frame"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 18*\$ft StoryRange "1 4"  
addModelData -Geometry Width 5*\$ft BayRange "1 1"
addModelData -Geometry Width 5*\$ft BayRange "3 3"
addModelData -Geometry Width 10*\$ft BayRange "2 2"
addModelData -Columns ElementTypeLabel Column SectionLabel W16x26 ColumnLine "1 4"  StoryRange "1 4"  
addModelData -Columns ElementTypeLabel Column SectionLabel W16x26 ColumnLine 2 StoryRange "1 4"  
addModelData -Columns ElementTypeLabel Column SectionLabel W16x26 ColumnLine 3 StoryRange "1 4"  
addModelData -Beams ElementTypeLabel Beam SectionLabel W14x22 BayRange "1 3" FloorRange "2 5"  
addModelData -ChevronBraces ElementTypeLabel Brace SectionLabel W12x16 Bay "1 3" Story "1 2"
addModelData -ChevronBraces ElementTypeLabel Beam SectionLabel W12x16 Bay 2 StoryRange "1 3" Eccentricity 18*\$in
addModelData JointOffsetsSwitch off
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 FloorRange "2 5" DistributedLoad 175*\$psf  
addModelData -GravityLoad LoadLabel DL2 FloorRange "2 4" DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel DL2 Floor 5 DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel LL1 FloorRange "2 4" DistributedLoad 74*\$psf  
addModel  

addModelData ModelLabel FrameB
addModelData ModelDescription "Frame B, Interior Frame"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 18*\$ft StoryRange "1 4"  
addModelData -Geometry Width 5*\$ft BayRange "1 1"
addModelData -Geometry Width 5*\$ft BayRange "3 3"
addModelData -Geometry Width 10*\$ft BayRange "2 2"
addModelData -Columns ElementTypeLabel Column SectionLabel W16x26 ColumnLine "1 4"  StoryRange "1 4"  
addModelData -Columns ElementTypeLabel Column SectionLabel W16x26 ColumnLine 2 StoryRange "1 4"  
addModelData -Columns ElementTypeLabel Column SectionLabel W16x26 ColumnLine 3 StoryRange "1 4"  
addModelData -Beams ElementTypeLabel Beam SectionLabel W14x22 BayRange "1 3" FloorRange "2 5"  
addModelData -ChevronBraces ElementTypeLabel Brace SectionLabel W12x16 Bay "1 3" Story "1 2"
addModelData -ChevronBraces ElementTypeLabel Beam SectionLabel W12x16 Bay 2 StoryRange "1 3" Eccentricity 18*\$in
addModelData JointOffsetsSwitch off
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 FloorRange "2 5" DistributedLoad 175*\$psf  
addModelData -GravityLoad LoadLabel DL2 FloorRange "2 4" DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel DL2 Floor 5 DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel LL1 FloorRange "2 4" DistributedLoad 74*\$psf  
addModel  

addModelData ModelLabel FrameC
addModelData ModelDescription "Frame C, Orthogonal Exterior Frame"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 18*\$ft StoryRange "1 4"  
addModelData -Geometry Width 5*\$ft BayRange "1 1"
addModelData -Geometry Width 5*\$ft BayRange "4 4"
addModelData -Geometry Width 10*\$ft BayRange "2 3"
addModelData -Columns ElementTypeLabel Column SectionLabel W16x26 ColumnLine "1 5"  StoryRange "1 4" Orient Rotated
addModelData -Columns ElementTypeLabel Column SectionLabel W16x26 ColumnLineRange "2 4" StoryRange "1 4" Orient Rotated
addModelData -Beams ElementTypeLabel Beam SectionLabel W14x22 BayRange "1 4" FloorRange "2 5"  
addModelData JointOffsetsSwitch off
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 FloorRange "2 5" DistributedLoad 175*\$psf  
addModelData -GravityLoad LoadLabel DL2 FloorRange "2 4" DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel DL2 Floor 5 DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel LL1 FloorRange "2 4" DistributedLoad 74*\$psf  
addModel  

addModelData ModelLabel FrameD
addModelData ModelDescription "Frame D, Orthogonal Interior Frame"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 18*\$ft StoryRange "1 4"  
addModelData -Geometry Width 5*\$ft BayRange "1 1"
addModelData -Geometry Width 5*\$ft BayRange "3 3"
addModelData -Geometry Width 20*\$ft BayRange "2 2"
addModelData -Columns ElementTypeLabel Column SectionLabel W16x26 ColumnLine "1 4"  StoryRange "1 4" Orient Rotated
addModelData -Columns ElementTypeLabel Column SectionLabel W16x26 ColumnLineRange "2 3" StoryRange "1 4" Orient Rotated
addModelData -Beams ElementTypeLabel Beam SectionLabel W14x22 BayRange "1 3" FloorRange "2 5"  
addModelData RigidFloor On
addModelData JointOffsetsSwitch off
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 FloorRange "2 5" DistributedLoad 175*\$psf  
addModelData -GravityLoad LoadLabel DL2 FloorRange "2 4" DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel DL2 Floor 5 DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel LL1 FloorRange "2 4" DistributedLoad 74*\$psf  
addModel  

addModelData ModelLabel 4x2Floor
addModelData ModelDescription "4-Bay by 3-Bay Floor Plan"
addModelData ModelTypeLabel Plan
addModelData iVerticalGridLineLabel "v1 v2 v3 v4 v5"
addModelData -HorizontalBayWidth Bay 1 Width 5*\$ft
addModelData -HorizontalBayWidth BayRange "2 3" Width 10*\$ft
addModelData -HorizontalBayWidth Bay 4 Width 5*\$ft
addModelData iHorizontalGridLineLabel "hA hB hC hD"
addModelData -VerticalBayWidth Bay 1 Width 5*\$ft
addModelData -VerticalBayWidth Bay 2 Width 10*\$ft
addModelData -VerticalBayWidth Bay 3 Width 5*\$ft
addModel  


addModelData ModelLabel a3DBuildingFrame
addModelData ModelDescription "Let's try It"
addModelData ModelTypeLabel 3DFrame
addModelData PlanModelLabel 4x2Floor
addModelData -addElevation ElevationModelLabel FrameA GridLineLabel "v1 v5"
addModelData -addElevation ElevationModelLabel FrameB GridLineLabel "v2 v4"
addModelData -addElevation ElevationModelLabel FrameC GridLineLabel "hA hD"
addModelData -addElevation ElevationModelLabel FrameD GridLineLabel "hB hC" CrossGridLineLabel "v1 v2 v4 v5"
addModel

addModelData ModelLabel a3DBuildingFrameRigidFloorOFF
addModelData ModelDescription "Let's try It"
addModelData ModelTypeLabel 3DFrame
addModelData PlanModelLabel 4x2Floor
addModelData RigidFloor Off
addModelData -addElevation ElevationModelLabel FrameA GridLineLabel "v1 v5"
addModelData -addElevation ElevationModelLabel FrameB GridLineLabel "v2 v4"
addModelData -addElevation ElevationModelLabel FrameC GridLineLabel "hA hD"
addModelData -addElevation ElevationModelLabel FrameD GridLineLabel "hB hC" CrossGridLineLabel "v1 v2 v4 v5"
addModel



# two story, 3 bays in each direction
addModelData ModelLabel Frame3BaysHoriz
addModelData ModelDescription "Frame C, Orthogonal Exterior Frame"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 18*\$ft StoryRange "1 2"  
addModelData -Geometry Width 15*\$ft BayRange "1 3"
addModelData -Columns ElementTypeLabel Column SectionLabel W16x26 ColumnLineRange "1 4" StoryRange "1 2" 
addModelData -Beams ElementTypeLabel Beam SectionLabel W14x22 BayRange "1 3" FloorRange "2 3"  
addModelData JointOffsetsSwitch off
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 FloorRange "2 3" DistributedLoad 175*\$psf  
addModelData -GravityLoad LoadLabel DL2 FloorRange "2 3" DistributedLoad 175*\$psf  
addModelData -GravityLoad LoadLabel LL1 FloorRange "2 3" DistributedLoad 175*\$psf  
addModel 

addModelData ModelLabel Frame3BaysVert
addModelData ModelDescription "Frame C, Orthogonal Exterior Frame"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 18*\$ft StoryRange "1 2"  
addModelData -Geometry Width 15*\$ft BayRange "1 3"
addModelData -Columns ElementTypeLabel Column SectionLabel W16x26 ColumnLineRange "1 4" StoryRange "1 2"  Orient Rotated
addModelData -Beams ElementTypeLabel Beam SectionLabel W14x22 BayRange "1 3" FloorRange "2 3"  
addModelData JointOffsetsSwitch off
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 FloorRange "2 3" DistributedLoad 175*\$psf  
addModelData -GravityLoad LoadLabel DL2 FloorRange "2 3" DistributedLoad 175*\$psf  
addModelData -GravityLoad LoadLabel LL1 FloorRange "2 3" DistributedLoad 175*\$psf  
addModel 

addModelData ModelLabel 3x3Floor
addModelData ModelDescription "3-Bay by 3-Bay Floor Plan"
addModelData ModelTypeLabel Plan
addModelData iVerticalGridLineLabel "v1 v2 v3 v4"
addModelData -HorizontalBayWidth BayRange "1 3" Width 15*\$ft
addModelData iHorizontalGridLineLabel "hA hB hC hD"
addModelData -VerticalBayWidth BayRange "1 3" Width 15*\$ft
addModel  

addModelData ModelLabel 3DBuildingFrame3x3
addModelData ModelDescription "Let's try It"
addModelData ModelTypeLabel 3DFrame
addModelData PlanModelLabel 3x3Floor
addModelData -addElevation ElevationModelLabel Frame3BaysHoriz GridLineLabel "hA hB hC hD"
addModelData -addElevation ElevationModelLabel Frame3BaysVert GridLineLabelRange "v1 v4"
addModel

# 2-story frame
addModelData ModelLabel 2x2Floor
addModelData ModelDescription "2-Bay by 2-Bay Floor Plan"
addModelData ModelTypeLabel Plan
addModelData iVerticalGridLineLabel "v1 v2 v3"
addModelData -HorizontalBayWidth BayRange "1 2" Width 15*\$ft
addModelData iHorizontalGridLineLabel "hA hB hC"
addModelData -VerticalBayWidth BayRange "1 2" Width 15*\$ft
addModel 

addModelData ModelLabel WTestFrame2Story2BayBeams  
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 -Beams SectionLabel W12x16 BayRange "1 2" FloorRange "2 3"  
addModelData SupportBC pin  
addModelData OutOfPlaneSupportBC pin
addModelData JointOffsetsSwitch on
addModel  

addModelData ModelLabel 3DBuildingFrame2x2
addModelData ModelDescription "Let's try It"
addModelData ModelTypeLabel 3DFrame
addModelData PlanModelLabel 2x2Floor
addModelData -addElevation ElevationModelLabel WTestFrame2Story2Bay GridLineLabel "hA hB hC"
addModelData -addElevation ElevationModelLabel WTestFrame2Story2BayBeams GridLineLabelRange "v1 v3"
addModel




# VARIABLE SIZE
set NStor 8
set NBayH 6
set NBayV 6
addModelData ModelLabel FrameVariableBaysHoriz
addModelData ModelDescription "Frame NStor: $NStor NBayH: $NBayH NBayV: $NBayV"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 18*\$ft StoryRange "1 $NStor"  
addModelData -Geometry Width 15*\$ft BayRange "1 $NBayH"
addModelData -Columns ElementTypeLabel Column SectionLabel W16x26 ColumnLineRange "1 [expr $NBayH+1]" StoryRange "1 $NStor" 
addModelData -Beams ElementTypeLabel Beam SectionLabel W14x22 BayRange "1 $NBayH" FloorRange "2 [expr $NStor+1]" 
addModelData JointOffsetsSwitch off
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 FloorRange "2 [expr $NStor+1]" DistributedLoad 175*\$psf  
addModelData -GravityLoad LoadLabel DL2 FloorRange "2 [expr $NStor+1]" DistributedLoad 175*\$psf  
addModelData -GravityLoad LoadLabel LL1 FloorRange "2 [expr $NStor+1]" DistributedLoad 175*\$psf  
addModel 

addModelData ModelLabel FrameVariableBaysVert
addModelData ModelDescription "Frame NStor: $NStor NBayH: $NBayH NBayV: $NBayV"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 18*\$ft StoryRange "1 $NStor"  
addModelData -Geometry Width 15*\$ft BayRange "1 $NBayV"
addModelData -Columns ElementTypeLabel Column SectionLabel W16x26 ColumnLineRange "1 [expr $NBayV+1]" StoryRange "1 $NStor" Orient Rotated
addModelData -Beams ElementTypeLabel Beam SectionLabel W14x22 BayRange "1 $NBayV" FloorRange "2 [expr $NStor+1]" 
addModelData JointOffsetsSwitch off
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 FloorRange "2 [expr $NStor+1]" DistributedLoad 175*\$psf  
addModelData -GravityLoad LoadLabel DL2 FloorRange "2 [expr $NStor+1]" DistributedLoad 175*\$psf  
addModelData -GravityLoad LoadLabel LL1 FloorRange "2 [expr $NStor+1]" DistributedLoad 175*\$psf  
addModel 

addModelData ModelLabel VariableFloor
addModelData ModelDescription "Frame NStor: $NStor NBayH: $NBayH NBayV: $NBayV"  
addModelData ModelTypeLabel Plan
set vList ""
for {set i 1} {$i<=[expr $NBayH+1]} {incr i} {
	lappend vList v$i
}
addModelData iVerticalGridLineLabel $vList
addModelData -HorizontalBayWidth BayRange "1 $NBayH" Width 15*\$ft
set hList ""
for {set i 1} {$i<=[expr $NBayV+1]} {incr i} {
	lappend hList h$i
}
addModelData iHorizontalGridLineLabel $hList
addModelData -VerticalBayWidth BayRange "1 $NBayV" Width 15*\$ft
addModel  

addModelData ModelLabel 3DBuildingFrameVariable
addModelData ModelDescription "Frame NStor: $NStor NBayH: $NBayH NBayV: $NBayV"  
addModelData ModelTypeLabel 3DFrame
addModelData PlanModelLabel VariableFloor
addModelData -addElevation ElevationModelLabel FrameVariableBaysHoriz GridLineLabelRange "h1 h[expr $NBayV+1]"
addModelData -addElevation ElevationModelLabel FrameVariableBaysVert GridLineLabelRange "v1 v[expr $NBayH+1]"
addModel


addModelData ModelLabel FrameVariableBaysHorizNBC
addModelData ModelDescription "Frame NStor: $NStor NBayH: $NBayH NBayV: $NBayV"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 18*\$ft StoryRange "1 $NStor"  
addModelData -Geometry Width 15*\$ft BayRange "1 $NBayH"
addModelData -Columns ElementTypeLabel ColumnNBC SectionLabel W16x26 ColumnLineRange "1 [expr $NBayH+1]" StoryRange "1 $NStor" 
addModelData -Beams ElementTypeLabel BeamNBC SectionLabel W14x22 BayRange "1 $NBayH" FloorRange "2 [expr $NStor+1]" 
addModelData JointOffsetsSwitch off
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 FloorRange "2 [expr $NStor+1]" DistributedLoad 175*\$psf  
addModelData -GravityLoad LoadLabel DL2 FloorRange "2 [expr $NStor+1]" DistributedLoad 175*\$psf  
addModelData -GravityLoad LoadLabel LL1 FloorRange "2 [expr $NStor+1]" DistributedLoad 175*\$psf  
addModel 


#####################################################
# larger Frame

addModelData ModelLabel FrameANBC
addModelData ModelDescription "Frame A, Exterior Frame"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 18*\$ft StoryRange "1 4"  
addModelData -Geometry Width 5*\$ft BayRange "1 1"
addModelData -Geometry Width 5*\$ft BayRange "3 3"
addModelData -Geometry Width 10*\$ft BayRange "2 2"
addModelData -Columns ElementTypeLabel ColumnNBC SectionLabel W16x26 ColumnLine "1 4"  StoryRange "1 4"  
addModelData -Columns ElementTypeLabel ColumnNBC SectionLabel W16x26 ColumnLine 2 StoryRange "1 4"  
addModelData -Columns ElementTypeLabel ColumnNBC SectionLabel W16x26 ColumnLine 3 StoryRange "1 4"  
addModelData -Beams ElementTypeLabel BeamNBC SectionLabel W14x22 BayRange "1 3" FloorRange "2 5"  
addModelData -ChevronBraces ElementTypeLabel Brace SectionLabel W12x16 Bay "1 3" Story "1 2"
addModelData -ChevronBraces ElementTypeLabel Beam SectionLabel W12x16 Bay 2 StoryRange "1 3" Eccentricity 18*\$in
addModelData JointOffsetsSwitch off
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 FloorRange "1 4" DistributedLoad 175*\$psf  
addModelData -GravityLoad LoadLabel DL2 FloorRange "1 3" DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel DL2 Floor 4 DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel LL1 FloorRange "1 3" DistributedLoad 74*\$psf  
addModel  

addModelData ModelLabel FrameBNBC
addModelData ModelDescription "Frame B, Interior Frame"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 18*\$ft StoryRange "1 4"  
addModelData -Geometry Width 5*\$ft BayRange "1 1"
addModelData -Geometry Width 5*\$ft BayRange "3 3"
addModelData -Geometry Width 10*\$ft BayRange "2 2"
addModelData -Columns ElementTypeLabel ColumnNBC SectionLabel W16x26 ColumnLine "1 4"  StoryRange "1 4"  
addModelData -Columns ElementTypeLabel ColumnNBC SectionLabel W16x26 ColumnLine 2 StoryRange "1 4"  
addModelData -Columns ElementTypeLabel ColumnNBC SectionLabel W16x26 ColumnLine 3 StoryRange "1 4"  
addModelData -Beams ElementTypeLabel BeamNBC SectionLabel W14x22 BayRange "1 3" FloorRange "2 5"  
addModelData -ChevronBraces ElementTypeLabel Brace SectionLabel W12x16 Bay "1 3" Story "1 2"
addModelData -ChevronBraces ElementTypeLabel Beam SectionLabel W12x16 Bay 2 StoryRange "1 3" Eccentricity 18*\$in
addModelData JointOffsetsSwitch off
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 FloorRange "1 4" DistributedLoad 175*\$psf  
addModelData -GravityLoad LoadLabel DL2 FloorRange "1 3" DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel DL2 Floor 4 DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel LL1 FloorRange "1 3" DistributedLoad 74*\$psf  
addModel  

addModelData ModelLabel FrameCNBC
addModelData ModelDescription "Frame C, Orthogonal Exterior Frame"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 18*\$ft StoryRange "1 4"  
addModelData -Geometry Width 5*\$ft BayRange "1 1"
addModelData -Geometry Width 5*\$ft BayRange "4 4"
addModelData -Geometry Width 10*\$ft BayRange "2 3"
addModelData -Columns ElementTypeLabel ColumnNBC SectionLabel W16x26 ColumnLine "1 5"  StoryRange "1 4" Orient Rotated
addModelData -Columns ElementTypeLabel ColumnNBC SectionLabel W16x26 ColumnLineRange "2 4" StoryRange "1 4" Orient Rotated
addModelData -Beams ElementTypeLabel BeamNBC SectionLabel W14x22 BayRange "1 4" FloorRange "2 5"  
addModelData JointOffsetsSwitch off
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 FloorRange "1 4" DistributedLoad 175*\$psf  
addModelData -GravityLoad LoadLabel DL2 FloorRange "1 3" DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel DL2 Floor 4 DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel LL1 FloorRange "1 3" DistributedLoad 74*\$psf  
addModel  

addModelData ModelLabel FrameDNBC
addModelData ModelDescription "Frame D, Orthogonal Interior Frame"  
addModelData ModelTypeLabel Elevation  
addModelData -Geometry Height 18*\$ft StoryRange "1 4"  
addModelData -Geometry Width 5*\$ft BayRange "1 1"
addModelData -Geometry Width 5*\$ft BayRange "3 3"
addModelData -Geometry Width 20*\$ft BayRange "2 2"
addModelData -Columns ElementTypeLabel ColumnNBC SectionLabel W16x26 ColumnLine "1 4"  StoryRange "1 4" Orient Rotated
addModelData -Columns ElementTypeLabel ColumnNBC SectionLabel W16x26 ColumnLineRange "2 3" StoryRange "1 4" Orient Rotated
addModelData -Beams ElementTypeLabel BeamNBC SectionLabel W14x22 BayRange "1 3" FloorRange "2 5"  
addModelData RigidFloor On
addModelData JointOffsetsSwitch off
addModelData TributaryWidth 7*\$ft  
addModelData -GravityLoad LoadLabel DL1 FloorRange "1 4" DistributedLoad 175*\$psf  
addModelData -GravityLoad LoadLabel DL2 FloorRange "1 3" DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel DL2 Floor 4 DistributedLoad 74*\$psf  
addModelData -GravityLoad LoadLabel LL1 FloorRange "1 3" DistributedLoad 74*\$psf  
addModel  

addModelData ModelLabel a3DBuildingFrameNBC
addModelData ModelDescription "Let's try It"
addModelData ModelTypeLabel 3DFrame
addModelData PlanModelLabel 4x2Floor
addModelData -addElevation ElevationModelLabel FrameANBC GridLineLabel "v1 v5"
addModelData -addElevation ElevationModelLabel FrameBNBC GridLineLabel "v2 v4"
addModelData -addElevation ElevationModelLabel FrameCNBC GridLineLabel "hA hD"
addModelData -addElevation ElevationModelLabel FrameDNBC GridLineLabelRange "hB hC" CrossGridLineLabel "v1 v2 v4 v5"
addModel

puts --DoneModels--  


set iElemType "NBC BWH"
foreach ElemType $iElemType {
	addModelData ModelLabel PortalFrameARC$ElemType
	addModelData ModelDescription "Frame A, Exterior Frame"  
	addModelData ModelTypeLabel Elevation  
	addModelData -Geometry Height 14*\$ft Story 1
	addModelData -Geometry Width 5*\$ft Bay 1
	addModelData -Columns ElementTypeLabel Column$ElemType SectionLabel RCRectFiber4 ColumnLine "1 2"  Story 1
	addModelData -Beams ElementTypeLabel Beam$ElemType SectionLabel RCRectFiber4 Bay 1 Floor 2
	addModelData JointOffsetsSwitch off
	addModelData TributaryWidth 7*\$ft  
	addModelData -GravityLoad LoadLabel DL1 Floor 2 DistributedLoad 175*\$psf  
	addModelData -GravityLoad LoadLabel DL2 Floor 2 DistributedLoad 74*\$psf  
	addModelData -GravityLoad LoadLabel LL1 Floor 2 DistributedLoad 74*\$psf  
	addModel  
	
	addModelData ModelLabel PortalFrameBRC$ElemType
	addModelData ModelDescription "Frame B, Interior Frame"  
	addModelData ModelTypeLabel Elevation  
	addModelData -Geometry Height 14*\$ft Story 1
	addModelData -Geometry Width 10*\$ft Bay 1
	addModelData -Columns ElementTypeLabel Column$ElemType SectionLabel RCRectFiber4 ColumnLine "1 2"  Story 1 Orient Rotated
	addModelData -Beams ElementTypeLabel Beam$ElemType SectionLabel RCRectFiber4 Bay 1 Floor 2
	addModelData JointOffsetsSwitch off
	addModelData TributaryWidth 7*\$ft  
	addModel  
	
	addModelData ModelLabel 3DBuildingPortalFrameRC$ElemType
	addModelData ModelDescription "Let's try It"
	addModelData ModelTypeLabel 3DFrame
	addModelData PlanModelLabel 1x1Floor
	addModelData -addElevation ElevationModelLabel PortalFrameARC$ElemType GridLineLabel "0.0 10.0"
	addModelData -addElevation ElevationModelLabel PortalFrameBRC$ElemType GridLineLabel "A B"
	addModel
}



BuildingTcl -- addModel

Return to BuildingTcl Command Language Manual