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.
Applying a repeating square wave
Posted Aug 18, 2011, 12:19 p.m. EDT Materials, Studies & Solvers Version 4.2 2 Replies
Please login with a confirmed email address before reporting spam
Hi all-
Been reading through the discussions and figured out how to build a square pulse and then repeat it with an analytic function.
Now I am trying to apply my analytic function to a heat source so that the heat source turns on and off like the analytic func.
rect1>>
lower limit: 0.0001
upper limit: 1.1
transition zone: 0.05
an1>>
expression: rect1(mod(t[1/s],10))
arguments: t
plot parameters: argument-t, lower limit-0, upper limit 39
^^^all this above works. I plot the function and it give me 4 pulses of the correct duration
PROBLEM:
Heat source: Qheater*an1(t[1/s])
^^^^ this only produces one pulse when i compute the solution
I'm sure I'm missing something simple
Any help please?
Kyle
Been reading through the discussions and figured out how to build a square pulse and then repeat it with an analytic function.
Now I am trying to apply my analytic function to a heat source so that the heat source turns on and off like the analytic func.
rect1>>
lower limit: 0.0001
upper limit: 1.1
transition zone: 0.05
an1>>
expression: rect1(mod(t[1/s],10))
arguments: t
plot parameters: argument-t, lower limit-0, upper limit 39
^^^all this above works. I plot the function and it give me 4 pulses of the correct duration
PROBLEM:
Heat source: Qheater*an1(t[1/s])
^^^^ this only produces one pulse when i compute the solution
I'm sure I'm missing something simple
Any help please?
Kyle
2 Replies Last Post Aug 19, 2011, 3:34 p.m. EDT