Getting Started with OpenSees -- Summary of Model-Building Input File: Difference between revisions

From OpenSeesWiki
Jump to navigation Jump to search
(Created page with 'The following is a compilation of all the commands necessary to build the model: <source lang="Tcl"> model basic -ndm 2 -ndf 3 # nodal coordinates: node 1 0 0 node 2 504 0 n…')
 
No edit summary
Line 1: Line 1:
The following is a compilation of all the commands necessary to build the model:
The following is a compilation of all the commands necessary to build the model:


<source lang="Tcl">
<source lang="Tcl">
model basic -ndm 2 -ndf 3
model basic -ndm 2 -ndf 3
# nodal coordinates:
# nodal coordinates:
node 1 0 0
node 1 0 0
node 2 504 0
node 2 504 0
node 3 0 432
node 3 0 432
node 4 504 432  
node 4 504 432  


# bondary conditions:
# bondary conditions:
fix 1 1 1 1
fix 1 1 1 1
fix 2 1 1 1
fix 2 1 1 1
fix 3 0 0 0
fix 3 0 0 0
fix 4 0 0 0
fix 4 0 0 0


# nodal masses:
# nodal masses:
mass 3 5.18 0. 0.
mass 3 5.18 0. 0.
mass 4 5.18 0. 0.
mass 4 5.18 0. 0.


# transformation:
# transformation:
geomTransf Linear 1  
geomTransf Linear 1  


# connectivity:
# element connectivity:
 
element elasticBeamColumn 1 1 3 3600 4227 1080000 1
element elasticBeamColumn 1 1 3 3600 4227 1080000 1
element elasticBeamColumn 2 2 4 3600 4227 1080000 1
element elasticBeamColumn 2 2 4 3600 4227 1080000 1
element elasticBeamColumn 3 3 4 5760 4227 4423680 1
element elasticBeamColumn 3 3 4 5760 4227 4423680 1


# recorders
# recorders
recorder Node -file Node3.out -time -node 3 -dof 1 2 disp
recorder Node -file Node3.out -time -node 3 -dof 1 2 disp
recorder Element -file Element1.out -time -ele 1 force
recorder Element -file Element1.out -time -ele 1 force
</source>
</source>

Revision as of 23:07, 25 November 2009

The following is a compilation of all the commands necessary to build the model:


model basic -ndm 2 -ndf 3
# nodal coordinates:
node 1 0 0
node 2 504 0
node 3 0 432
node 4 504 432 

# bondary conditions:
fix 1 1 1 1
fix 2 1 1 1
fix 3 0 0 0
fix 4 0 0 0

# nodal masses:
mass 3 5.18 0. 0.
mass 4 5.18 0. 0.

# transformation:
geomTransf Linear 1 

# element connectivity:
element elasticBeamColumn 1 1 3 3600 4227 1080000 1
element elasticBeamColumn 2 2 4 3600 4227 1080000 1
element elasticBeamColumn 3 3 4 5760 4227 4423680 1

# recorders
recorder Node -file Node3.out -time -node 3 -dof 1 2 disp
recorder Element -file Element1.out -time -ele 1 force


The above commands can be input line by line at the OpenSees command prompt:



Otherwise, they can be saved into an input file called example.tcl. This file can then be sourced in from the OpenSees command line:




Return to Getting Started with OpenSees