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.

How to use Two Different Times steps in Solver Parameters?

Please login with a confirmed email address before reporting spam

Dear Sir,

I am using COMSOL 3.5a.

And I am running my simulation for 6hrs.

But I want to run my simulation in two different time parts. (i.e. for 1hr i used solver parameters for time stepping range is (0,1,3600) (i.e.first value, step size, last value). with initial time step 0.1 and maximum time step is also 0.1.

Now for remaining 2h to 6hr i used solver parameters for time stepping range is (3600,10,21600). with initial time step 0.1 and maximum time step is Auto.

And all this changes I have to do in one single simulation run only.

Whether it is possible?

And if so can you please tell me how I have put or changes all this value in my solver parameters.

Thanking you in advanced.

Vinay Patel.

8 Replies Last Post 25.08.2017, 05:26 GMT-4

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 21.08.2013, 07:08 GMT-4
Hi,

in the Study you can define two Time Dependent Steps, so that they will be solved sequentially. In the first Time Dep Step, you use "range(0,1,3600)", in the second Time Dep Step "range(3600,10,21600)".
But remember you have to "link" these two steps: in the second step, you should go to "Values of Dependent Variables", then select "Initial values of variables solved for" and choose "Solution" and "Study 1, Time dependent 1".
I've never used the 3.5 version, so the interface might be different. I hope this helps

Regards
Hi, in the Study you can define two Time Dependent Steps, so that they will be solved sequentially. In the first Time Dep Step, you use "range(0,1,3600)", in the second Time Dep Step "range(3600,10,21600)". But remember you have to "link" these two steps: in the second step, you should go to "Values of Dependent Variables", then select "Initial values of variables solved for" and choose "Solution" and "Study 1, Time dependent 1". I've never used the 3.5 version, so the interface might be different. I hope this helps Regards

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 21.08.2013, 08:10 GMT-4
Hi,

I tried but i didn't get the solution.

My question is how I have to put two time steps in solver parameters. range (0,0.1,3600) and (3600,10,21600).

That means, when I put both time range in solver parameters it will first take range (0,0.1,3600) and then

(3600,10,21600) and solved the final problem. So my question is how I have to link them so that it completely
solve the problem.

Thanking you for sharing and reply with me in discussion.

Regards,
Vinay Patel.
Hi, I tried but i didn't get the solution. My question is how I have to put two time steps in solver parameters. range (0,0.1,3600) and (3600,10,21600). That means, when I put both time range in solver parameters it will first take range (0,0.1,3600) and then (3600,10,21600) and solved the final problem. So my question is how I have to link them so that it completely solve the problem. Thanking you for sharing and reply with me in discussion. Regards, Vinay Patel.

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 03.11.2015, 16:01 GMT-5
Hi,
When I use this technique to sequentially solve two time-dependent steps, I only can access the results for the second one. Is that normal ?

For example, (0,1,10) for step 1 and (10,2,30) for step 2. And then, I only can plot results from 10 to 30 and evaluate integrals on this time range. Is it normal ?

I thought I was doing something wrong. To have an evaluation of an integral from 0 to 30, what should I do ? Should do a first study only with step 1, then compute a study with both step 1 and 2 and then add the integrals ?


PS : after the option "Study 1, Time dependent 1", I have enter a time. What is it ? is it the time at which it evaluates solution as the initial value for step 2 ? I if it is on a sane timescale (from 0 to 30), it shouldn't be a problem, right ?

Thank you very much

Simon
Hi, When I use this technique to sequentially solve two time-dependent steps, I only can access the results for the second one. Is that normal ? For example, (0,1,10) for step 1 and (10,2,30) for step 2. And then, I only can plot results from 10 to 30 and evaluate integrals on this time range. Is it normal ? I thought I was doing something wrong. To have an evaluation of an integral from 0 to 30, what should I do ? Should do a first study only with step 1, then compute a study with both step 1 and 2 and then add the integrals ? PS : after the option "Study 1, Time dependent 1", I have enter a time. What is it ? is it the time at which it evaluates solution as the initial value for step 2 ? I if it is on a sane timescale (from 0 to 30), it shouldn't be a problem, right ? Thank you very much Simon

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 24.08.2017, 08:34 GMT-4
Hi Simon,

I have exactly the same problem as yours. I added two sequential time dependent steps in the same study but the solution only provides data for the second step.

Have you found the solution yet? Can anyone help us?

Thanks,

Shailesh
Hi Simon, I have exactly the same problem as yours. I added two sequential time dependent steps in the same study but the solution only provides data for the second step. Have you found the solution yet? Can anyone help us? Thanks, Shailesh

Magnus Ringh COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 24.08.2017, 08:56 GMT-4
Hi,

In the latest version for COMSOL Multiphysics (5.3), you can add a Combine Solutions step to the study, in which you can concatenate (join) two time-dependent steps and then use the output from the Combine Solutions step to postprocess the solution for both steps. See

www.comsol.com/blogs/how-to-manage-multiple-solutions-in-comsol-multiphysics/

for more information.

Best regards,
Magnus Ringh, COMSOL
Hi, In the latest version for COMSOL Multiphysics (5.3), you can add a Combine Solutions step to the study, in which you can concatenate (join) two time-dependent steps and then use the output from the Combine Solutions step to postprocess the solution for both steps. See https://www.comsol.com/blogs/how-to-manage-multiple-solutions-in-comsol-multiphysics/ for more information. Best regards, Magnus Ringh, COMSOL

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 24.08.2017, 10:23 GMT-4
HI Magnus,

Many thanks for replying. I am using 4.4 version, is there any way this can be achieved in this?

Thanks

Shailesh
HI Magnus, Many thanks for replying. I am using 4.4 version, is there any way this can be achieved in this? Thanks Shailesh

Magnus Ringh COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 25.08.2017, 04:11 GMT-4
Hi Shailesh,

I haven't used version 4.4 in a while, but I don't think so. I strongly recommend updating to version 5.3, which includes many new and useful features, one of which is the Combine Solutions study step.

Best regards,
Magnus Ringh, COMSOL
Hi Shailesh, I haven't used version 4.4 in a while, but I don't think so. I strongly recommend updating to version 5.3, which includes many new and useful features, one of which is the Combine Solutions study step. Best regards, Magnus Ringh, COMSOL

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 25.08.2017, 05:26 GMT-4
Thanks Magnus
Thanks Magnus

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.