Previous Topic

Next Topic

Book Contents

Example 3. 2D RC Cantilever

The principal features of this example is the introduction of units and the separation of the model-building and the analysis portions of the input file. For demonstration purposes, this example visits the 2D cantilever column, again:

Embedded Power-Point Image

This example is the first to follow most of the recommended techniques in building an input file:

In OpenSees/Tcl, units are simply defined as variables that become scaling factors. This technique allows the user to input variables with different types of units, not just the ones chosen for output. For example, section widths can be defined in inches, while element length can be defined in feet.

For example, with the following commands used in setting some of the units:

set in 1.; # define basic units -- output units

set kip 1.; # define basic units -- output units

set sec 1.; # define basic units -- output units

# -------

set ft [expr 12.*$in]; # define engineering units

set ksi [expr $kip/pow($in,2)];

 

When the user says:

set HCol [expr 3*$in];

set LCol [expr 30*$ft];

Tcl multiplies 30 by 12 to give the column length in inches. By scaling the input, all input processed by OpenSees is in the basic units, as is the output.

NOTE: the basic units, used to define Force, Length and Time need to be independent.

This example does not, however, take advantage of previously-defined Tcl procedures and scripts, as will Example 4.

In This Chapter

Example3. Model Building

Example 3. Lateral Load Analysis

Example 3. Model & Analysis Combinations & Results

Previous Topic

Next Topic