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.

Step function in a time-dependent problem

Please login with a confirmed email address before reporting spam

Hello everyone,

I am trying to implement a step function in my time-dependent problem where I want to lower the temperature of a constant temperature boundary from 40°C to 20°C after 10min (600s) of running the model. However, I always get the error "Failed to find consistent initial values. Last time step is not converged." Running the model without the step function works.

The details of my step function are: Location 600, From 0, To 1. Implemented into the constant temperature boundary like this: T0 = 40 - (20*step1(t)) [degC]

Thanks for your help!


2 Replies Last Post 2019年1月17日 GMT-5 12:52
Edgar J. Kaiser Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 6 years ago 2019年1月15日 GMT-5 12:23

Hi Marco,

you need to take care to smooth the step sufficiently and to make sure that the timestepping resolves the smoothed function. You may need to introduce manual time stepping for that.

Cheers Edgar

-------------------
Edgar J. Kaiser
emPhys Physical Technology
www.emphys.com
Hi Marco, you need to take care to smooth the step sufficiently and to make sure that the timestepping resolves the smoothed function. You may need to introduce manual time stepping for that. Cheers Edgar

Please login with a confirmed email address before reporting spam

Posted: 6 years ago 2019年1月17日 GMT-5 12:52

Hi Edgar,

Thanks for your reply! How exactly do I implement the smoothing into my model?

Cheers Marco

Hi Edgar, Thanks for your reply! How exactly do I implement the smoothing into my model? Cheers Marco

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.