Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits

Different circuits with operational amplifiers

Information

This package provides some fully connected operational amplifier circuits.

Extends from Modelica.Icons.VariantsPackage (Icon for package containing variants).

Package Content

Name Description
Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.PartialOpAmp PartialOpAmp Partial circuit of operational amplifiers
Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.Buffer Buffer Non inverting operational amplifier circuit
Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.Gain Gain Inverting operational amplifier circuit
Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.Add Add Adding operational amplifier circuit
Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.Feedback Feedback Subtracting operational amplifier circuit
Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.Der Der Differentiating operational amplifier circuit
Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.Integrator Integrator Integrating operational amplifier circuit
Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.FirstOrder FirstOrder Lowpass filter operational amplifier circuit
Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.Derivative Derivative Lowpass filter operational amplifier circuit
Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.PI PI PI controller operational amplifier circuit
Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.DifferentialAmplifierData DifferentialAmplifierData Data record for differential amplifier

Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.PartialOpAmp Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.PartialOpAmp

Partial circuit of operational amplifiers

Information

Partial model for operational amplifier circuits, based on the IdealizedOpAmpLimited model. Different functionality is achieved by different circuits.

Extends from Modelica.Electrical.Analog.Interfaces.FourPin (Component with two pairs of each two electrical pins).

Parameters

NameDescription
VpsPositive supply [V]
VnsNegative supply [V]
V0No-load amplification

Connectors

NameDescription
p1Positive electrical pin of port 1
n1Negative electrical pin of port 1
p2Positive electrical pin of port 2
n2Negative electrical pin of port 2

Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.Buffer Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.Buffer

Non inverting operational amplifier circuit

Information

Non-inverting amplifier = buffer, based on the IdealizedOpAmpLimited model.

vOut = k*vIn

Extends from PartialOpAmp (Partial circuit of operational amplifiers).

Parameters

NameDescription
VpsPositive supply [V]
VnsNegative supply [V]
V0No-load amplification
kDesired amplification
R1Resistance at negative pin(s) [Ohm]
R2Calculated resistance to reach desired amplification k [Ohm]

Connectors

NameDescription
p1Positive electrical pin of port 1
n1Negative electrical pin of port 1
p2Positive electrical pin of port 2
n2Negative electrical pin of port 2

Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.Gain Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.Gain

Inverting operational amplifier circuit

Information

Inverting amplifier = gain, based on the IdealizedOpAmpLimited model.

vOut = -k*vIn

Extends from PartialOpAmp (Partial circuit of operational amplifiers).

Parameters

NameDescription
VpsPositive supply [V]
VnsNegative supply [V]
V0No-load amplification
kDesired amplification
R1Resistance at negative input of OpAmp [Ohm]
R2Calculated resistance to reach desired amplification k [Ohm]

Connectors

NameDescription
p1Positive electrical pin of port 1
n1Negative electrical pin of port 1
p2Positive electrical pin of port 2
n2Negative electrical pin of port 2

Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.Add Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.Add

Adding operational amplifier circuit

Information

Inverting adder, based on the IdealizedOpAmpLimited model.

-vOut = k1*vIn1 + k2*vIn2

Extends from PartialOpAmp (Partial circuit of operational amplifiers).

Parameters

NameDescription
VpsPositive supply [V]
VnsNegative supply [V]
V0No-load amplification
k1Weight of input 1
k2Weight of input 2
RResistance at output of OpAmp [Ohm]
R1Calculated resistance to reach desired weight 1 [Ohm]
R2Calculated resistance to reach desired weight 2 [Ohm]

Connectors

NameDescription
p1Positive electrical pin of port 1
n1Negative electrical pin of port 1
p2Positive electrical pin of port 2
n2Negative electrical pin of port 2
p1_2Positive electrical pin 1.2

Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.Feedback Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.Feedback

Subtracting operational amplifier circuit

Information

Inverting subtracter = feedback, based on the IdealizedOpAmpLimited model.

vOut = -k*(vIn1 - vIn2)

Extends from PartialOpAmp (Partial circuit of operational amplifiers).

Parameters

NameDescription
VpsPositive supply [V]
VnsNegative supply [V]
V0No-load amplification
kDesired amplification
R1Resistance at inputs of OpAmp [Ohm]
R3Calculated resistance to reach desired amplification k [Ohm]

Connectors

NameDescription
p1Positive electrical pin of port 1
n1Negative electrical pin of port 1
p2Positive electrical pin of port 2
n2Negative electrical pin of port 2
p1_2Positive electrical pin 1.2

Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.Der Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.Der

Differentiating operational amplifier circuit

Information

