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.
CREATING A PERIODIC WAVE WITH flc2hs(x,scale) AND mod(a,b)
Posted Mar 18, 2010, 12:20 p.m. EDT Studies & Solvers Version 3.5a 5 Replies
Please login with a confirmed email address before reporting spam
Hello,
I'm trying to build a periodical wave. I want it to be linear, with its first semiperiod as an ascendent linear function, and the second semiperiod as a descendent linear function. Just like in the attached image.
I am using the function flc2hs(x,scale) to define the steps that will build the wave. I have defined two diferent parts:
Increasing part:
flc2hs(t+1e-2, 1e-2) - flc2hs(t, 1e-2)
decreasing part:
flc2hs(t, 1e-2) - flc2hs(t,2e-2)
What i have in mind is to repeat this two steps along t with the mod(a,b) function, and to multiply them with the linear function that will define the wave form(it'll be something linearly time depending).
Could anyone help me doing this two last steps? I've been searching for the mod(a,b) function on the program guide, but there is no explanation about it.
thank you very much
I'm trying to build a periodical wave. I want it to be linear, with its first semiperiod as an ascendent linear function, and the second semiperiod as a descendent linear function. Just like in the attached image.
I am using the function flc2hs(x,scale) to define the steps that will build the wave. I have defined two diferent parts:
Increasing part:
flc2hs(t+1e-2, 1e-2) - flc2hs(t, 1e-2)
decreasing part:
flc2hs(t, 1e-2) - flc2hs(t,2e-2)
What i have in mind is to repeat this two steps along t with the mod(a,b) function, and to multiply them with the linear function that will define the wave form(it'll be something linearly time depending).
Could anyone help me doing this two last steps? I've been searching for the mod(a,b) function on the program guide, but there is no explanation about it.
thank you very much
Attachments:
5 Replies Last Post Mar 23, 2011, 2:30 a.m. EDT