Material command

Forum for OpenSees users to post questions, comments, etc. on the use of the OpenSees interpreter, OpenSees.exe

Moderators: silvia, selimgunay, Moderators

Post Reply
Libra23
Posts: 96
Joined: Tue Nov 07, 2006 9:21 am
Location: University

Material command

Post by Libra23 »

Hi,
this is the first time I have problem with materials,program writes "invalid command named Material"
Someone could help me to find what's wrong?
This is my script:

Code: Select all

set E 250000 ; # concrete elastic modulus
set b0  24 ; #
set h0  24   ; #
set sh  8    ; #
##set bi 24   ; #
set fy 4400    ; # 
set Es 2100000 ; # 
set b 0.005     ;#
set epssu  0.1   ; # 

set fiStaffe   0.8        ; #
set pigreco  3.14
set Aw [expr ($pigreco/4)*pow($fiStaffe,2)]   ; #
set Ws [expr $Aw*2*($h0+$b0)] ;  # 
set Wc [expr $b0*$h0*$sh]  ; # 

set roS  [expr $Ws/$Wc]  ; 

set alfa [expr (1-($sh/($b0*2.0)))*(1-($sh/($h0*2.0)))*(1-(pow($b0,2)/(6.0*$h0*$b0)))]   

# unconfined concrete

set Rck 300 
set f1U [expr $Rck*0.83] ; #maximum stress
set f2U $f1U ; #maximum stress

set eps1U 0.002;					
set eps2U 0.004;

# confined concrete			


set value [expr 0.5*$alfa*$roS*$fy/$f1U]
set f1C  [expr $f1U*(1+(3.7*pow($value,0.87)))]

set eps1C [expr $eps1U*(1+5*(($f1C/$f1U)-1))] ; 

set Ec  [expr 50000*pow($f1U,0.5)]  ; # 

set Esec [expr $f1C/$eps1C]     ; # 

set r [expr $Ec/($Ec-$Esec)]

set eps2C  [expr 0.004+0.6*$epssu*$roS*$fy/$f1C]

set x [expr $eps2C/$eps1C]

set f2C  [expr ($f1C*$x*$r)/($r-1.0+pow($x,$r))]   ; # 
#-----------------


set coreID 1
set coverID 2
set SteelID 3

# core concrete              
  #  tag          -f'c     -ec0     -f'cu      -ecu
uniaxialMaterial Concrete01 $coreID  [expr -$f1C]  [expr -$eps1C]  [expr -$f2C] [expr -$eps2C]
# cover concrete
uniaxialMaterial Concrete01 $coverID   -$f1U  -$eps1U  -$f2U  -$eps2U

#Reinforcing Steel      
   #   tag       fy    E0   b
uniaxialMaterial Steel01  $SteelID  $fy   $Es  $b


Thanks
silvia
Posts: 3909
Joined: Tue Jan 11, 2005 7:44 am
Location: Degenkolb Engineers
Contact:

Post by silvia »

you need the model command that incorporates opensees commands like material into the tcl interpreter
Silvia Mazzoni, PhD
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104
Post Reply