Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

view all iterations of loop in output file

Status
Not open for further replies.

maxibonne

Mechanical
Joined
Oct 5, 2008
Messages
29
Location
MT
I was wondering whether it is possible to output all the iterations of a *do loop in the output file? Currently my Ansys is set to only output the first iteration.. Is it possible to change?

thanks
 
Yup, just use the /nopr after the *do command

exp.

/output,test,out,,append
*do,i,1,100,1
/nopr
x%i%=i
*enddo

would output

x1=1
x2=2
...
x100=100
 
Whoops, I meant to say /gopr, NOT /nopr
 
Thanks!

What is the use of the '%' sign? Why doesn't xi=i work?
 
The "%" is a marker which tells Ansys that the following is a parameter and not the prosecution of a variable name.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top