Previous Topic

Next Topic

Book Contents

Example 2a. Elastic Cantilever Column with variables

The objective of this example is to demonstrate the use of variables in defining the OpenSees input.

a. Static Pushover

Embedded Power-Point Image

 

b. Dynamic EQ Ground Motion

Embedded Power-Point Image

 

In this example, all input values for Example 1a are replaced by variables.

For example, the following series of commands from Example 1a:

# define GEOMETRY # nodal coordinates:

node 1 0 0; # node#, X Y

node 2 0 432

was replace with the following series of commands in Example 2a:

# define GEOMETRY

set LCol 432; # column length

# nodal coordinates:

node 1 0 0; # node#, X, Y

node 2 0 $LCol

While the use of variables may seem more time consuming in the simple examples, it is very effective in large examples. The following is a list of some of the advantages of using variables:

The response curves for this example (obtained from the recorders' files DFree.out RBase.out) are as follows:

Ex2a.Canti2D.ElasticElement.Push.tcl:

Ex2a.Canti2D.ElasticElement.EQ.tcl:

Previous Topic

Next Topic