Hello David Hodgson
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.
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
21 apr 2011, 08:09 GMT-4
I have a similar problem. Opening a file takes a terribly long time (>5 minutes). We have a "normal" file, without any LiveLinking. We have a lot of solutions in this file, and most of them are not used (for now). I would like to delete the solutions in order to speed up working speed, but I want to keep the studies, as they will be used later.
I have tried to disable/delete the solutions, but this does not affect the file open speed a single bit. Neither does it reduce the file size. Clearly, the data is somehow still retained within Comsol.
If I delete the studies, the corresponding solutions and results are deleted automatically. This does reduce the file size considerably, and file opening takes only a few seconds. However, this way I lose the studies I need later, including all our pre-defined graphs. This solution is really not an option.
So...
How can we delete old data without significantly changing the file structure?
I have a similar problem. Opening a file takes a terribly long time (>5 minutes). We have a "normal" file, without any LiveLinking. We have a lot of solutions in this file, and most of them are not used (for now). I would like to delete the solutions in order to speed up working speed, but I want to keep the studies, as they will be used later.
I have tried to disable/delete the solutions, but this does not affect the file open speed a single bit. Neither does it reduce the file size. Clearly, the data is somehow still retained within Comsol.
If I delete the studies, the corresponding solutions and results are deleted automatically. This does reduce the file size considerably, and file opening takes only a few seconds. However, this way I lose the studies I need later, including all our pre-defined graphs. This solution is really not an option.
So...
How can we delete old data without significantly changing the file structure?
Ivar KJELBERG
COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
21 apr 2011, 09:36 GMT-4
Hi
Note you have the Clear and the Delete solution:
the "Clear" flushes the stored values (removes them from RAM, so also from your file when you save),
while the "Delete" removes all solver steps and all nodes linked to the active solver (typically your plots).
You have the general "all model" Clear Solution, Mesh and Reset file as 3 distinct entries in the "File" tab
You can clear or Delete a single solver data/per solver set via the Solver node.
Workaround, to reset a solver sequence without loosing your plots (works in 4.1). You regenerate a new Default sequence, if the "Sovler 1" is not regenerated because it contained specific changes, then a "Solver 2" is created (the active one is the one with the green frame on the icon), then you flip all your "results Plots" nodes from "Solution 1" to "Solution 2". Once noting is "hanging" on Solver 1 you might delete the solver node Solver 1
--
Good luck
Ivar
Hi
Note you have the Clear and the Delete solution:
the "Clear" flushes the stored values (removes them from RAM, so also from your file when you save),
while the "Delete" removes all solver steps and all nodes linked to the active solver (typically your plots).
You have the general "all model" Clear Solution, Mesh and Reset file as 3 distinct entries in the "File" tab
You can clear or Delete a single solver data/per solver set via the Solver node.
Workaround, to reset a solver sequence without loosing your plots (works in 4.1). You regenerate a new Default sequence, if the "Sovler 1" is not regenerated because it contained specific changes, then a "Solver 2" is created (the active one is the one with the green frame on the icon), then you flip all your "results Plots" nodes from "Solution 1" to "Solution 2". Once noting is "hanging" on Solver 1 you might delete the solver node Solver 1
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Posted:
8 years ago
8 set 2016, 11:15 GMT-4
This is giving me an ulcer,
I deleted the results and file still takes 10min to open/save (9GB), it is not obvious how to "clear" the solution...
This is giving me an ulcer,
I deleted the results and file still takes 10min to open/save (9GB), it is not obvious how to "clear" the solution...
Walter Frei
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
8 years ago
8 set 2016, 11:28 GMT-4
Hello Gert,
Within COMSOL 5.2a you can go to the File Menu > Preferences, File section. You'll see at the top that, when saving new files, you can optimize for File Size (resulting in a smaller file) or Speed (resulting in relatively faster opening times then next time you open the file.)
A 9GB does sound quite large, though. If you do want to clear out ALL of the solution, then what you can do is go to the Study Ribbon, and click "Clear All Solutions" and then all results will be removed from the file. You can similarly go to the Mesh Ribbon and "Clear All Meshes" if you want to remove all mesh and solution data from the file itself to get its size down as much as possible for archival purposes of just the unsolved, unmeshed, model.
Alternatively, if you know ahead of time (before solving) that you don't actually need all of 9GB of data, then you may find these articles helpful:
www.comsol.com/blogs/minimize-your-model-file-size-with-storing-solution-techniques/
www.comsol.com/blogs/probing-your-simulation-results/
They show two different techniques for only storing a subset of the entire model data.
Hello Gert,
Within COMSOL 5.2a you can go to the File Menu > Preferences, File section. You'll see at the top that, when saving new files, you can optimize for File Size (resulting in a smaller file) or Speed (resulting in relatively faster opening times then next time you open the file.)
A 9GB does sound quite large, though. If you do want to clear out ALL of the solution, then what you can do is go to the Study Ribbon, and click "Clear All Solutions" and then all results will be removed from the file. You can similarly go to the Mesh Ribbon and "Clear All Meshes" if you want to remove all mesh and solution data from the file itself to get its size down as much as possible for archival purposes of just the unsolved, unmeshed, model.
Alternatively, if you know ahead of time (before solving) that you don't actually need all of 9GB of data, then you may find these articles helpful:
https://www.comsol.com/blogs/minimize-your-model-file-size-with-storing-solution-techniques/
https://www.comsol.com/blogs/probing-your-simulation-results/
They show two different techniques for only storing a subset of the entire model data.
Please login with a confirmed email address before reporting spam
Posted:
8 years ago
8 set 2016, 13:11 GMT-4
Thanks for the response and useful links!
Thanks for the response and useful links!