Closed pavan1388 closed 5 years ago
In the example below, the test command has pFlag option chosen as 1, but still, nothing is displayed when a test command is invoked.
https://openseespydoc.readthedocs.io/en/latest/src/pile.html
I have no problem to use it in a simple truss example:
print("==========================") print("Starting Truss example")
from openseespy.opensees import *
import numpy as np import matplotlib.pyplot as plt
wipe()
model('basic', '-ndm', 2, '-ndf', 2)
node(1, 0.0, 0.0) node(2, 144.0, 0.0) node(3, 168.0, 0.0) node(4, 72.0, 96.0)
fix(1, 1, 1) fix(2, 1, 1) fix(3, 1, 1)
uniaxialMaterial("Elastic", 1, 3000.0)
element("Truss",1,1,4,10.0,1) element("Truss",2,2,4,5.0,1) element("Truss",3,3,4,5.0,1)
timeSeries("Linear", 1)
pattern("Plain", 1, 1)
load(4, 100.0, -50.0)
system("BandSPD")
numberer("Plain")
constraints("Plain")
integrator("LoadControl", 1.0)
test('NormDispIncr', 1e-5,20,1)
algorithm("Newton")
analysis("Static")
analyze(1)
ux = nodeDisp(4,1) uy = nodeDisp(4,2) if abs(ux-0.53009277713228375450)<1e-12 and abs(uy+0.17789363846931768864)<1e-12: print("Passed!") else: print("Failed!")
print("==========================")
I could run the model, but still, nothing is displayed when a test command is invoked.
I guess the reason is that the message is printed to the background terminal which can be seen in Linux, but not in Windows. I will look for solutions to that.
Thank you for your help.
It will be solved in the new version coming in few days.
The logFile command will be there too!
Both pFLag and Logfile command are now working once I update Opensees library. Thank you
Hello Dr. Zhu,
Then pFlag option in test command is not working when I select it. Can you please let me know if I am making any mistake in the way I am using the command? The example script for it is: test('NormDispIncr', 1e-5, 20, 1)
Also, in Opensees tcl, we have LogFile command, is the same command or anything similar available in Openseespy?
Thank you, Pavan.