WOLFRAM SYSTEM MODELER

BlockCircuit

A block based approach to modeling of an electrical circuit

Diagram

Wolfram Language

In[1]:=
SystemModel["IntroductoryExamples.ComponentBased.BlockCircuit"]
Out[1]:=

Information

This is a block based model of the circuit below.

The signal voltage is considered as input and the signal current as output. The system is derived from the following three equations

where i, is the total current through the signal voltage, i1 and i2 are the currents running through resistor 1 and 2 respectively. Rewrite the above equations to not contain derivatives:

The output current is the result of add2, i1 and i2 are the signals from gain3 and integrator1 respectively. The picture below shows the resulting current:

A component based version of this model can be found here.

For a step by step tutorial see Component-Based—Simple Circuit.

Components (10)

gain3

Type: Gain

Description: Output the product of a gain value with the input signal

gain1

Type: Gain

Description: Output the product of a gain value with the input signal

add3

Type: Add

Description: Output the sum of the two inputs

gain4

Type: Gain

Description: Output the product of a gain value with the input signal

sine1

Type: Sine

Description: Generate sine signal

integrator1

Type: Integrator

Description: Output the integral of the input signal with optional reset

add1

Type: Add

Description: Output the sum of the two inputs

add2

Type: Add

Description: Output the sum of the two inputs

gain2

Type: Gain

Description: Output the product of a gain value with the input signal

integrator2

Type: Integrator

Description: Output the integral of the input signal with optional reset