Operational amplifier in inverting mode
Using this model as an example, you can study the operation of an operational amplifier in inverting mode.
Description of the model
The model consists of a block OperationalAmplifier and two resistances R1 and R2, the values of which are set to 1 kOhm and 10 kOhm. Its gain factor is -R2/R1, so the input voltage with an amplitude of 0.1 V is amplified at the output to 1 V. Since we use an ideal model, the load at the output of the amplifier does not affect its operation.
Let's run the model and build a graph.:
In [ ]:
model_name = "op-amp-circuit-inverting-amplifier";
model_name in [m.name for m in engee.get_all_models()] ? engee.open(model_name) : engee.load( "$(@__DIR__)/$(model_name).engee");
res = engee.run( model_name );
In [ ]:
Vin = collect( res["Vin"] );
Vout = collect( res["Vout"] );
In [ ]:
plot( Vin.time, Vin.value )
plot!( Vout.time, Vout.value )
Out[0]:
Conclusion
We have implemented a fairly convenient environment for investigating the operation of circuits based on operational amplifiers.
