Pages

Tuesday, February 13, 2018

Simulation problems and their solution - PSPICE

The output of the rectifier was not sinusoidal. It was like the one shown below.



Then i found the problem in  the .tran command. The script of the .tran command is

tran <tstep> <tstop> <tstart> <tmax>

In this synax the parameters are as follows
tstep: initial time step for numerical integration. This is just a suggested value as the simulator may reduce or increase this value as needed.

tstop: simulation stops when tstop is reached
tstart: transient analysis always starts from t=0. If tstart is given results are saved only from tstart to tstop (i.e., results from 0 to tstart are calculated but discarded).
tmax: maximum allowed time step. Sometimes the simulator may choose a time step too long and details are lost or even results become inaccurate. This parameter is useful for the analysis of some oscillators.

After readjusting the tmax value the output is as shown below.



Reference: https://vision.lakeheadu.ca/eng4136/spice/transient_analysis.html

No comments:

Post a Comment