OpenSees Example 2a. Elastic Cantilever Column with variables: Difference between revisions

From OpenSeesWiki
Jump to navigation Jump to search
(Created page with '__NOTOC__ ==Introduction== Example 2a is a simple model of an elastic cantilever column. The objective of this example is to give an overview of input format. While the structur…')
 
No edit summary
 
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
__NOTOC__
==Introduction==
==Introduction==
Example 2a is a simple model of an elastic cantilever column. The objective of this example is to give an overview of input format.
The objective of this example is to demonstrate the use of variables in defining the OpenSees input.


While the structural model is the same, there are two lateral-load cases:
While the structural model is the same, there are two lateral-load cases:
Line 15: Line 14:
|-
|-
| style="color:#000;" | <div>
| style="color:#000;" | <div>
[[File:Example2a_Push.GIF|link=OpenSees Example 2a. 2D Elastic Cantilever Column]]
[[File:Example2a_Push.GIF|link=OpenSees Example 2a. Elastic Cantilever Column with variables]]
----
----
<strong>Files</strong>
<strong>Files</strong>
*[[Media:Ex2a.Canti2D.Push.tcl|Ex2a.Canti2D.Push.tcl]]
*[[Media:Ex2a.Canti2D.ElasticElement.Push.tcl|Ex2a.Canti2D.ElasticElement.Push.tcl]]
</div>
</div>
|}
|}
Line 28: Line 27:
|-
|-
| style="color:#000;" | <div>
| style="color:#000;" | <div>
[[File:Example2a_EQ.GIF|link=OpenSees Example 2a. 2D Elastic Cantilever Column]]
[[File:Example2a_EQ.GIF|link=OpenSees Example 2a. Elastic Cantilever Column with variables]]
----
----
<strong>Files</strong>
<strong>Files</strong>
*[[Media:Ex2a.Canti2D.EQ.tcl|Ex2a.Canti2D.EQ.tcl]]
*[[Media:Ex2a.Canti2D.ElasticElement.EQ.tcl|Ex2a.Canti2D.ElasticElement.EQ.tcl]]
*[[Media:BM68elc.acc|BM68elc.acc]] (ground-motion file)
*[[Media:BM68elc.zip|BM68elc.acc]] (ground-motion file)
</div>
</div>
|}
|}
Line 40: Line 39:
==Run==
==Run==
*To run Static Pushover analysis:
*To run Static Pushover analysis:
:<strong>source Ex2a.Canti2D.Push.tcl</strong>
<blockquote><source lang="Tcl">
source Ex2a.Canti2D.ElasticElement.Push.tcl
</source> </blockquote>


*To run EQ ground-motion analysis (BM68elc.acc needs to be downloaded into the same directory):
*To run EQ ground-motion analysis (BM68elc.acc needs to be downloaded into the same directory):
<blockquote><source lang="Tcl">
source Ex2a.Canti2D.ElasticElement.EQ.tcl
</source> </blockquote>


:<strong>source Ex2a.Canti2D.EQ.tcl</strong>
==Notes==
In this example, all input values for Example 1a are replaced by variables.  


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


<blockquote><source lang="Tcl">
# define GEOMETRY
# nodal coordinates:
node 1 0 0;
# node#, X Y
node 2 0 432
</source> </blockquote>
was replace with the following series of commands in Example 2a:
<blockquote>
<source lang="Tcl">
# define GEOMETRY
set LCol 432; # column length
# nodal coordinates:
node 1 0 0;
# node#, X, Y
node 2 0 $LCol
</source>
</blockquote>
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:
*Reduced error and easier error checking because values are defined one time only.
*Easy to change values of model parameters
*Reduced amount of documentation within a file




Line 52: Line 82:


----
----
Return to [[OpenSees Examples Manual]]
Return to [[OpenSees Examples Manual -- Structural Models & Analyses]]


Return to [[OpenSees User]]
Return to [[OpenSees User]]

Latest revision as of 23:29, 1 September 2010

Introduction

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

While the structural model is the same, there are two lateral-load cases:

Input

Static Pushover


Dynamic EQ Ground Motion



Files

Run

  • To run Static Pushover analysis:
source Ex2a.Canti2D.ElasticElement.Push.tcl
  • To run EQ ground-motion analysis (BM68elc.acc needs to be downloaded into the same directory):
source Ex2a.Canti2D.ElasticElement.EQ.tcl

Notes

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:

  • Reduced error and easier error checking because values are defined one time only.
  • Easy to change values of model parameters
  • Reduced amount of documentation within a file




Return to OpenSees Examples Manual -- Structural Models & Analyses

Return to OpenSees User