Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross 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
Oct 5, 2008
29
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
 
Replies continue below

Recommended for you

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