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.

Quick question using MATLAB livelink

Please login with a confirmed email address before reporting spam

Hi,

I am using COMSOL 4.1 with MATLAB to model an inductor. I am interested in extracting the inductance matrix and capacitance matrix. I have successfully implemented the algorithm to do so.

However, I am having the following trouble:

The matlab-scripts I wrote contains a loop in order to calculate the capactiance-matrix or inductance-matrix, respectively. In every iteration terminal-conditions of the model are altered and the Comsol-model is invoked.
The problem, is that Comsol is keeping the data (or results) for every run.
For example, after the 5th run, Comsol saved 5 times the amount of data gathered by a single run. So, after a certain amount of runs the physical memory of the computer is exhausted.
How can I delete the results from a preceding simulation-run to prevent from gathering to much data?

Any help is greatly appreciated.

1 Reply Last Post 2011年4月11日 GMT-4 07:59

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2011年4月11日 GMT-4 07:59
Hi,

I haven't tested it, but try:
model.sol('sol1').clearSolution;

Regards,

Peter
Hi, I haven't tested it, but try: model.sol('sol1').clearSolution; Regards, Peter

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.