Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Save Solution in a Java File for copying result plots
Posted 12 feb 2018, 12:07 GMT-5 API, Results & Visualization, Studies & Solvers 0 Replies
Please login with a confirmed email address before reporting spam
Hi,
I have a few of the exact same models (same domains, mesh, physics, etc), run with different inputs. One of these models has a lot of result plot groups which took a lot of time to set up. It would take hours and hours to create all of the exact same plots in the other models.
So, I thought of this solution: 1) Save all of the files as .java files. 2) copy the plot group lines of code from the file with the plots 3) paste these lines into each of the remaining models.
I did that using the method found here: https://www.comsol.com/blogs/automate-modeling-tasks-comsol-api-use-java/
However, once I open up the .class Java file, the plot groups and all of the settings are there (good!), but there is no solution.
So, my question is, is there a way to save the model solution in the java file, so when I compile and open it, it is still there?
Thank you, Dan
Hello Daniel Woznica
Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.
If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.