Simulation of an RC cascade
Introduction
In this example, we consider the modeling of two RC circuit models, which is a cascade connection of two RC circuits. One of the models uses directional blocks of the basic Engee library, and the other uses non-directional blocks of the physical modeling library.
An example of modeling a single RC circuit is also presented in [previous example] (https://engee.com/helpcenter/stable/ru/interactive-scripts/physmod/rc_curcuit.html ).
Description of the model
The RC cascade consists of two RC circuits with the same configuration and element parameters. A rectangular-shaped voltage with an amplitude is applied to the input and frequency . The output voltage of the cascade is measured. For a chain of physical blocks - U_вых_физ, for a chain of basic blocks - U_вых_ПФ. Chain parameters are set using the variables specified in callbacks models.
Simulation results
After the simulation, the following signals are displayed in the graphs of the model:
According to the constructed graphs, it is possible to observe the change in the input signal, as well as the correspondence of the signal obtained using the blocks of the physical library to the signal obtained using transfer functions from the base library Engee.
Conclusion
The Engee model was developed using directional and non-directional blocks. Using physical blocks and connections allows you to add additional cascades to the RC circuit by copying and pasting new blocks. At the same time, when developing such a new scheme using transfer functions, it is necessary to refine the equations of the scheme.