Saving the data from XY plot to csv files using API

Saving the data from XY plot to csv files using API

Anonymous
Not applicable
876 Views
5 Replies
Message 1 of 6

Saving the data from XY plot to csv files using API

Anonymous
Not applicable

Dear all,

 

I would like to write an API in order to save the XY plots (for example 5 sets of plots) in to csv files.

Do you have an example of such API or another solution?

 

Best regards, SAFI

0 Likes
877 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable

Don't think that will be possible.  There are no function calls for that; that area of the interface was never really exposed to the API.

Message 3 of 6

Anonymous
Not applicable

Hello, 

 

Thank you very much for the response.

 

Do you have any suggestion to export air velocity and temperature at some points near a solid surface?

 

Best regards, Safi 

0 Likes
Message 4 of 6

Anonymous
Not applicable

Hi, 

 

If it is for a few set of plots. Forget API and go manual no?

 

just export results within the XY plot.

Untitled.png

Message 5 of 6

Anonymous
Not applicable

Yes, the API does have a monitorPoint() function which does allow you to extract results at a specified location.  You could specify a number of these points and then assemble the data into Excel to create an XY plot.  Suggest you look at the results_per_iteration_step.py example in the API documentation.

Message 6 of 6

Anonymous
Not applicable

Hi Mark,

 

thanks for the reply. Indeed, I still think it could be a way to export the plotxy as long as we can export the points. I checked the codes and tried to modify them, however it did not work. Since I have 20 plotxy, getting the points corresponding to each plot xy, would be very much confusing and small error may destroy my simulations.
By now, I still manually export plot xy, but please let me know if there is a modified code for export the Plot-xy automatically.

 

 

0 Likes