- Timestamp:
- 02/01/08 12:53:12 (7 months ago)
- Location:
- trunk/Modelica/Electrical/Analog
- Files:
-
- 2 modified
-
Ideal.mo (modified) (45 diffs)
-
Semiconductors.mo (modified) (34 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modelica/Electrical/Analog/Ideal.mo
r912 r1024 1 1 within Modelica.Electrical.Analog; 2 package Ideal 3 "Ideal electrical elements such as switches, diode, transformer, operational amplifier" 4 2 package Ideal 3 "Ideal electrical elements such as switches, diode, transformer, operational amplifier" 4 5 5 extends Modelica.Icons.Library; 6 6 7 7 annotation (Window( 8 8 x=0.03, … … 42 42 </dl> 43 43 </html>")); 44 45 model IdealThyristor "Ideal thyristor" 44 45 model IdealThyristor "Ideal thyristor" 46 46 extends Modelica.Electrical.Analog.Interfaces.OnePort; 47 parameter Modelica.SIunits.Resistance Ron(final min=0) = 1.E-5 47 parameter Modelica.SIunits.Resistance Ron(final min=0) = 1.E-5 48 48 "Closed thyristor resistance"; 49 parameter Modelica.SIunits.Conductance Goff(final min=0) = 1.E-5 49 parameter Modelica.SIunits.Conductance Goff(final min=0) = 1.E-5 50 50 "Opened thyristor conductance"; 51 parameter Modelica.SIunits.Voltage Vknee(final min=0, start=0) 51 parameter Modelica.SIunits.Voltage Vknee(final min=0, start=0) 52 52 "Forward threshold voltage"; 53 53 Boolean off(start=true) "Switching state"; … … 57 57 extent={{-20,-20},{20,20}}, 58 58 rotation=270))); 59 protected 60 Real s(final unit="1") 59 protected 60 Real s(final unit="1") 61 61 "Auxiliary variable: if on then current, if opened then voltage"; 62 62 constant Modelica.SIunits.Voltage unitVoltage= 1 annotation(HideResult=true); … … 179 179 width=0.6, 180 180 height=0.6)); 181 equation 181 equation 182 182 off = s < 0 or pre(off) and not fire; 183 183 v = (s*unitCurrent)*(if off then 1 else Ron) + Vknee; 184 184 i = (s*unitVoltage)*(if off then Goff else 1) + Goff*Vknee; 185 185 end IdealThyristor; 186 187 model IdealGTOThyristor "Ideal GTO thyristor" 186 187 model IdealGTOThyristor "Ideal GTO thyristor" 188 188 extends Modelica.Electrical.Analog.Interfaces.OnePort; 189 parameter Modelica.SIunits.Resistance Ron(final min=0) = 1.E-5 189 parameter Modelica.SIunits.Resistance Ron(final min=0) = 1.E-5 190 190 "Closed thyristor resistance"; 191 parameter Modelica.SIunits.Conductance Goff(final min=0) = 1.E-5 191 parameter Modelica.SIunits.Conductance Goff(final min=0) = 1.E-5 192 192 "Opened thyristor conductance"; 193 parameter Modelica.SIunits.Voltage Vknee(final min=0, start=0) 193 parameter Modelica.SIunits.Voltage Vknee(final min=0, start=0) 194 194 "Forward threshold voltage"; 195 195 Boolean off(start=true) "Switching state"; … … 199 199 extent={{-20,-20},{20,20}}, 200 200 rotation=270))); 201 protected 202 Real s(final unit="1") 201 protected 202 Real s(final unit="1") 203 203 "Auxiliary variable: if on then current, if opened then voltage"; 204 204 constant Modelica.SIunits.Voltage unitVoltage= 1 annotation(HideResult=true); … … 321 321 width=0.6, 322 322 height=0.6)); 323 equation 323 equation 324 324 off = s < 0 or not fire; 325 325 v = (s*unitCurrent)*(if off then 1 else Ron) + Vknee; 326 326 i = (s*unitVoltage)*(if off then Goff else 1) + Goff*Vknee; 327 327 end IdealGTOThyristor; 328 329 model IdealCommutingSwitch "Ideal commuting switch" 328 329 model IdealCommutingSwitch "Ideal commuting switch" 330 330 parameter SI.Resistance Ron(final min=0) = 1.E-5 "Closed switch resistance"; 331 parameter SI.Conductance Goff(final min=0) = 1.E-5 331 parameter SI.Conductance Goff(final min=0) = 1.E-5 332 332 "Opened switch conductance"; 333 333 Interfaces.PositivePin p annotation (Placement(transformation(extent={{-110, … … 337 337 Interfaces.NegativePin n1 annotation (Placement(transformation(extent={{90, 338 338 40},{110,60}}, rotation=0))); 339 Modelica.Blocks.Interfaces.BooleanInput control 339 Modelica.Blocks.Interfaces.BooleanInput control 340 340 "true => p--n2 connected, false => p--n1 connected" annotation (Placement( 341 341 transformation( … … 343 343 extent={{-20,-20},{20,20}}, 344 344 rotation=270))); 345 protected 345 protected 346 346 Real s1(final unit="1"); 347 347 Real s2(final unit="1") "Auxiliary variables"; … … 416 416 width=0.6, 417 417 height=0.6)); 418 equation 418 equation 419 419 0 = p.i + n2.i + n1.i; 420 420 421 421 p.v - n1.v = (s1*unitCurrent)*(if (control) then 1 else Ron); 422 422 n1.i = -(s1*unitVoltage)*(if (control) then Goff else 1); … … 424 424 n2.i = -(s2*unitVoltage)*(if (control) then 1 else Goff); 425 425 end IdealCommutingSwitch; 426 427 model IdealIntermediateSwitch "Ideal intermediate switch" 426 427 model IdealIntermediateSwitch "Ideal intermediate switch" 428 428 parameter SI.Resistance Ron(final min=0) = 1.E-5 "Closed switch resistance"; 429 parameter SI.Conductance Goff(final min=0) = 1.E-5 429 parameter SI.Conductance Goff(final min=0) = 1.E-5 430 430 "Opened switch conductance"; 431 431 Interfaces.PositivePin p1 annotation (Placement(transformation(extent={{ … … 437 437 Interfaces.NegativePin n2 annotation (Placement(transformation(extent={{90, 438 438 -10},{110,10}}, rotation=0))); 439 Modelica.Blocks.Interfaces.BooleanInput control 439 Modelica.Blocks.Interfaces.BooleanInput control 440 440 "true => p1--n2, p2--n1 connected, otherwise p1--n1, p2--n2 connected" 441 441 annotation (Placement(transformation( … … 443 443 extent={{-20,-20},{20,20}}, 444 444 rotation=270))); 445 protected 445 protected 446 446 Real s1(final unit="1"); 447 447 Real s2(final unit="1"); … … 531 531 width=0.6, 532 532 height=0.6)); 533 equation 533 equation 534 534 p1.v - n1.v = (s1*unitCurrent)*(if (control) then 1 else Ron); 535 535 p2.v - n2.v = (s2*unitCurrent)*(if (control) then 1 else Ron); 536 536 p1.v - n2.v = (s3*unitCurrent)*(if (control) then Ron else 1); 537 537 p2.v - n1.v = (s4*unitCurrent)*(if (control) then Ron else 1); 538 538 539 539 p1.i = if control then s1*unitVoltage*Goff + s3*unitCurrent else s1*unitCurrent + s3*unitVoltage*Goff; 540 540 p2.i = if control then s2*unitVoltage*Goff + s4*unitCurrent else s2*unitCurrent + s4*unitVoltage*Goff; … … 542 542 n2.i = if control then -s2*unitVoltage*Goff - s3*unitCurrent else -s2*unitCurrent - s3*unitVoltage*Goff; 543 543 end IdealIntermediateSwitch; 544 545 model ControlledIdealCommutingSwitch "Controlled ideal commuting switch" 544 545 model ControlledIdealCommutingSwitch "Controlled ideal commuting switch" 546 546 parameter SI.Voltage level=0.5 "Switch level"; 547 547 parameter SI.Resistance Ron(final min=0) = 1.E-5 "Closed switch resistance"; 548 parameter SI.Conductance Goff(final min=0) = 1.E-5 548 parameter SI.Conductance Goff(final min=0) = 1.E-5 549 549 "Opened switch conductance"; 550 550 Interfaces.PositivePin p annotation (Placement(transformation(extent={{-110, … … 554 554 Interfaces.NegativePin n1 annotation (Placement(transformation(extent={{90, 555 555 40},{110,60}}, rotation=0))); 556 Interfaces.Pin control 556 Interfaces.Pin control 557 557 "Control pin: if control.v > level p--n2 connected, otherwise p--n1 connected" 558 558 annotation (Placement(transformation( … … 560 560 extent={{-10,-10},{10,10}}, 561 561 rotation=90))); 562 protected 562 protected 563 563 Real s1(final unit="1"); 564 564 Real s2(final unit="1") "Auxiliary variables"; … … 634 634 width=0.6, 635 635 height=0.6)); 636 equation 636 equation 637 637 control.i = 0; 638 638 0 = p.i + n2.i + n1.i; 639 639 640 640 p.v - n1.v = (s1*unitCurrent)*(if (control.v > level) then 1 else Ron); 641 641 n1.i = -(s1*unitVoltage)*(if (control.v > level) then Goff else 1); … … 643 643 n2.i = -(s2*unitVoltage)*(if (control.v > level) then 1 else Goff); 644 644 end ControlledIdealCommutingSwitch; 645 646 model ControlledIdealIntermediateSwitch 647 "Controlled ideal intermediate switch" 645 646 model ControlledIdealIntermediateSwitch 647 "Controlled ideal intermediate switch" 648 648 parameter SI.Voltage level=0.5 "Switch level"; 649 649 parameter SI.Resistance Ron(final min=0) = 1.E-5 "Closed switch resistance"; 650 parameter SI.Conductance Goff(final min=0) = 1.E-5 650 parameter SI.Conductance Goff(final min=0) = 1.E-5 651 651 "Opened switch conductance"; 652 652 Interfaces.PositivePin p1 annotation (Placement(transformation(extent={{ … … 664 664 extent={{-10,-10},{10,10}}, 665 665 rotation=90))); 666 protected 666 protected 667 667 Real s1(final unit="1"); 668 668 Real s2(final unit="1"); … … 753 753 width=0.6, 754 754 height=0.6)); 755 equation 755 equation 756 756 control.i = 0; 757 757 758 758 p1.v - n1.v = (s1*unitCurrent)*(if (control.v > level) then 1 else Ron); 759 759 p2.v - n2.v = (s2*unitCurrent)*(if (control.v > level) then 1 else Ron); 760 760 p1.v - n2.v = (s3*unitCurrent)*(if (control.v > level) then Ron else 1); 761 761 p2.v - n1.v = (s4*unitCurrent)*(if (control.v > level) then Ron else 1); 762 762 763 763 p1.i = if control.v > level then s1*unitVoltage*Goff + s3*unitCurrent else s1*unitCurrent + s3*unitVoltage*Goff; 764 764 p2.i = if control.v > level then s2*unitVoltage*Goff + s4*unitCurrent else s2*unitCurrent + s4*unitVoltage*Goff; … … 766 766 n2.i = if control.v > level then -s2*unitVoltage*Goff - s3*unitCurrent else -s2*unitCurrent - s3*unitVoltage*Goff; 767 767 end ControlledIdealIntermediateSwitch; 768 769 model IdealOpAmp "Ideal operational amplifier (norator-nullator pair)" 768 769 model IdealOpAmp "Ideal operational amplifier (norator-nullator pair)" 770 770 SI.Voltage v1 "Voltage drop over the left port"; 771 771 SI.Voltage v2 "Voltage drop over the right port"; … … 877 877 width=0.71, 878 878 height=0.59)); 879 equation 879 equation 880 880 v1 = p1.v - n1.v; 881 881 v2 = p2.v - n2.v; … … 887 887 i1 = 0; 888 888 end IdealOpAmp; 889 890 model IdealOpAmp3Pin 891 "Ideal operational amplifier (norator-nullator pair), but 3 pins" 889 890 model IdealOpAmp3Pin 891 "Ideal operational amplifier (norator-nullator pair), but 3 pins" 892 892 Interfaces.PositivePin in_p "Positive pin of the input port" annotation (Placement( 893 893 transformation(extent={{-110,-60},{-90,-40}}, rotation=0))); … … 978 978 width=0.71, 979 979 height=0.59)); 980 equation 980 equation 981 981 in_p.v = in_n.v; 982 982 in_p.i = 0; 983 983 in_n.i = 0; 984 984 end IdealOpAmp3Pin; 985 986 model IdealOpAmpLimited "Ideal operational amplifier with limitation" 985 986 model IdealOpAmpLimited "Ideal operational amplifier with limitation" 987 987 Interfaces.PositivePin in_p "Positive pin of the input port" annotation (Placement( 988 988 transformation(extent={{-110,-60},{-90,-40}}, rotation=0))); … … 998 998 rotation=0))); 999 999 SI.Voltage vin "input voltage"; 1000 protected 1000 protected 1001 1001 Real s(final unit="1") "Auxiliary variable"; 1002 1002 constant Modelica.SIunits.Voltage unitVoltage= 1 annotation(HideResult=true); … … 1089 1089 width=0.71, 1090 1090 height=0.59)); 1091 1092 equation 1091 1092 equation 1093 1093 in_p.i = 0; 1094 1094 in_n.i = 0; … … 1096 1096 VMin.i = 0; 1097 1097 vin = in_p.v - in_n.v; 1098 in_p.v - in_n.v = unitVoltage* (if s < -1 then s + 1 else if s > 1 then s - 1 else 0);1099 out.v = if s < -1 then VMin.v else if s > 1 then VMax.v else (VMax.v - VMin.v)*s/2 + (VMax.v + VMin.v)/2;1098 in_p.v - in_n.v = unitVoltage*noEvent(smooth(0,(if s < -1 then s + 1 else if s > 1 then s - 1 else 0))); 1099 out.v = noEvent(smooth(0,if s < -1 then VMin.v else if s > 1 then VMax.v else (VMax.v - VMin.v)*s/2 + (VMax.v + VMin.v)/2)); 1100 1100 end IdealOpAmpLimited; 1101 1102 model IdealDiode "Ideal diode" 1101 1102 model IdealDiode "Ideal diode" 1103 1103 extends Modelica.Electrical.Analog.Interfaces.OnePort; 1104 parameter Modelica.SIunits.Resistance Ron(final min=0) = 1.E-5 1104 parameter Modelica.SIunits.Resistance Ron(final min=0) = 1.E-5 1105 1105 "Forward state-on differential resistance (closed diode resistance)"; 1106 parameter Modelica.SIunits.Conductance Goff(final min=0) = 1.E-5 1106 parameter Modelica.SIunits.Conductance Goff(final min=0) = 1.E-5 1107 1107 "Backward state-off conductance (opened diode conductance)"; 1108 parameter Modelica.SIunits.Voltage Vknee(final min=0, start=0) 1108 parameter Modelica.SIunits.Voltage Vknee(final min=0, start=0) 1109 1109 "Forward threshold voltage"; 1110 1110 Boolean off(start=true) "Switching state"; 1111 protected 1112 Real s(final unit="1") 1111 protected 1112 Real s(final unit="1") 1113 1113 "Auxiliary variable: if on then current, if opened then voltage"; 1114 1114 constant Modelica.SIunits.Voltage unitVoltage= 1 annotation(HideResult=true); … … 1226 1226 width=0.6, 1227 1227 height=0.6)); 1228 equation 1228 equation 1229 1229 off = s < 0; 1230 1230 v = (s*unitCurrent)*(if off then 1 else Ron) + Vknee; 1231 1231 i = (s*unitVoltage)*(if off then Goff else 1) + Goff*Vknee; 1232 1232 end IdealDiode; 1233 1234 model IdealTransformer "Ideal electrical transformer" 1233 1234 model IdealTransformer "Ideal electrical transformer" 1235 1235 extends Interfaces.TwoPort; 1236 1236 parameter Real n(start=1) "Turns ratio"; … … 1323 1323 width=0.6, 1324 1324 height=0.6)); 1325 equation 1325 equation 1326 1326 v1 = n*v2; 1327 1327 i2 = -n*i1; 1328 1328 end IdealTransformer; 1329 1330 model IdealGyrator "Ideal gyrator" 1329 1330 model IdealGyrator "Ideal gyrator" 1331 1331 extends Interfaces.TwoPort; 1332 1332 parameter SI.Conductance G(start=1) "Gyration conductance"; … … 1411 1411 fillPattern=FillPattern.Solid), 1412 1412 Line(points={{96,50},{40,50},{40,-50},{96,-50}}, color={0,0,255})})); 1413 1414 equation 1413 1414 equation 1415 1415 i1 = G*v2; 1416 1416 i2 = -G*v1; 1417 1417 end IdealGyrator; 1418 1419 model Idle "Idle branch" 1418 1419 model Idle "Idle branch" 1420 1420 extends Interfaces.OnePort; 1421 1421 annotation ( … … 1461 1461 width=0.6, 1462 1462 height=0.6)); 1463 equation 1463 equation 1464 1464 i = 0; 1465 1465 end Idle; 1466 1467 model Short "Short cut branch" 1466 1467 model Short "Short cut branch" 1468 1468 extends Interfaces.OnePort; 1469 1469 annotation ( … … 1511 1511 width=0.6, 1512 1512 height=0.6)); 1513 equation 1513 equation 1514 1514 v = 0; 1515 1515 end Short; 1516 1517 model IdealOpeningSwitch "Ideal electrical opener" 1516 1517 model IdealOpeningSwitch "Ideal electrical opener" 1518 1518 extends Modelica.Electrical.Analog.Interfaces.OnePort; 1519 1519 parameter SI.Resistance Ron(final min=0) = 1.E-5 "Closed switch resistance" 1520 1520 annotation (Placement(transformation(extent={{-56.6667,10},{-10,56.6667}}, 1521 1521 rotation=0))); 1522 parameter SI.Conductance Goff(final min=0) = 1.E-5 1522 parameter SI.Conductance Goff(final min=0) = 1.E-5 1523 1523 "Opened switch conductance" annotation (Placement(transformation(extent={ 1524 1524 {10,10},{56.6667,56.6667}}, rotation=0))); 1525 Modelica.Blocks.Interfaces.BooleanInput control 1525 Modelica.Blocks.Interfaces.BooleanInput control 1526 1526 "true => switch open, false => p--n connected" annotation (Placement( 1527 1527 transformation( … … 1529 1529 extent={{-20,-20},{20,20}}, 1530 1530 rotation=270))); 1531 protected 1531 protected 1532 1532 Real s(final unit="1") "Auxiliary variable"; 1533 1533 constant Modelica.SIunits.Voltage unitVoltage= 1 annotation(HideResult=true); … … 1594 1594 Line(points={{0,51},{0,26}}, color={0,0,255}), 1595 1595 Line(points={{40,20},{40,0}}, color={0,0,255})})); 1596 equation 1596 equation 1597 1597 v = (s*unitCurrent)*(if control then 1 else Ron); 1598 1598 i = (s*unitVoltage)*(if control then Goff else 1); 1599 1599 end IdealOpeningSwitch; 1600 1601 model IdealClosingSwitch "Ideal electrical closer" 1600 1601 model IdealClosingSwitch "Ideal electrical closer" 1602 1602 extends Modelica.Electrical.Analog.Interfaces.OnePort; 1603 parameter SI.Resistance Ron(final min=0) = 1.E-5 1603 parameter SI.Resistance Ron(final min=0) = 1.E-5 1604 1604 "Closed switch resistance" 1605 1605 annotation (Placement(transformation(extent={{-56.6667,10},{-10, 1606 1606 56.6667}}, rotation=0))); 1607 parameter SI.Conductance Goff(final min=0) = 1.E-5 1607 parameter SI.Conductance Goff(final min=0) = 1.E-5 1608 1608 "Opened switch conductance" annotation (Placement(transformation(extent= 1609 1609 {{10,10},{56.6667,56.6667}}, rotation=0))); 1610 Modelica.Blocks.Interfaces.BooleanInput control 1610 Modelica.Blocks.Interfaces.BooleanInput control 1611 1611 "true => p--n connected, false => switch open" annotation (Placement( 1612 1612 transformation( … … 1614 1614 extent={{-20,-20},{20,20}}, 1615 1615 rotation=270))); 1616 protected 1616 protected 1617 1617 Real s(final unit="1") "Auxiliary variable"; 1618 1618 constant Modelica.SIunits.Voltage unitVoltage= 1 annotation(HideResult=true); … … 1678 1678 lineColor={0,0,255}), 1679 1679 Line(points={{0,51},{0,26}}, color={0,0,255})})); 1680 equation 1680 equation 1681 1681 v = (s*unitCurrent)*(if control then Ron else 1); 1682 1682 i = (s*unitVoltage)*(if control then 1 else Goff); 1683 1683 end IdealClosingSwitch; 1684 1685 model ControlledIdealOpeningSwitch "Controlled ideal electrical opener" 1686 1684 1685 model ControlledIdealOpeningSwitch "Controlled ideal electrical opener" 1686 1687 1687 parameter SI.Voltage level=0.5 "Switch level" annotation (Placement( 1688 1688 transformation(extent={{-56.6667,10},{-10,56.6667}}, rotation=0))); … … 1690 1690 annotation (Placement(transformation(extent={{10,10},{56.6667,56.6667}}, 1691 1691 rotation=0))); 1692 parameter SI.Conductance Goff(final min=0) = 1.E-5 1692 parameter SI.Conductance Goff(final min=0) = 1.E-5 1693 1693 "Opened switch conductance" annotation (Placement(transformation(extent={ 1694 1694 {-56.6667,-56.6667},{-10,-10}}, rotation=0))); … … 1697 1697 Interfaces.NegativePin n annotation (Placement(transformation(extent={{90, 1698 1698 -10},{110,10}}, rotation=0))); 1699 Interfaces.Pin control 1699 Interfaces.Pin control 1700 1700 "Control pin: control.v > level switch open, otherwise p--n connected" 1701 1701 annotation (Placement(transformation( … … 1703 1703 extent={{-10,-10},{10,10}}, 1704 1704 rotation=90))); 1705 protected 1705 protected 1706 1706 Real s(final unit="1") "Auxiliary variable"; 1707 1707 constant Modelica.SIunits.Voltage unitVoltage= 1 annotation(HideResult=true); … … 1765 1765 Line(points={{0,96},{0,25}}, color={0,0,255}), 1766 1766 Line(points={{40,20},{40,0}}, color={0,0,255})})); 1767 equation 1767 equation 1768 1768 control.i = 0; 1769 1769 0 = p.i + n.i; … … 1771 1771 p.i = (s*unitVoltage)*(if (control.v > level) then Goff else 1); 1772 1772 end ControlledIdealOpeningSwitch; 1773 1774 model ControlledIdealClosingSwitch "Controlled ideal electrical closer" 1775 1773 1774 model ControlledIdealClosingSwitch "Controlled ideal electrical closer" 1775 1776 1776 parameter SI.Voltage level=0.5 "Switch level" annotation (Placement( 1777 1777 transformation(extent={{-56.6667,10},{-10,56.6667}}, rotation=0))); 1778 parameter SI.Resistance Ron(final min=0) = 1.E-5 1778 parameter SI.Resistance Ron(final min=0) = 1.E-5 1779 1779 "Closed switch resistance" 1780 1780 annotation (Placement(transformation(extent={{10,10},{56.6667,56.6667}}, 1781 1781 rotation=0))); 1782 parameter SI.Conductance Goff(final min=0) = 1.E-5 1782 parameter SI.Conductance Goff(final min=0) = 1.E-5 1783 1783 "Opened switch conductance" annotation (Placement(transformation(extent= 1784 1784 {{-56.6667,-56.6667},{-10,-10}}, rotation=0))); … … 1787 1787 Modelica.Electrical.Analog.Interfaces.NegativePin n annotation (Placement( 1788 1788 transformation(extent={{90,-10},{110,10}}, rotation=0))); 1789 Modelica.Electrical.Analog.Interfaces.Pin control 1789 Modelica.Electrical.Analog.Interfaces.Pin control 1790 1790 "Control pin: control.v > level switch closed, otherwise switch open" 1791 1791 annotation (Placement(transformation( … … 1793 1793 extent={{-10,-10},{10,10}}, 1794 1794 rotation=90))); 1795 protected 1795 protected 1796 1796 Real s(final unit="1") "Auxiliary variable"; 1797 1797 constant Modelica.SIunits.Voltage unitVoltage= 1 annotation(HideResult=true); … … 1854 1854 Line(points={{40,0},{96,0}}, color={0,0,255}), 1855 1855 Line(points={{0,96},{0,25}}, color={0,0,255})})); 1856 equation 1856 equation 1857 1857 control.i = 0; 1858 1858 0 = p.i + n.i; … … 1860 1860 p.i = (s*unitVoltage)*(if (control.v > level) then 1 else Goff); 1861 1861 end ControlledIdealClosingSwitch; 1862 1862 1863 1863 end Ideal; -
trunk/Modelica/Electrical/Analog/Semiconductors.mo
r887 r1024 1 1 within Modelica.Electrical.Analog; 2 package Semiconductors 3 "Semiconductor devices such as diode, MOS and bipolar transistor" 2 package Semiconductors 3 "Semiconductor devices such as diode, MOS and bipolar transistor" 4 4 extends Modelica.Icons.Library; 5 5 import Modelica.SIunits; 6 6 7 7 annotation ( 8 8 Window( … … 44 44 </dl> 45 45 </html>")); 46
