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.

Variable boundary conditions

Please login with a confirmed email address before reporting spam

Hi all, I'm using the API to run my COMSOL model multiple times in a loop in MATLAB with different initial and boundary conditions.

I was just wondering if it would be possible to set the initial conditions from the last time step of the previous solution, and the boundary conditions as the time varying value of one of the independent variables at the last node point in my mesh.

The problem is one dimensional, and writing the conditions in as a polynomial function using polyval isn't ideal as this seems to produce ill conditioned polynomials with the data I have.

Basically, can you specify the initial and boundary conditions as arrays of values corresponding to either time steps or locations?

0 Replies Last Post 21 apr 2016, 18:26 GMT-4
COMSOL Moderator

Hello Monty Don

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.