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.

Use Result from one Study as Initial Condition for second Study

Please login with a confirmed email address before reporting spam

Hello,

I'm having a problem with the following. I use comsol to solve two coupled differential equations for the two concentrations of the system over time. At some point in time(let's call it T) I want to increase the timestep drastically and my idea was to make the simulation from times 0 to T with the small time step in Study1 and to use the calculated concentrations from Study1 at time T for the second study as an initial condition in which the timestep is now really big. For one of the two concentrations that works fine - the initial condition is the correct one but for the second concentration comsol chooses 0 instead of the solution from Study1. A picture of my approach is inserted below. Has anyone faced a similar problem or knows how to solve it?

Best regards, Luca



1 Reply Last Post 3 feb 2022, 07:28 GMT-5

Please login with a confirmed email address before reporting spam

Posted: 2 years ago 3 feb 2022, 07:28 GMT-5

You may define time stepping rather freely, you do not need to do two consequent studies. I suggest something like the following:

range(0,T/100,T),range(T,T,100*T)

cheers Lasse

You may define time stepping rather freely, you do not need to do two consequent studies. I suggest something like the following: range(0,T/100,T),range(T,T,100*T) cheers Lasse

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.