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.

Livelink COMSOL with MATLAB

Please login with a confirmed email address before reporting spam

Hi I'm working on cell scaffolds and l used Darcy and solid physics for modeling and I'm using Livelink COMSOL with MATLAB for material update (Young module) and I used the following code to set the previous solution as the initial solution .

model.sol('sol1').feature('v1').set('initmethod', 'sol'); model.sol('sol1').feature('v1').set('initsol', 'sol1');

But I got the following error: Messages:

The following feature has encountered a problem:

- Feature: Time-Dependent Solver 1 (sol1/t1)

Nonlinear solver did not converge

Maximum number of segregated iterations reached Time: 0 s. Last time step is not converged.

Also, I can not define the material in MATLAB because i got the error that you did not define the Young module, but I'm sure I defined the Young module, but by defining the material in Comsol and the command in MATLAB (model.sol('sol1').runAll), it successfully runs (only if I comment out the two lines of codes I mentioned above) Thank you for your help


0 Replies Last Post Aug 17, 2021, 3:21 p.m. EDT
COMSOL Moderator

Hello Hani Chi

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.