Skip to content

Commit

Permalink
cosmetics in MultiPhase
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.modelica.org/projects/Modelica/trunk@2861 7ce873d0-865f-4ce7-a662-4bb36ea78beb
  • Loading branch information
AHaumer authored and AHaumer committed Aug 26, 2009
1 parent 20dfaf7 commit 7091c73
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
35 changes: 21 additions & 14 deletions Modelica/Electrical/MultiPhase.mo
Expand Up @@ -458,8 +458,8 @@ This package contains basic analog electrical multiphase components.
Modelica.Electrical.Analog.Interfaces.NegativePin pin_n
annotation (Placement(transformation(extent={{90,-10},{110,10}},
rotation=0)));
annotation (Icon(coordinateSystem(preserveAspectRatio=false, extent={{
-100,-100},{100,100}}), graphics={
annotation (Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100,
-100},{100,100}}), graphics={
Text(
extent={{-150,60},{150,120}},
textString="%name",
Expand Down Expand Up @@ -503,8 +503,8 @@ Connects all pins of plug_p to pin_n, thus establishing a so-called star-connect
Interfaces.NegativePlug plug_n(final m=m)
annotation (Placement(transformation(extent={{90,-10},{110,10}},
rotation=0)));
annotation (Icon(coordinateSystem(preserveAspectRatio=false, extent={{
-100,-100},{100,100}}), graphics={
annotation (Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100,
-100},{100,100}}), graphics={
Text(
extent={{-150,60},{150,120}},
lineColor={0,0,255},
Expand Down Expand Up @@ -593,8 +593,8 @@ Connects pin <i>k</i> of plug_p to pin_p, leaving the other pins of plug_p uncon
Modelica.Electrical.Analog.Interfaces.NegativePin pin_n
annotation (Placement(transformation(extent={{10,-10},{30,10}},
rotation=0)));
annotation (Icon(coordinateSystem(preserveAspectRatio=false, extent={{
-100,-100},{100,100}}), graphics={
annotation (Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100,
-100},{100,100}}), graphics={
Text(
extent={{-150,100},{150,40}},
textString="%name",
Expand Down Expand Up @@ -836,8 +836,8 @@ Contains m inductors (Modelica.Electrical.Analog.Basic.Inductor)
final Linf=Linf)
annotation (Placement(transformation(extent={{-10,-10},{10,10}},
rotation=0)));
annotation (Icon(coordinateSystem(preserveAspectRatio=false, extent={{
-100,-100},{100,100}}), graphics={
annotation (Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100,
-100},{100,100}}), graphics={
Ellipse(extent={{-60,-15},{-30,15}}, lineColor={0,0,255}),
Ellipse(extent={{-30,-15},{0,15}}, lineColor={0,0,255}),
Ellipse(extent={{0,-15},{30,15}}, lineColor={0,0,255}),
Expand Down Expand Up @@ -942,7 +942,9 @@ Each element of the array of saturatingInductors is only dependent on the curren
Contains m transformers (Modelica.Electrical.Analog.Basic.Transformer)
</p>
</HTML>"),
Diagram(graphics));
Diagram(coordinateSystem(preserveAspectRatio=false, extent={{-100,-100},
{100,100}}),
graphics));
equation

connect(plug_p1.pin, transformer.p1) annotation (Line(
Expand Down Expand Up @@ -1100,8 +1102,8 @@ Contains m variable conductors (Modelica.Electrical.Analog.Basic.VariableConduct
Modelica.Electrical.Analog.Basic.VariableCapacitor variableCapacitor[m](final Cmin = Cmin)
annotation (Placement(transformation(extent={{-10,-10},{10,10}},
rotation=0)));
annotation (Icon(coordinateSystem(preserveAspectRatio=false, extent={{
-100,-100},{100,100}}), graphics={
annotation (Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100,
-100},{100,100}}), graphics={
Line(points={{0,90},{0,30}}, color={0,0,255}),
Text(
extent={{-150,-100},{150,-40}},
Expand Down Expand Up @@ -1156,8 +1158,8 @@ Cmin is a parameter with default value Modelica.Constants.eps.
= Lmin)
annotation (Placement(transformation(extent={{-10,-10},{10,10}},
rotation=0)));
annotation (Icon(coordinateSystem(preserveAspectRatio=false, extent={{
-100,-100},{100,100}}), graphics={
annotation (Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100,
-100},{100,100}}), graphics={
Text(
extent={{-150,-100},{150,-40}},
textString="%name",
Expand Down Expand Up @@ -1582,8 +1584,13 @@ Contains m ideal diodes (Modelica.Electrical.Analog.Ideal.IdealDiode).
model IdealTransformer "Multiphase ideal transformer"
extends Interfaces.FourPlug;
parameter Real n[m](start=fill(1, m)) "Turns ratio";
parameter Boolean considerMagnetization=false;
parameter SIunits.Inductance Lm1[m](start=fill(1,m))
"Magnetization inductances w.r.t. primary side";
Modelica.Electrical.Analog.Ideal.IdealTransformer idealTransformer[m](
final n=n) annotation (Placement(transformation(extent={{-10,-10},{10,
final n=n,
each final considerMagnetization=considerMagnetization,
final Lm1=Lm1) annotation (Placement(transformation(extent={{-10,-10},{10,
10}}, rotation=0)));
annotation (
Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100,-100},{
Expand Down
2 changes: 1 addition & 1 deletion Modelica/package.mo
Expand Up @@ -4905,7 +4905,7 @@ preferredView="info",
version="3.1",
versionBuild=3,
versionDate="2009-08-14",
dateModified = "2009-08-26 13:35:35Z",
dateModified = "2009-08-26 13:35:40Z",
revisionId="$Id:: $",
conversion(
noneFromVersion="3.0.1",
Expand Down

0 comments on commit 7091c73

Please sign in to comment.