Modelica示例——晶体管静态工作点电路

如图所示,为晶体管静态工作点的最简电路。

电路


曲线


代码

model aa "Simple NPN transistor amplifier circuit"
  import Modelica.Electrical.Analog.Basic;
  import Modelica.Electrical.Analog.Sources;
  import Modelica.Electrical.Analog.Examples.Utilities;
  import Modelica.Icons;
  extends Icons.Example;
  Modelica.Electrical.Analog.Basic.Resistor R1(R = 10000) annotation(
    Placement(visible = true, transformation(extent = {{-78, -20}, {-58, 0}}, rotation = 0)));
  Modelica.Electrical.Analog.Basic.Resistor R2(R = 100) annotation(
    Placement(visible = true, transformation(origin = {-26, 30}, extent = {{-10, -10}, {10, 10}}, rotation = 270)));
  Modelica.Electrical.Analog.Basic.Ground Gnd1 annotation(
    Placement(visible = true, transformation(extent = {{-31, -80}, {-21, -70}}, rotation = 0)));
  Modelica.Electrical.Analog.Examples.Utilities.Transistor Transistor1(ct(v(start = 0, fixed = true))) annotation(
    Placement(visible = true, transformation(extent = {{-46, -20}, {-26, 0}}, rotation = 0)));
  Modelica.Electrical.Analog.Sources.ConstantVoltage constantVoltage1(V = 15) annotation(
    Placement(visible = true, transformation(origin = {10, -10}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
  Modelica.Electrical.Analog.Sources.ConstantVoltage constantVoltage2(V = 3) annotation(
    Placement(visible = true, transformation(origin = {-78, -42}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
equation
  connect(constantVoltage2.n, Gnd1.p) annotation(
    Line(points = {{-80, -52}, {-80, -52}, {-80, -70}, {-28, -70}, {-28, -70}}, color = {0, 0, 255}));
  connect(R1.p, constantVoltage2.p) annotation(
    Line(points = {{-78, -10}, {-78, -10}, {-78, -32}, {-78, -32}}, color = {0, 0, 255}));
  connect(R2.n, Transistor1.c) annotation(
    Line(points = {{-28, 20}, {-28, -4}}, color = {0, 0, 255}));
  connect(R2.p, constantVoltage1.p) annotation(
    Line(points = {{-28, 40}, {8, 40}, {8, 0}}, color = {0, 0, 255}));
  connect(R1.n, Transistor1.b) annotation(
    Line(points = {{-60, -10}, {-48, -10}}, color = {0, 0, 255}));
  connect(Transistor1.e, Gnd1.p) annotation(
    Line(points = {{-28, -16}, {-28, -16}, {-28, -70}, {-28, -70}}, color = {0, 0, 255}));
  connect(constantVoltage1.n, Gnd1.p) annotation(
    Line(points = {{8, -20}, {8, -70}, {-28, -70}}, color = {0, 0, 255}));
  annotation(
    Documentation(info = "<html>
<p>It is a simple NPN transistor amplifier circuit. The voltage difference between R1.p and R3.n is amplified. The output signal is the voltage between R2.n and R4.n. In this example the voltage at V1 is amplified because R3.n is grounded.</p>
<p>The simulation end time should be set to 1e- 8. Please plot the input voltage V1.v, and the output voltages R2.n.v, and R4.n.v.</p>
<p><b>Reference:</b></p>
<p>Tietze, U.; Schenk, Ch.: Halbleiter-Schaltungstechnik. Springer-Verlag Berlin Heidelberg NewYork 1980, p. 59</p>
</html>", revisions = "<html>
<dl>
<dt>
<b>Main Authors:</b>
</dt>
<dd>
Christoph Clau&szlig;
    &lt;<a href=\"mailto:Christoph.Clauss@eas.iis.fraunhofer.de\">Christoph.Clauss@eas.iis.fraunhofer.de</a>&gt;<br>
    Andr&eacute; Schneider
    &lt;<a href=\"mailto:Andre.Schneider@eas.iis.fraunhofer.de\">Andre.Schneider@eas.iis.fraunhofer.de</a>&gt;<br>
    Fraunhofer Institute for Integrated Circuits<br>
    Design Automation Department<br>
    Zeunerstra&szlig;e 38<br>
    D-01069 Dresden
</dd>
</dl>
</html>"),
    experiment(StopTime = 1),
    Diagram(coordinateSystem(preserveAspectRatio = false, initialScale = 0.1)),
    uses(Modelica(version = "3.2.2")));
end aa;

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值