DC circuit#
This tutorial describes simple steps for setting up a circuit to solve an electrical problem.
In this tutorial, you learn how to simulate DC circuit with specified parameters. As a result of calculation, it is necessary to determine the magnitude of the current and voltage in the circuit.
1. Create and set up a project#
First, it is necessary to create a new project and give it a name, for example, DC circuit.
In the next step (see Fig. 1 below), it is necessary to:
Disconnect the
Synchronization with real timeoption, so that it is possible to set the simulation time < 1 [s];Set the
Simulation timebysetting a value of 0.2 [s] to the corresponding project parameter;Configure the
Integration stepbysetting a value of 0.05 [ms] to the corresponding project parameter;Adjust the
Sampling stepbysetting a value of 0.05 [ms] to the corresponding project parameter.
Important
In REPEAT VISION decimal numbers occur through a period.
Fig. 1 Project setup#
Let’s start to perform basic steps to create a circuit by opening the Electronics library.
2. Creating a voltage source#
Let’s add the first block of our circuit, for this purpose move the Voltage source block to the working area to power the DC circuit.
The following shall be done in properties of the first block (see Fig. 2 below):
Select the
Source type- DC (direct current);Specify voltage value - 27 [V];
Fig. 2 Adding and configuring the Voltage source block#
As a result, the project is ready to add Nodes. Save the project and continue with the next steps.
3. Creating nodes#
In order to connect a voltmeter add the Node block (see Fig. 3 below), for this purpose it is necessary to move the block of the same name to the working surface, then rotate the block by 90\(^0\) to the left for further convenience of drawing the circuit and and specify the value of the Number of output ports property – 2.
Fig. 3 Adding and configuring the Node block#
Then it is necessary to copy the Node block by selecting it (click on the block with the LMB) then CTRL+C, CTRL+V commands.
Then connect blocks as shown in the Fig. 4:
Fig. 4 Connecting blocks#
Save and move on to adding measuring elements.
4. Adding measuring components#
To measure the circuit parameters, we add the Current meter and Voltage meter blocks, which must be rotated 90\(^0\) to the right (see the note under the figure).
Then connect blocks as shown in the Fig. 5:
Fig. 5 Connecting measuring elements#
Important
In order to obtain correct voltmeter readings, the “+” input of the voltage meter and the “+” output of the voltage source shall be connected to the same assembly, similarly, the “-” input of the voltage meter and the “-” input of the voltage source shall also be connected to the same assembly. Otherwise, the result will be a negative voltage.
5. Creating a resistor#
In order to set the resistance, add a Resistor block, then rotate the block 90\(^0\) to the right for further convenience to create the circuit.
In its properties specify the resistance value - 5 [Ohm].
Then connect blocks as shown in the Fig. 6:
Fig. 6 Connecting and configuring the Resistor block#
6. Add graphs for visualization#
Go to the visualization tab:
Add one graph to display the current meter signal;
Add the second graph to display the voltage meter signal, Fig. 7:
Fig. 7 Adding graphs#
Start the calculation with “Start Simulation” button 
The calculation shall be successfully completed with the following message:
Modeling stopped on the solver side due to modeling time limit exceeded.
7. Analysis of calculation results#
After successful calculation, the current value (≈5.3 [A]) and voltage (≈26.5 [V]) in the circuit can be obtained from the graphs , Fig. 8:
Fig. 8 Calculation results#
8. Conclusions#
As a result of this tutorial, you have gained basic knowledge for solving an electrical problem. You have learned:
Create a simple electrical circuit and set the parameters of the blocks Voltage source, Node, Resistor.
Use Voltage meter and Current meter to measure current and voltage in a circuit.
Create graphs for visual display of measuring components of signals.