Engee documentation
Notebook

RC cascade modelling

Introduction

This example considers the modelling of two models of an RC circuit, which is a cascaded connection of two RC circuits. One of the models uses the directional blocks of the Engee base library and the other uses the non-directional blocks of the physical modelling library.
An example modelling a single RC circuit is also presented in previous example.

Model description

The RC stage consists of two RC circuits with the same configuration and element parameters. A rectangular voltage with amplitude $5 В$ and frequency $100 Гц$ is applied to the input. The output voltage of the stage is measured. For a chain of physical blocks - U_вых_физ, for a chain of basic blocks - U_вых_ПФ. The parameters of the chains are set using the variables specified in the callbacks of the model.

c_cascade_mod.png

Modelling results

After the simulation, the following signals are displayed in the model plots:

c_cascade_graph.png

From the plots we can observe the variation of the input signal, as well as the correspondence between the signal obtained with the physical library blocks and the signal obtained with the transfer functions from the Engee base library.

Conclusion

An Engee model has been developed using directional and non-directional blocks. The use of physical blocks and connections allows additional stages to be added to the RC circuit by copying and pasting new blocks. At the same time, developing such a new circuit using transfer functions requires refinement of the circuit equations.