Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 26527

Using a function as an input to simulate turn-on turn-off sequence

$
0
0
I'm using the Joule Heating module and I'm modeling a simple wire heater that heats up when I run a current trough it. I want to see how the temperature of the heater decays as a function of time in order to see if it falls off exponentially and check that the simulation is correct. However to do this I have to run the current for a while and then turn it off. To simulate this I created a piecewise function whose value is 2mA from 0 to 5s and then it's 0mA from 5 to 10s. I used continuous 1st derivative with a transition zone size of 0.1.

In my terminal node I write the name of my piecewise function rather than a number and I run the simulation. I get the error:

Failed to evaluate variable Jacobian.
- Variable: myfunc
- Global scope
- Feature: Time-Dependent Solver 1 (sol2/t1)

What am I doing wrong? How do implement a function as input for the current to simulate turning off the current?


Viewing all articles
Browse latest Browse all 26527

Trending Articles