Use this forum to post Vensim related questions.
ernenazira
Junior Member
Posts: 4 Joined: Thu Aug 23, 2007 7:43 pm
Post
by ernenazira » Tue Mar 31, 2009 11:13 am
Hi,
How can I generate a sinusoidal wave for an auxililary variable?
Many thanks.
karankhosla
Senior Member
Posts: 107 Joined: Wed Nov 26, 2008 6:12 am
Post
by karankhosla » Wed Apr 01, 2009 7:38 am
For a time varying Sinusoidal:
Aux = A*SIN(2*Pi*Time/P) {Units}
Set up the auxiliary variable "Aux", input 3 constants A (Amplitude), P (Period), Pi (3.142). Then introduce a ghost variable of time. Finally create information links from these parameters to the "Aux" variable.
ernenazira
Junior Member
Posts: 4 Joined: Thu Aug 23, 2007 7:43 pm
Post
by ernenazira » Wed Apr 01, 2009 3:24 pm
Thanks. I got it right now. I used a constant for the time in the equation before which gave me a flat line.