I initially used the "recorder" command in OpenSees, but there seems to be an important limitation. When using the "recorder" command in OpenSees in combination with you code for adaptive time steps, the recorder command yields strange results. I haven't really figured out exactly what gets recorded, but a large portion of the steps are missing, and the time step and displacement are not matching. See screenshot below. When using constant time steps however, it works great. Since my model is highly non-linear, the adaptive time step is a life-saver. This is why I wanted to do it through the mpco-files. I will try to use the Monitor.There is another, more performant way to do it, without the MPCO recorder. During your analysis, you can write text files with only the desired results. 1 file for each node/element. You can do it either using the Monitor (it will write .plt files, which are actually text files) or creating standard OpenSees recorders. Then you can post process them in the STKO post processor with python.
Recording and writing to an text file when using adaptive time steps
Re: Recording and writing to an text file when using adaptive time steps
Ok, thank you!
Regards,
Miran Cemalovic
PhD Candidate
Department of Structural Engineering
Norwegian University of Science and Technology (NTNU)
NO-7491 Trondheim, Norway
https://www.ntnu.edu/employees/mirancem
Miran Cemalovic
PhD Candidate
Department of Structural Engineering
Norwegian University of Science and Technology (NTNU)
NO-7491 Trondheim, Norway
https://www.ntnu.edu/employees/mirancem
Re: Recording and writing to an text file when using adaptive time steps
mmm... this si strange, because the recorders should record only when the current time step is converged... As the MPCO recorder does. I will look into it.adaptive time steps, the recorder command yields strange results. I haven't really figured out exactly what gets recorded, but a large portion of the steps are missing, and the time step and displacement are not matching.
In the meantime you can use the monitor. For sure it writes to files if and only if the current time step is converged, so it should work for you