Print residuals

Forum for OpenSees users to post questions, comments, etc. on the use of the OpenSees interpreter, OpenSees.exe

Moderators: silvia, selimgunay, Moderators

Post Reply
alupoi
Posts: 3
Joined: Thu Nov 18, 2004 8:14 am
Location: University of Rome

Print residuals

Post by alupoi » Thu Nov 18, 2004 8:21 am

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

berktaftali
Posts: 68
Joined: Fri Jul 02, 2004 6:10 am
Location: Computers and Structures, Inc.

Post by berktaftali » Thu Nov 18, 2004 10:14 am

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...
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

fmk
Site Admin
Posts: 5883
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk » Tue Nov 30, 2004 12:29 pm

you can also use the logFile <fileName> command in the script .. this does pretty much the same thing .. the o/p appears on the screen and is also sent to a file .. only output after logFile command appears.

Post Reply