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.

comunitaction between MATLAB and Comsol initial condition

Please login with a confirmed email address before reporting spam

Hello All,

I am looking to run a comsol model for a given period of time and then transfer the comsol results into a matlab program. These conditions will be modified inside of matlab and will then be sent back to comsol as the new initial conditions. Comsol will then run for another period of time and will once again transfer its results back to matlab for modification and so on and so forth.

In short I'm able to solve this problem in comsol 3.5 in a simple way;
fem.sol=femtime(fem,'init',Y, ...

here Y is my vector state that return to Comsol integrator

I'm trying to solve the same problem in comsol 4.1 but the time integrator only accept in 'initmethod' a physically defined initial condition or a previous comsol solution.
Any help would be greatly appreciated,
erasmo

0 Replies Last Post Jul 26, 2011, 3:37 a.m. EDT
COMSOL Moderator

Hello Erasmo Mancusi

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.

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.