Hi all,
I really confused about this command...whether it's really works or not. I have tried this in some small examples:
First of all, I have analyze the structure for gravity load (vertical load). Then, I have defined a for loop. and at the start of this for loop all the previous load pattern is removed other than the vertical load. And then a lateral load is defined. I found that the nodal displacements are coming same if we use "reset" command Or NOT. The main thing I found that if we remove the previous load pattern that is sufficient. OpenSees is taking the structure to its initial stage after a complete cycle in for loop.
##example file###
wipe;
source stick_geo.tcl;#geometry file is sourced...
set pattTag 1;
source stick_gravity_load.tcl
source gravity_analysis.tcl;
set x [nodeDisp 10 1];
puts "disp before analysis loop $x"
for { set i 1 } { $i <= 1} { incr i 1} {
for { set j 2} {$j<=2} { incr j 1} {
reset;####HERE THE PROBLEMATIC RESET COMMAND
for {set pTag 2} { $pTag <=$pattTag} {incr pTag 1} {
remove loadPattern $pTag;
}
remove recorders;
set x [nodeDisp 10 1];
puts "disp before $i th analysis $x"
set pattTag [expr $pattTag+1];
set mf [expr 2*$i+20*$j];
source lat_load.tcl;
source gravity_analysis.tcl;
set a [nodeDisp 10 1];
puts "disp after $i & $j th analysis $a"
}
}
Reg. "reset" command
Moderators: silvia, selimgunay, Moderators
-
- Posts: 73
- Joined: Fri Jun 17, 2011 7:05 am
- Location: IIT Bombay
Re: Reg. "reset" command
"Reset" command sets the state of the domain to its original state ("virgin" state). It is very different from "remove loadPattern" command. "remove loadPatter" command brings the forces of the specified load pattern to zero. This does not bring the structure to its original state, but will result in zero displacements if the structure was displaced in the linear elastic range.
-
- Posts: 73
- Joined: Fri Jun 17, 2011 7:05 am
- Location: IIT Bombay
Re: Reg. "reset" command
vesna wrote:
> "Reset" command sets the state of the domain to its original
> state ("virgin" state). It is very different from "remove
> loadPattern" command. "remove loadPatter" command brings the
> forces of the specified load pattern to zero. This does not bring the
> structure to its original state, but will result in zero displacements if
> the structure was displaced in the linear elastic range.
Thanks Vesna. Now I can understand the difference between the two commands. Actually these should be clearly written in "OpenseesWiki". Then it will be very helpful to new users. Thanks again for your regular reply.
> "Reset" command sets the state of the domain to its original
> state ("virgin" state). It is very different from "remove
> loadPattern" command. "remove loadPatter" command brings the
> forces of the specified load pattern to zero. This does not bring the
> structure to its original state, but will result in zero displacements if
> the structure was displaced in the linear elastic range.
Thanks Vesna. Now I can understand the difference between the two commands. Actually these should be clearly written in "OpenseesWiki". Then it will be very helpful to new users. Thanks again for your regular reply.