I am using Vensim PLE and am wondering about the best approach to modeling various waveform inputs to a model, such as a square wave, sawtooth wave, sine wave. I admit I am new to Vensim, but so far I have not had any success trying multiple STEP functions or IF THEN ELSE logic.
For a sinusoid use SIN(Time/period*6.28) (you will need to add Time to the view as a shadow variable and connect it to your variable). For a square wave use something like PULSE TRAIN(0,10,20,100). For a sawtooth you probably need something like