|
@@ -1,61 +0,0 @@
|
|
|
-model notchFilter
|
|
|
-// Parameters
|
|
|
- parameter Modelica.Units.SI.PotentialDifference Vt "testAmplitude";
|
|
|
- parameter Modelica.Units.SI.Frequency Ft "testFrequency";
|
|
|
-// Components
|
|
|
- Modelica.Electrical.Analog.Basic.Ground ground_in annotation(
|
|
|
- Placement(visible = true, transformation(origin = {-80, -30}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
|
|
|
- Modelica.Electrical.Analog.Basic.Ground ground annotation(
|
|
|
- Placement(transformation(origin = {28, -18}, extent = {{-10, -10}, {10, 10}})));
|
|
|
- Modelica.Electrical.Analog.Basic.Ground ground_out annotation(
|
|
|
- Placement(visible = true, transformation(origin = {80, -30}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
|
|
|
- Modelica.Electrical.Analog.Basic.Capacitor C1(C(displayUnit = "nF") = 1e-9, v(start = 0)) annotation(
|
|
|
- Placement(visible = true, transformation(origin = {-20, -40}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
|
|
|
- Modelica.Electrical.Analog.Basic.Capacitor C2(C(displayUnit = "pF") = 1e-9, v(start = 0)) annotation(
|
|
|
- Placement(visible = true, transformation(origin = {20, -40}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
|
|
|
- Modelica.Electrical.Analog.Basic.Capacitor C3(C(displayUnit = "pF") = 2e-9, v(start = 0)) annotation(
|
|
|
- Placement(visible = true, transformation(origin = {0, 20}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
|
|
|
- Modelica.Electrical.Analog.Basic.Resistor R1(R(displayUnit = "kOhm") = 1600) annotation(
|
|
|
- Placement(visible = true, transformation(origin = {-20, 40}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
|
|
|
- Modelica.Electrical.Analog.Basic.Resistor R2(R(displayUnit = "kOhm") = 1600) annotation(
|
|
|
- Placement(visible = true, transformation(origin = {20, 40}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
|
|
|
- Modelica.Electrical.Analog.Basic.Resistor R3a(R(displayUnit = "kOhm") = 1600) annotation(
|
|
|
- Placement(transformation(origin = {12, -18}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
|
|
|
- Modelica.Electrical.Analog.Basic.Resistor R3b(R(displayUnit = "kOhm") = 1600) annotation(
|
|
|
- Placement(transformation(origin = {-12, -18}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
|
|
|
- Modelica.Electrical.Analog.Sensors.VoltageSensor V_out annotation(
|
|
|
- Placement(visible = true, transformation(origin = {60, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
|
|
|
- Modelica.Electrical.Analog.Sources.SineVoltage V_in(V(displayUnit = "V") = Vt, f(displayUnit = "Hz") = Ft) annotation(
|
|
|
- Placement(visible = true, transformation(origin = {-60, 0}, extent = {{10, -10}, {-10, 10}}, rotation = 0)));
|
|
|
-// Equations
|
|
|
- equation
|
|
|
- connect(C3.n, R3a.p) annotation(
|
|
|
- Line(points = {{0, 10}, {0, -1}, {12, -1}, {12, -8}}, color = {0, 0, 255}));
|
|
|
- connect(V_out.p, C2.n) annotation(
|
|
|
- Line(points = {{50, 0}, {40, 0}, {40, -40}, {30, -40}}, color = {0, 0, 255}));
|
|
|
- connect(R1.n, R2.p) annotation(
|
|
|
- Line(points = {{-10, 40}, {10, 40}}, color = {0, 0, 255}));
|
|
|
- connect(C3.p, R2.p) annotation(
|
|
|
- Line(points = {{0, 30}, {0, 40}, {10, 40}}, color = {0, 0, 255}));
|
|
|
- connect(V_out.n, ground_out.p) annotation(
|
|
|
- Line(points = {{70, 0}, {80, 0}, {80, -20}}, color = {0, 0, 255}));
|
|
|
- connect(V_in.p, C1.p) annotation(
|
|
|
- Line(points = {{-50, 0}, {-40, 0}, {-40, -40}, {-30, -40}}, color = {0, 0, 255}));
|
|
|
- connect(R2.n, C2.n) annotation(
|
|
|
- Line(points = {{30, 40}, {40, 40}, {40, -40}, {30, -40}}, color = {0, 0, 255}));
|
|
|
- connect(V_in.n, ground_in.p) annotation(
|
|
|
- Line(points = {{-70, 0}, {-80, 0}, {-80, -20}}, color = {0, 0, 255}));
|
|
|
- connect(R1.p, C1.p) annotation(
|
|
|
- Line(points = {{-30, 40}, {-40, 40}, {-40, -40}, {-30, -40}}, color = {0, 0, 255}));
|
|
|
- connect(R3b.p, C3.n) annotation(
|
|
|
- Line(points = {{-12, -8}, {-12, -1}, {0, -1}, {0, 10}}, color = {0, 0, 255}));
|
|
|
- connect(C1.n, C2.p) annotation(
|
|
|
- Line(points = {{-10, -40}, {10, -40}}, color = {0, 0, 255}));
|
|
|
- connect(R3a.n, C2.p) annotation(
|
|
|
- Line(points = {{12, -28}, {12, -32}, {0, -32}, {0, -40}, {10, -40}}, color = {0, 0, 255}));
|
|
|
- connect(R3b.n, C1.n) annotation(
|
|
|
- Line(points = {{-12, -28}, {-12, -32}, {0, -32}, {0, -40}, {-10, -40}}, color = {0, 0, 255}));
|
|
|
- connect(ground.p, C3.n) annotation(
|
|
|
- Line(points = {{28, -8}, {28, -1}, {0, -1}, {0, 10}}, color = {0, 0, 255}));
|
|
|
- annotation(uses(Modelica(version = "4.0.0")), Diagram);
|
|
|
-end notchFilter;
|