Question about ”sp 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
shiro
Posts: 59
Joined: Tue May 26, 2020 1:19 am

Question about ”sp command”

Post by shiro » Wed Jun 29, 2022 2:29 pm

Hello.

When the following cyclic loading is performed,
the output reaction is not incrementally analyzed with the horizontal force sp command
while maintaining the value after 10 steps of the vertical load.

The sp command ran correctly in Python code, but not in Tcl code.

I'm using opensees 3.2.0. and Tcl8.6.

I would appreciate it if you could tell me the solution.

Thanks.

・Tcl

pattern Plain 1 Linear {
load 77 0 -200000 0 0 0 0
}

recorder Node -file Disp.txt -time -node 77 -dof 1 disp

constraints Plain
numberer RCM
system BandGeneral
test NormDispIncr 1.0e-4 200 ;
algorithm BFGS -count 100
integrator LoadControl 0.1;
analysis Static
analyze 10;

puts "gravity analyze ok..."
loadConst -time 0.0;

recorder Node -file out.txt -time -node 1 2 3 4 5 -dof 1 reaction

timeSeries Path 1 -dt 0.1 -filePath wave.txt ;
pattern Plain 2 1 {

sp 77 1 1

}

constraints Penalty 1e20 1e20;
numberer RCM;
system BandGeneral;
test NormDispIncr 1.0e-5 1000 1;
algorithm KrylovNewton;
integrator LoadControl 0.1;
analysis Static ;
analyze 500


・out.txt

0.1 -2.09572 -3.48868 -4.85834e-13 3.48868 2.09572
0.2 -4.23147 -7.05771 2.50999e-12 7.05771 4.23147
0.3 -6.40679 -10.7071 -1.32339e-13 10.7071 6.40679
0.4 -8.62178 -14.4367 3.09086e-13 14.4367 8.62178
0.5 -10.8765 -18.2464 -3.06599e-12 18.2464 10.8765
0.6 -13.1705 -22.1367 -1.70175e-12 22.1367 13.1705
0.7 -15.5038 -26.1072 -1.15818e-12 26.1072 15.5038
0.8 -17.8767 -30.154 -2.09965e-12 30.154 17.8767
0.9 -20.288 -34.2837 -9.166e-13 34.2837 20.288
1 -22.7325 -38.4837 5.97566e-12 38.4837 22.7325
0.1 -22.7342 -38.489 -2.84217e-12 38.489 22.7342
0.2 -22.734 -38.4888 -1.5703e-12 38.4888 22.734
0.3 -22.734 -38.4888 2.40874e-12 38.4888 22.734
0.4 -22.734 -38.4888 -9.25127e-12 38.4888 22.734
0.5 -22.734 -38.4888 7.74492e-12 38.4888 22.734
0.6 -22.734 -38.4888 -7.62412e-12 38.4888 22.734
0.7 -22.734 -38.4888 -5.55644e-12 38.4888 22.734
0.8 -22.734 -38.4888 -7.80886e-12 38.4888 22.734
0.9 -22.734 -38.4888 -2.96296e-12 38.4888 22.734

・・・・・・

Post Reply