Operational amplifier in inverting mode¶
Use this model to study the operation of an operational amplifier in inverting mode.
Model description¶
The model consists of a block OperationalAmplifier
and two resistors R1
and R2
, whose values are set to 1 kOhm and 10 kOhm. Its gain is -R2/R1, so an input voltage with an amplitude of 0.1 V is amplified to 1 V at the output. Since we are using an ideal model, the load at the output of the amplifier does not affect its performance.
Let's run the model and plot the 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 rather convenient environment for studying the operation of operational amplifier-based circuits.