Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
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 a log file on each iteration step with parametric sweep.
Posted 7 févr. 2012, 15:35 UTC−5 Results & Visualization, Studies & Solvers Version 3.5a, Version 4.2a 2 Replies
Please login with a confirmed email address before reporting spam
In COMSOL 3.5a I can run parametric sweep over parameter “A” and write a global variable (“B” for instance) into a log file during calculation. With each iteration step I have an updated log file with two columns A and B.
Now I am trying to move to COMSOL 4.2a and to do the same parametric sweep with variable export into one txt file on each iteration step. I tried the following procedure:
1) Add a boundary probe of integral type. This probe value I want to export in to the log file.
2) Add a parametric sweep node under the study 1 node.
3) Add a data node under Export node and set the file name.
4) Add a Export to file node under Study->Job configurations->Parametereic and select Data 1 from Run list.
5) Deselect Clear previous and Add parameters to filename checkboxes.
And I am getting the effort massage: “Error in sweep: could not overwrite existing file.”
Is there probably an easy way to save the log file with “A” and “B” columns on each iteration step? In version 3.5a there is a very simple solution for log file export, see picture 6 in the attachments.
Thank you,
Maxim
Hello Maxim
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.