6
\$\begingroup\$

My textbook proposes to calculate power for the voltage source which has sinusoidal or exponential waveform. Probably my question is very silly, but I really don't know how to input textbook's equations using LTSpice independent voltage source setup menu:

v(t) = 10*sin(24t) + 14

and

v(t) = 12 + 15*exp(-200t)

What are DC offset, amplitude, frequency, Tdelay, Theta, Rise delay, Rise tau, etc? How to proceed if my volatge source has cosine (not sine) waveform?

\$\endgroup\$

3 Answers 3

6
\$\begingroup\$

Why not using an Arbitrary Behavioral Voltage?
In LTspice, you can enter the equations directly by adjusting the V=F(...) to V=10*sin(24*time) + 14 and for the other source with V= 12 + 15*exp(-200*time).

(Note you should use "time", not "t" )

\$\endgroup\$
1
  • \$\begingroup\$ Thank you! Finally the simplest solution! \$\endgroup\$
    – tenghiz
    Commented Jul 3, 2019 at 9:40
4
\$\begingroup\$

Adding to R.Joshi's answer regarding the exponential voltage source :

For the exponential voltage source, it's a bit trickier, since the usual parameters aren't the ones you're used to. LTspice seems to be using these equations :

When t is between the Rise Delay and the Fall Delay: $$ V(t) = V_{initial}+(V_{pulsed}-V_{initial})*(1-e^{-\dfrac{t-T_{Rise Delay}}{\tau_{Rise}}}) $$ This assumes the Rise Delay is lower than the Fall Delay. If that's not the case, swap the Rise Delay and Rise Tau for the Fall Delay and Fall Tau.

When t is larger than both delays :

$$V(t) = V_{initial}+(V_{pulsed}-V_{initial})*(1-e^{-\dfrac{t-T_{Rise Delay}}{\tau_{Rise}}}) \\-(V_{pulsed}-V_{initial})*(1-e^{-\dfrac{t-T_{Fall Delay}}{\tau_{Fall}}})$$

Of course, when t is lower than both delays, the voltage source outputs the initial voltage.

Here is how you would set up the parameters for your source :

Screenshot of the voltage source configuration panel

\$\endgroup\$
1
  • \$\begingroup\$ I got it. This is my "normal" equation: v(t) = 12 + 15*exp(-200t). According to your formulas: Vinitial =12; Vpulsed - Vinitial = 15; ==> Vpulsed = 27. My goodness, why so complicated! I even don't mention the exponential part. \$\endgroup\$
    – tenghiz
    Commented Jul 3, 2019 at 9:10
3
\$\begingroup\$

To add phase to your sine voltage source in LTSpice, use Phi[deg]. Cosine is basically sine with a phase. phase of 180° will completely invert your signal.

DC Offset adds a DC level to your sine wave signal e.g. 1V DC Offset means your sine wave will "oscillate" around 1V rather than 0V.

Frequency is the number of cycles the sine wave will complete in a second.

Tdelay adds delay before starting the source.

I would say you experiment with these values and you will learn alot more. LTSpice is free to use and it should not take you long to setup basic circuit with a resistor and source to play around with these values.

v(t) = 10*sin(24t) + 14

V = A * sin(2 * pi * F * t) + DC_OFFSET

for the signal above the amplitude is 10. frequency is part before the t (time) inside the bracket.

24 = 2*pi*F

24/(2*pi) = F

\$\endgroup\$
3
  • \$\begingroup\$ What about exponent? \$\endgroup\$
    – tenghiz
    Commented Jul 3, 2019 at 8:23
  • 1
    \$\begingroup\$ I suggest you download LTSpice and experiment, it really is helpful for learning. \$\endgroup\$
    – R.Joshi
    Commented Jul 3, 2019 at 8:26
  • \$\begingroup\$ I have it. The problem is that I can't blindly input v(t) = 12 + 15*exp(-200t) into voltage source menu because 1) I don't know what is rise delay, rise tau, all these values (I'm good in math, but my calculus textbook doesn't mention these concepts neither); 2) I have no any standard curve to make a comparison. Let's say, if LTSpice Help could provide a graph for, say, v(t) = exp(At), I could find out how to setup A. \$\endgroup\$
    – tenghiz
    Commented Jul 3, 2019 at 8:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.