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

Using Application Builder to automate data export

$
0
0

I have a COMSOL simulation in which the solution has been generated and the data I want to export has been setup (what data, filename, etc established in the settings). I have 12 different data sets to export and they take some time to export and I find myself making small changes and need to re-export them so I would like to automate this process. These results have tags "data1", "data2", ..., "data12" in their properties window. I right-clicked on the export object in the model builder menu and copied the code as run which yielded:

model.result().export("data1").run();

So then I wrote up a new method with the following code:

for (int ii=1; ii<12; ii++){ model.result().export(concat("data",toString(ii))).run(); }

Both this code, as well as the first set of code I wrote above, when I click "Test Application", open a blank mph window but do not show any thing else, nor do they write any files to the filenames specified in each data set's settings menu. Can anyone suggest how to automate this process correctly?


Viewing all articles
Browse latest Browse all 5773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>