Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 71

plotwhilesolving using java API

$
0
0
I followed the end of the java guide for setting up a gui to run comsol. that worked perfectly. Then, I managed to do it for a time dependent study where it shows the progress bar and everything and then plots the final 2D plot group at the end.

Now, my question, is there a way to have it plot while solving in the GUI window? The guide gives a "PlotWhileSolving" command which I have tried and a few other things but I have not been able to figure it out. Can someone send me the lines of code I would need for the .java file and the .class file to have it show for example a 2D plot while solving?

My idea if this was not possible was have it run in a "for" loop for each output time and have it show the plots that way where the it used a stored solution.

Also, is there some special code needed to have comsol export an image file versus a .txt file? I can get comsol to export a .txt file but not the image file for some reason.

Thank you
Alex

Viewing all articles
Browse latest Browse all 71

Trending Articles