I would like to print the residual at each iteration on an external file, so to be able to check the convergence rate.
Does anyone know how to do it?
Thanks a lot,
Alessio Lupoi
Print residuals
Moderators: silvia, selimgunay, Moderators
-
- Posts: 68
- Joined: Fri Jul 02, 2004 6:10 am
- Location: Computers and Structures, Inc.
Convergence tests have a flag to let the user specify what to output to screen:
test NormUnbalance $tol $maxNumIter <$printFlag>
$printFlag :
0 - no print output (default)
1 - print information on each step
2 - print information when convergence has been achieved
4 - print norm, dU and dR vectors
5 - at convergence failure, carry on, print error message, but do not stop analysis
Let the program print what you want to screen, then capture it by redirecting to a file:
In command prompt, type
opensees "yourfile.tcl" > out.txt 2>&1
to save all program screen output in out.txt
Hope this helps...
test NormUnbalance $tol $maxNumIter <$printFlag>
$printFlag :
0 - no print output (default)
1 - print information on each step
2 - print information when convergence has been achieved
4 - print norm, dU and dR vectors
5 - at convergence failure, carry on, print error message, but do not stop analysis
Let the program print what you want to screen, then capture it by redirecting to a file:
In command prompt, type
opensees "yourfile.tcl" > out.txt 2>&1
to save all program screen output in out.txt
Hope this helps...
Berk Taftali
Georgia Institute of Technology
Ph.D. Candidate, Structural Engineering, Mechanics, and Materials
School of Civil and Environmental Engineering
Atlanta, GA 30332 USA
Email: gte994y@mail.gatech.edu
Georgia Institute of Technology
Ph.D. Candidate, Structural Engineering, Mechanics, and Materials
School of Civil and Environmental Engineering
Atlanta, GA 30332 USA
Email: gte994y@mail.gatech.edu