material test

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

Moderators: silvia, selimgunay, Moderators

Post Reply
kadirtopcu
Posts: 33
Joined: Mon Jul 08, 2013 5:51 am
Location: Boğaziçi University

material test

Post by kadirtopcu »

is there any command or tcl file for material tests? I have force&deformation and moment&rotation values, and I will use paralel material which means that I have two different material type be connected. So, I wanna check if the material that I have defined works or not.

thanks
IsmBaha
Posts: 140
Joined: Sun Nov 17, 2013 11:00 pm
Location: University of Arizona

Re: material test

Post by IsmBaha »

Kadir, here below is a code I was using for checking material.

# ##################################
set TIME_start [clock clicks -milliseconds]
# ...do something...
# # material properties
source LibMaterialsRC.tcl; # file that has material properties
# ##################################################
# ### CONCRETE
# ##################################################
# modelbuilder to test uniaxial material
model test 1
# open file for output
set outFile [open stressUnconf.out w]
#define a uniaxial material
uniaxialMaterial Concrete01 $IDconcCover $fc1U $eps1U $fc2U $eps2U; # Core concrete (confined)
#
uniaxialTest $IDconcCover; # matTag
set dStrain -0.0000005
set strain 0.05 ; # actually 0.0 for conc01
if {1} { ; # code for concrete01
while {$strain > -0.05} {
strainUniaxialTest $strain
set stress [stressUniaxialTest]
set tangent [tangUniaxialTest]
puts $outFile "$strain $stress $tangent"
set strain [expr $strain+$dStrain]
}
}
close $outFile
set TIME_taken [expr [clock clicks -milliseconds] - $TIME_start]
# milliseconds = one thousandth of a second.
puts "elapsed time: [expr $TIME_taken] milliseconds"
puts "elapsed time: [expr $TIME_taken/1000.0/60] minutes"
wipe;

Kolay gelsin,
gor
Posts: 34
Joined: Wed Dec 07, 2011 12:07 am
Location: Pavia, Italy

Re: material test

Post by gor »

This is a basic model that I use to try out a new material. Its just a 1D system with a single zerolength element. Just do a displacement controlled test on it and youll see how it works pretty easily.

model basic -ndm 1 -ndf 1
node 1 0
node 2 0
fix 1 1
set type Hysteretic
set s1 1.0
set s2 1.1
set s3 0.5
set e1 0.01
set e2 0.02
set e3 0.1
set pinchX 0.8
set pinchY 0.2
set dam1 0.0
set dam2 0.0
set beta 0.1

uniaxialMaterial Hysteretic 1 $s1 $e1 $s2 $e2 $s3 $e3 -$s1 -$e1 -$s2 -$e2 -$s3 -$e3 $pinchX $pinchY $dam1 $dam2 $beta

element zeroLength 1 1 2 -mat 1 -dir 1
pattern Plain 1 Linear -factor 1 { load 2 1.0 }
set fname1 outs/d_$type.txt
set fname2 outs/f_$type.txt
recorder Node -file $fname1 -node 2 -dof 1 disp
recorder Node -file $fname2 -node 1 -dof 1 reaction
kadirtopcu
Posts: 33
Joined: Mon Jul 08, 2013 5:51 am
Location: Boğaziçi University

Re: material test

Post by kadirtopcu »

thanks for all your replies @IsmBaha @gor
Post Reply