modelAdd
Adding operational amplifier circuit
Extends from PartialOpAmp (Partial circuit of operational amplifiers).
Information
Inverting adder, based on the IdealizedOpAmpLimited model.
-vOut = k1*vIn1 + k2*vIn2
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Voltage | Vps (from PartialOpAmp) | +15 | Positive supply |
| SI.Voltage | Vns (from PartialOpAmp) | -15 | Negative supply |
| Real | V0 (from PartialOpAmp) | 15000.0 | No-load amplification |
| Real | k1 | 1 | Weight of input 1 |
| Real | k2 | 1 | Weight of input 2 |
| SI.Resistance | R | 1000 | Resistance at output of OpAmp |
| SI.Resistance | R1 | R/k1 | Calculated resistance to reach desired weight 1 |
| SI.Resistance | R2 | R/k2 | Calculated resistance to reach desired weight 2 |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| PositivePin | p1 (from FourPin) | Positive electrical pin of port 1 | |
| NegativePin | n1 (from FourPin) | Negative electrical pin of port 1 | |
| PositivePin | p2 (from FourPin) | Positive electrical pin of port 2 | |
| NegativePin | n2 (from FourPin) | Negative electrical pin of port 2 | |
| Modelica.Electrical.Analog.Interfaces.PositivePin | p1_2 | Positive electrical pin 1.2 |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Voltage | v1 (from FourPin) | Voltage drop of port 1 (= p1.v - n1.v) | |
| SI.Voltage | v2 (from FourPin) | Voltage drop of port 2 (= p2.v - n2.v) | |
| SI.Current | i1 (from FourPin) | Current flowing from pos. to neg. pin of port 1 | |
| SI.Current | i2 (from FourPin) | Current flowing from pos. to neg. pin of port 2 | |
| Modelica.Electrical.Analog.Ideal.OpAmpLimited | opAmp (from PartialOpAmp) | ||
| SI.Voltage | v1_2 | p1_2.v - n1.v | Voltage drop of port 1_2 (= p1_2.v - n1.v) |
| SI.Current | i1_2 | p1_2.i | Current flowing from pos. to neg. pin of port 1_2 |
| Modelica.Electrical.Analog.Basic.Resistor | r1 | ||
| Modelica.Electrical.Analog.Basic.Resistor | r2 | ||
| Modelica.Electrical.Analog.Basic.Resistor | r |