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.

Turning a function off mid-simulation

Please login with a confirmed email address before reporting spam

Hello,

I'm trying to do a heat transfer simulation wherein a small seed is heated up inside a tissue to a certain point, and then let to cool down via heat dispersion. I want to create an animation wherein the seed heats up for 40 seconds, and then is let to cool for another 40.

Right now I have it so that the temperature on the boundaries of the seed varies with time via a -cos(x) function, this is fine for the heating phase, but I want it to cool without a driving function via natural heat dispersion. Making two separate animations and splicing them together doesn't work because I need to retain the data of the heat transfer during the heating phase.

I've tried using a piecewise function but I'm not sure how I would define the cooling phase. I figured there has to be a way to turn a function off mid-simulation. Thanks!

-Vlad

0 Replies Last Post Jul 23, 2011, 3:58 p.m. EDT
COMSOL Moderator

Hello vsatchouk

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.