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.

Piecewise funtion to determine voltage pulse

Please login with a confirmed email address before reporting spam

Hello all,

I have a simple thermoelectric simulation I want to run. I want to create a voltage pulse across a coil and calculate the coil temp over time. I cannot define my piecewise voltage function correctly in the definitions. I keep getting an undefined variable error when I try and run the simulation

Thanks in advance Sami



1 Reply Last Post Nov 14, 2018, 1:29 p.m. EST
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 6 years ago Nov 14, 2018, 1:29 p.m. EST

Hello Sami,

In the Electric Potential 1 node, you are trying to pass to the function called Volt the argument "sec", but "sec" is not defined. If your intention was to pass time in seconds, as I suspect, then the notation is simply "t", as in Volt(t).

Best,

Jeff

-------------------
Jeff Hiller
Hello Sami, In the Electric Potential 1 node, you are trying to pass to the function called Volt the argument "sec", but "sec" is not defined. If your intention was to pass time in seconds, as I suspect, then the notation is simply "t", as in Volt(t). Best, Jeff

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.