Discussion Forum

Time cousumed using M file that COMSOL4.0a built

Topics: no topics

Thread index  |  Previous thread  |  Next thread  |  Start a new discussion

RSS FeedRSS feed   |   Email notificationsTurn on email notifications   |   0 Replies   Last post: August 23, 2010 1:09am UTC
Kyo Lee

Kyo Lee

August 23, 2010 1:09am UTC

Time cousumed using M file that COMSOL4.0a built

Hey, Guys

I found a very weird question.

I just built the model using COMSOL 4.0a, and then export it to the COMSOL server. finally, in Matlab interface, I import the model from COMSOL server, and implement the parametric sweep.

The M file just like

tic;
model= model.util.model('model1') % import the model1 from the server

for k = 1 : N % N is the sweep times
model.sol(sol1).runAll;
end
toc;

When I just sweep 10 times, it takes 140 seconds. But when I sweep 30 times, it almost takes 1400 seconds.

But if the model is bulit by m file(containing the creation of geometry, physics, mesh, etc.) rather than imported from the server, the time consumed is ok!
I donot konw why?

I 'v got used to previous approach(import the model from server), because the m file is so clear and simple.

How can increase the efficiency using this approach?

Thanks a bunch!

Best wishes!

Kyo

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse


Rules and guidelines