Inverting differentiator = der, based on the IdealizedOpAmpLimited model.

vOut = -k*der(vIn)

Extends from PartialOpAmp (Partial circuit of operational amplifiers).

Parameters

NameDescription
VpsPositive supply [V]
VnsNegative supply [V]
V0No-load amplification
kDesired amplification at frequency f
fFrequency [Hz]
RResistance at output of OpAmp [Ohm]
CCalculated capacitance to reach desired amplification k [F]

Connectors

NameDescription
p1Positive electrical pin of port 1
n1Negative electrical pin of port 1
p2Positive electrical pin of port 2
n2Negative electrical pin of port 2

Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.Integrator Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.Integrator

Integrating operational amplifier circuit

Information

Inverting integrator, based on the IdealizedOpAmpLimited model.

k*vin = -der(dvOut)

Extends from PartialOpAmp (Partial circuit of operational amplifiers).

Parameters

NameDescription
VpsPositive supply [V]
VnsNegative supply [V]
V0No-load amplification
kDesired amplification at frequency f
fFrequency [Hz]
RResistance at negative input of OpAmp [Ohm]
CCalculated capacitance to reach desired amplification k [F]

Connectors

NameDescription
p1Positive electrical pin of port 1
n1Negative electrical pin of port 1
p2Positive electrical pin of port 2
n2Negative electrical pin of port 2

Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.FirstOrder Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.FirstOrder

Lowpass filter operational amplifier circuit

Information

Inverting lowpass filter = first order, based on the IdealizedOpAmpLimited model.

Transfer function: vOut/vIn = -k/(1 + s*T)

Extends from PartialOpAmp (Partial circuit of operational amplifiers).

Parameters

NameDescription
VpsPositive supply [V]
VnsNegative supply [V]
V0No-load amplification
kDesired amplification
R1Resistance at negative input of OpAmp [Ohm]
R2Calculated resistance to reach k [Ohm]
TTime constant [s]
CCalculated capacitance to reach T [F]

Connectors

NameDescription
p1Positive electrical pin of port 1
n1Negative electrical pin of port 1
p2Positive electrical pin of port 2
n2Negative electrical pin of port 2

Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.Derivative Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.Derivative

Lowpass filter operational amplifier circuit

Information

Inverting highpass filter = derivative, based on the IdealizedOpAmpLimited model.

Transfer function: vOut/vIn = -k*s/(1 + s*T)

Extends from PartialOpAmp (Partial circuit of operational amplifiers).

Parameters

NameDescription
VpsPositive supply [V]
VnsNegative supply [V]
V0No-load amplification
kDesired amplification
R1Resistance at negative input of OpAmp [Ohm]
R2Calculated resistance to reach k [Ohm]
TTime constant [s]
CCalculated capacitance to reach T [F]

Connectors

NameDescription
p1Positive electrical pin of port 1
n1Negative electrical pin of port 1
p2Positive electrical pin of port 2
n2Negative electrical pin of port 2

Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.PI Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.PI

PI controller operational amplifier circuit

Information

Inverting proportional-integral controller = PI, based on the IdealizedOpAmpLimited model.

Transfer function: vOut/vIn = -k*s/(1 + s*T)

Extends from PartialOpAmp (Partial circuit of operational amplifiers).

Parameters

NameDescription
VpsPositive supply [V]
VnsNegative supply [V]
V0No-load amplification
kDesired amplification
R1Resistance at negative input of OpAmp [Ohm]
R2Calculated resistance to reach k [Ohm]
TTime constant [s]
CCalculated capacitance to reach T [F]

Connectors

NameDescription
p1Positive electrical pin of port 1
n1Negative electrical pin of port 1
p2Positive electrical pin of port 2
n2Negative electrical pin of port 2

Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.DifferentialAmplifierData Modelica.Electrical.Analog.Examples.OpAmps.OpAmpCircuits.DifferentialAmplifierData

Data record for differential amplifier

Information

Summarizes parameters for:

Extends from Modelica.Icons.Record (Icon for records).

Parameters

NameDescription
Source
VSourceSource RMS voltage line-to-line [V]
fSourceSource frequency [Hz]
RLoadLoad resistance of source [Ohm]
RGroundResistance of ground connection [Ohm]
OpAmp
V0No-load differential amplification
VSupplySupply voltage [V]
kAttenuation factor
R1Resistor 1 [Ohm]
R2Resistor 2 [Ohm]
R3Resistor 3 [Ohm]
R4Resistor 4 [Ohm]
Measurement
RInstrumentInput resistance of instrument [Ohm]
Automatically generated Thu Oct 1 16:07:38 2020.