Skip to main content

loop inside a .psf file (parametric study file) in abaqus to get field variable output

Submitted by Hidroxid on

Dear all,

Does anybody how we can put a loop (for example while loop) inside a .psf (parametric study) file in abaqus?

For example a loop on all the increments we want to get a field variable output. Take a look at the following code:

...

num_inc=200

i=0

while (i<=num_inc):

velocity.output(file=ODB, step=1, inc=i)

velocity.gather(results='e2351_PE', variable='PE', element=2351)

velocity.report(PRINT, par=pars, results='e2351_PE')

velocity.report(XYPLOT,results='e2351_PE',file='output.csv', truncation=OFF, variations=ON)

i=i+1

...

 

But it gives me errors everytime.

Or maybe do you know any better way to get a special field variable output in all incerements we have had in our analysis (automatically)?

 

thanks a lot