Create your first time domain system simulation.

In this tutorial we will create a voltage source where the voltage is defined in a block diagram. In the block diagram we model a sinusoidal wave form. This sinusoidal wave form is the input for the controlled votlage source. Create the circuit as shown below. Select the controlled voltage source B from Components/Circuit/Controlled Sources and the resistor and inductor from Components/Circuit/RLC
The block TIME and SIGNAL are selcted from Components/Blocks/Source <br>Click to close the image

The block SIGNAL is used for creating the sinusoidal wave form. Open the block SIGNAL by clicking it with the right mouse button. The third parameter indicates the type of the signal. There are various wave forms possible such as sinusoidal, square wave, triangular, etc. Change the third parameter into 3 to select a sinusoidal wave form. <br>Click to close the image The resistor has a value of 1 ohm and the capacitor hasa value of 10mF. For the block signal we define the parameters at the input of the block. The first input is connected to the block TIME, being the simulation time. The second input is the DC value of the wave form. The third input is the AC value of the wave form. The fourth and fifth input are the frequency and phase of the signal. The last input of the block SIGNAL defines the duty cycle for square wave forms. Since we a re modeling a sinusoidal wave form, this parameter is not used and set to zero.
We want to display the output voltage, capacitor current and the signal from the block SIGNAL in one scope. Select a scope from the button bar at the bottom of your window. <br>Click to close the image Enlarge the scope to create more inputs. We want to display the output voltage, capacitor current and the output from the block SIGNAL, so three inputs are required. Click and drag the bottom-right corner of the scope with the left mouse button clicked. During the resizing of the scope, the number of inputs will be shown. <br>Click to close the image If the input from a scope is over a node, its input connection is displayed as a square. The voltage on that node will be displayed in the scope.
To draw a current in the scope, drag the input of the scope over the component that is used for current measurement. Click the input of the scope with the left mouse button and drag it over the component. Release the left mouse button over the circuit component and a dotted line is drawn from the component to the input of the scope, indicating that the current through that component is displayed in the scope. <br>Click to close the image Draw a wire from the output of the block SIGNAL to the first input of the scope and drag the third input of the scope over the capacitor. <br>Click to close the image Next we have to define the parameters for the simulation time. We have to set the total simulation time, the simulation step size and the numerical method. Open the simulation parameters dialog box by selecting Simulation/Simulation Parameters <br>Click to close the image The parameters that we have to set here are: First we set the parameter Tscreen. Since our voltage source has a frequency of 50Hz, we select 5 periods to be simulated. The parameter Tscreen is thus set to 5*20ms = 100ms <br>Click to close the image Second we set the step size parameter dt for this simulation. The period of the voltage source is 20ms. We select a small step size of 100us for this simulation. <br>Click to close the image The last parameter is the numerical method for the electrical circuit. Select Euler, which is a stabil method. The numerical method for the block diagram is default Runge Kutta 4th order <br>Click to close the image Start the simulation by pressing the Play button or pressing the [Enter] key. The simulation is now started and the output from the block SIGNAL, output voltage and the current through the capacitor are shown in the scope. Open the scope by clicking it with the right mouse button. <br>Click to close the image The yellow trace is the output from the block SIGNAL. The red trace is the output voltage and the blue trace is the capacitor voltage. Compared to the original signal the ac value of the output voltage is damped by the capacitor of 10mF. If the capacitor value is decreased, the damping will be less and the output voltage will follow the sinusoidal wave form from the block SIGNAL. Open the properties dialog box for the capacitor by clicking it with the right mouse button and enter the value of 1mF at the field for the value of the capacitor. <br>Click to close the image Restart the simulation by pressing the Play button or continue the simulation by pressing the [Enter] key. The simulation is now started and the output from the block SIGNAL, the output voltage and the capacitor current are shown in the scope. <br>Click to close the image Open the scope by clicking it with the right mouse button. <br>Click to close the image The yellow trace is the output from the block SIGNAL. The red trace is the output voltage and the blue trace is the capacitor voltage.

© 2018 CASPOC, All rights reserved. Home   |   Terms and Conditions   |   Legal   |   Export Compliance   |   Privacy Policy   |   Site Map