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 cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

ABAQUS + iSight. How to plot and re-plot automatically the same graph? 2

Status
Not open for further replies.

gaetano89

Aerospace
Joined
Apr 22, 2015
Messages
18
Location
IT
Hello,
I'm running some analysis in Abaqus in order to study the buckling and post buckling behaviour of a simple beam. My goal is to change some parameters and plot the result of the last step (which is composed by n increments). As you can imagine, running hundreds of analysis and plotting every time the same graph, take a lot of time. For this reason I am trying to use iSight. In this way I can run a parametric study very easily.
Now the question is: how can I plot the graphs that I need by means of iSight? I mean, with Isight I just submit many times the same job with different parameters, and I want to plot the same graph as I do with a single analysis.

Thanks a lot for your help
 
You could include a component in your iSight workflow that runs a script after the Abaqus job has finished. That script could extract some values from the odb directly or it opens the odb in the Viewer, makes a plot and saves it as image and/or xy-data on the hard disk.
 
HI Mustaine3, thanks,
is it possible to add a component which runs a Python script? Because when I add the component "Script" and I copy the text in Python (a text I copy from the file abaqus.rpy just after having created a report from the Abaqus Viewer), it gives me error and does not read the file . Is there something I do wrongly?
 
Create a script in a separate file and test before that it is working as desired.

In iSight you can use a component to run a OS command line. With "abaqus python scriptname.py" you can execute the script in every loop.
 
Under typical conditions, you do not really need ISight for a simple parametric study. There is a *Parameter card available in Abaqus that lets you run Abaqus jobs in a parameter space. If you do need ISight, then writing a Python script, as suggested above, is your best bet.

Are you new to this forum? If so, please read these FAQ:

 
HI IceBreakerSours,
Actually I tried already to use the *parameter card. The problem I have, maybe you can help me, is that, by writing a .psf file, I am not able to plot (or to "print") the result for each increment. This is my psf file:
dy = ParStudy(par='dy1', name='Istatedy')
dy.define(CONTINUOUS, par='dy1', domain=(-0.7, -1))
dy.sample(NUMBER, par='dy1', number=2)
dy.combine(MESH)
dy.generate(template='Istatedy')
dy.execute(ALL)
dy.output(file=ODB, instance='Part-1-1', request=FIELD)
dy.gather(results='n4_u', variable='U', node=4, step=4, inc=15)
dy.report(PRINT, par='dy1', results=('n4_u.2'))

if I indicate one increment , for example inc=15, it gives me just the displacement of the node 4 for the increment 15. if "inc" is missed, it gives me the results just of the last increment, by default. And I do not know how to tell python to print me a table with the results of each increment in order to plot the result of the entire step.
For this reason I'm trying to understand whether by means of iSight I can a be able to plot my graphs.
Please let me know if you could give me some more suggestions
 
OoOoo I had not heard of the parameter card before, I'll be looking into that.

Personally I would script the whole thing with Python & batch files.
Model generation and reading results from the ODB files & writing custom output done via the Python API and job scheduling via a batch file.
Then use MatPlotLib or similar to plot any results needed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top