Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5e4baf9
fix merging error. partial keyword retained
AtiyahElsheikh Jul 1, 2020
247c6cc
reorganizing units and substances package icons into Icons directory
AtiyahElsheikh Jul 2, 2020
ef52db1
MSL 4.0.0 instead of 3.2.3
AtiyahElsheikh Mar 28, 2021
cfbe44e
Icons package extends the standard Icon package of MSL 4.0.0
AtiyahElsheikh Mar 28, 2021
aecda8d
notes on the difference between Biochem.Icons and Modelica.Icons.* in…
AtiyahElsheikh Mar 28, 2021
3077aed
revision information
AtiyahElsheikh Mar 28, 2021
4a47866
making use of Modelica.Icons.InterfacesPackage
AtiyahElsheikh Mar 28, 2021
339af08
Making use of Modelica.Icons.* when needed, however preferring Bioche…
AtiyahElsheikh Mar 28, 2021
c662cff
Merge branch 'develop' into Issue14_Icons
AtiyahElsheikh Mar 29, 2021
abcdde8
Back to MSL 3.2.3
AtiyahElsheikh Mar 30, 2021
8f4e786
Move annotations to the correct position in a class (#18)
sjoelund Apr 6, 2021
517a996
Convert to MSL 4.0.0 (#19)
sjoelund Apr 6, 2021
618e47a
Merge pull request #4 from OpenModelica/master
AtiyahElsheikh Apr 6, 2021
e09f1f7
Merge branch 'master' into Issue14_Icons
AtiyahElsheikh Apr 6, 2021
dcfc067
resolve conflict due to BioChem 1.0.3
AtiyahElsheikh Apr 6, 2021
0b54550
resolve conflict due to BioChem V 1.0.3
AtiyahElsheikh Apr 6, 2021
76cf6f5
Merge pull request #5 from OpenModelica/develop
AtiyahElsheikh Apr 6, 2021
288d11e
Merge branch 'develop' of https://github.com/AtiyahElsheikh/BioChem i…
AtiyahElsheikh Apr 6, 2021
77f10cc
Merge pull request #6 from OpenModelica/develop
AtiyahElsheikh Apr 7, 2021
b4dbfd0
Merge branch 'develop' of https://github.com/AtiyahElsheikh/BioChem i…
AtiyahElsheikh Apr 7, 2021
dc8ad22
Let UsersGuide package be the first one
AtiyahElsheikh Apr 7, 2021
9f0b028
Base Icon for almost many components
AtiyahElsheikh Apr 7, 2021
72c1156
Icons for physical units
AtiyahElsheikh Apr 7, 2021
e55679c
removing unused older files
AtiyahElsheikh Apr 9, 2021
835ca8f
Backward incompatible notes added
AtiyahElsheikh Apr 9, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions BioChem/Icons/Base.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
within BioChem.Icons;

partial model Base
annotation(Icon(coordinateSystem(extent = {{-100, 100}, {100, -100}}, preserveAspectRatio = true, grid = {10, 10})),
Documentation(info = "<html><head></head><body><font size=\"5\">A base icon relevant for many components carrying the same annotations. Older annotations had the following attribute:</font><div><br></div><div>
<pre style=\"margin-top: 0px; margin-bottom: 0px;\"><!--StartFragment--><span style=\" font-family:'Courier New'; font-size:12pt; color:#0000ff;\">Diagram</span><span style=\"font-family: 'Courier New'; font-size: 12pt;\">(</span><span style=\" font-family:'Courier New'; font-size:12pt; color:#0000ff;\">coordinateSystem</span><span style=\"font-family: 'Courier New'; font-size: 12pt;\">(extent={{-</span><span style=\" font-family:'Courier New'; font-size:12pt; color:#8b008b;\">100.0</span><span style=\"font-family: 'Courier New'; font-size: 12pt;\">,-</span><span style=\" font-family:'Courier New'; font-size:12pt; color:#8b008b;\">100.0</span><span style=\"font-family: 'Courier New'; font-size: 12pt;\">},{</span><span style=\" font-family:'Courier New'; font-size:12pt; color:#8b008b;\">100.0</span><span style=\"font-family: 'Courier New'; font-size: 12pt;\">,</span><span style=\" font-family:'Courier New'; font-size:12pt; color:#8b008b;\">100.0</span><span style=\"font-family: 'Courier New'; font-size: 12pt;\">}}, preserveAspectRatio=</span><span style=\" font-family:'Courier New'; font-size:12pt; color:#8b0000;\">true</span><span style=\"font-family: 'Courier New'; font-size: 12pt;\">, grid={</span><span style=\" font-family:'Courier New'; font-size:12pt; color:#8b008b;\">10</span><span style=\"font-family: 'Courier New'; font-size: 12pt;\">,</span><span style=\" font-family:'Courier New'; font-size:12pt; color:#8b008b;\">10</span><span style=\"font-family: 'Courier New'; font-size: 12pt;\">}))</span><!--EndFragment--></pre><pre style=\"margin-top: 0px; margin-bottom: 0px;\"><span style=\"font-family: 'Courier New'; font-size: 12pt;\"><br></span></pre><p><span style=\"font-size: 12pt;\"><font face=\"Arial\">Since this produces empty diagram, it is not clear why is it there. So it is there for now.&nbsp;</font></span></p><p><span style=\"font-size: 12pt;\"><font face=\"Arial\">This Icon will also replace Icons.IconBase, which does not seem to be used throughout the library.&nbsp;</font></span></p><pre style=\"margin-top: 0px; margin-bottom: 0px;\"><br></pre></div></body></html>"));


end Base;
3 changes: 2 additions & 1 deletion BioChem/Icons/Example.mo
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ within BioChem.Icons;
partial package Example "Icon for an example model"
annotation(
Icon(coordinateSystem(extent = {{-100, 100}, {100, -100}}, preserveAspectRatio = true, grid = {10, 10}), graphics = {Rectangle(fillColor = {255, 255, 255}, fillPattern = FillPattern.Solid, extent = {{-100, -100}, {80, 50}}), Polygon(fillColor = {255, 255, 255}, fillPattern = FillPattern.Solid, points = {{-100, 50}, {-80, 70}, {100, 70}, {80, 50}, {-100, 50}}), Polygon(fillColor = {255, 255, 255}, fillPattern = FillPattern.Solid, points = {{100, 70}, {100, -80}, {80, -100}, {80, 50}, {100, 70}}), Text(fillColor = {0, 0, 255}, fillPattern = FillPattern.Solid, extent = {{-85, -85}, {65, 35}}, textString = "Example", fontName = "Arial"), Text(fillColor = {255, 0, 0}, extent = {{-120, 73}, {120, 132}}, textString = "%name", fontName = "Arial")}),
Diagram(coordinateSystem(extent = {{-100, 100}, {100, -100}}, preserveAspectRatio = true, grid = {10, 10})));
Diagram(coordinateSystem(extent = {{-100, 100}, {100, -100}}, preserveAspectRatio = true, grid = {10, 10})),
Documentation(info = "<html><head></head><body><font size=\"5\">The implementation of this Icon looks nicer than the implementation of Modelica.Icoms.Example</font></body></html>"));
end Example;
4 changes: 3 additions & 1 deletion BioChem/Icons/IconBase.mo
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
within BioChem.Icons;

model IconBase
extends Modelica.Icons.ObsoleteModel;
annotation(
Diagram(coordinateSystem(extent = {{-100.0, -100.0}, {100.0, 100.0}}, preserveAspectRatio = true, grid = {10, 10})),
Icon(coordinateSystem(extent = {{-100.0, -100.0}, {100.0, 100.0}}, preserveAspectRatio = true, grid = {10, 10}), graphics = {Text(origin = {0.0, -127.1933}, fillPattern = FillPattern.Solid, extent = {{-100.0, -27.1933}, {100.0, 27.1933}}, textString = "%name", fontName = "Arial")}));
Icon(coordinateSystem(extent = {{-100.0, -100.0}, {100.0, 100.0}}, preserveAspectRatio = true, grid = {10, 10}), graphics = {Text(origin = {0.0, -127.1933}, fillPattern = FillPattern.Solid, extent = {{-100.0, -27.1933}, {100.0, 27.1933}}, textString = "%name", fontName = "Arial")}),
Documentation(info = "<html><head></head><body><font size=\"5\">This Icon does not seem to be used throughout the library and is going to be replace by Icons.Base in future versions. The Diagram annotation does not seem to play any rule as it produces only an empty diagram.</font></body></html>"));
end IconBase;
3 changes: 2 additions & 1 deletion BioChem/Icons/Library.mo
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ within BioChem.Icons;
partial package Library
annotation(
Icon(coordinateSystem(extent = {{-100, 100}, {100, -100}}, preserveAspectRatio = true, grid = {10, 10}), graphics = {Rectangle(fillColor = {235, 235, 235}, fillPattern = FillPattern.Solid, extent = {{-100, -100}, {80, 50}}), Polygon(fillColor = {210, 210, 210}, fillPattern = FillPattern.Solid, points = {{-100, 50}, {-80, 70}, {100, 70}, {80, 50}, {-100, 50}}), Polygon(fillColor = {210, 210, 210}, fillPattern = FillPattern.Solid, points = {{100, 70}, {100, -80}, {80, -100}, {80, 50}, {100, 70}})}),
Diagram(coordinateSystem(extent = {{-100, 100}, {100, -100}}, preserveAspectRatio = true, grid = {10, 10})));
Diagram(coordinateSystem(extent = {{-100, 100}, {100, -100}}, preserveAspectRatio = true, grid = {10, 10})),
Documentation(info = "<html><head></head><body><font size=\"5\">This package is somehow equivalent to Modelica.Icons.Package. However, the graphics is nicer and therefore I am leaving it.</font></body></html>"));
end Library;
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
within BioChem.Icons.Substances;

partial package Package
partial package PackageIcon "An icon for a package of substances"
extends BioChem.Icons.Library;
annotation(
Icon(coordinateSystem(extent = {{-100, 100}, {100, -100}}, preserveAspectRatio = true, grid = {10, 10}), graphics = {Ellipse(origin = {-10, -50}, lineColor = {0, 56, 0}, fillColor = {0, 85, 0}, fillPattern = FillPattern.Sphere, extent = {{-60, -20}, {-20, 20}}), Ellipse(origin = {38, -10}, lineColor = {100, 100, 0}, fillColor = {255, 255, 0}, fillPattern = FillPattern.Sphere, extent = {{-28, -60}, {12, -20}}), Ellipse(origin = {-30.0032, -2.75056}, lineColor = {0, 0, 71}, fillColor = {0, 0, 127}, fillPattern = FillPattern.Sphere, extent = {{0.0032, -13.4697}, {40, 26.5303}})}),
Diagram(coordinateSystem(extent = {{-100, 100}, {100, -100}}, preserveAspectRatio = true, grid = {10, 10})));
end Package;
Diagram(coordinateSystem(extent = {{-100, 100}, {100, -100}}, preserveAspectRatio = true, grid = {10, 10})),
Documentation(info = "<html><head></head><body><div><font size=\"5\">This Icon replaces Biocehm.Icon.Package in Biocehm version 1.0.3 and thus it is not backword compatible</font></div></body></html>"));
end PackageIcon;
3 changes: 3 additions & 0 deletions BioChem/Icons/Substances/package.mo
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ within BioChem.Icons;

partial package Substances
extends BioChem.Icons;

annotation(
Documentation(info = "<html><head></head><body><span style=\"font-family: 'MS Shell Dlg 2'; font-size: x-large;\">Within this package, the PackageIcon component replaces Biocehm.Icon.Package from Biocehm version 1.0.3 and thus it is not backword compatible.</span></body></html>"));
end Substances;
2 changes: 1 addition & 1 deletion BioChem/Icons/Substances/package.order
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Package
PackageIcon
8 changes: 8 additions & 0 deletions BioChem/Icons/Units/PackageIcon/package.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
within BioChem.Icons.Units;

partial package PackageIcon "Icon for the Units Package"
extends Icons.Library;
extends Icons.Base;
annotation(
Icon(graphics = {Text(origin = {0, -13.3333}, fillPattern = FillPattern.Solid, extent = {{-100, -86.6667}, {73.34, 43.3333}}, textString = "C", fontName = "Arial"), Text(origin = {0, -10}, fillPattern = FillPattern.Solid, extent = {{6.51, 6.81}, {50, 53.19}}, textString = "o", fontName = "Arial")}));
end PackageIcon;
Empty file.
5 changes: 5 additions & 0 deletions BioChem/Icons/Units/TypeBase.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
within BioChem.Icons.Units;

type TypeBase
extends Icons.Base;
end TypeBase;
7 changes: 7 additions & 0 deletions BioChem/Icons/Units/TypeIntegerBase.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
within BioChem.Icons.Units;

type TypeIntegerBase
extends Modelica.Icons.TypeInteger;
extends TypeBase;
annotation(Documentation(info = "<html><head></head><body>This model is used for physical units<div><ul><li>making use of Modelica.Icons.TypeReal which largely resemble the existing annotation&nbsp;</li><li>keeping the same additional or different existing annotation &nbsp;&nbsp;</li></ul></div></body></html>"));
end TypeIntegerBase;
7 changes: 7 additions & 0 deletions BioChem/Icons/Units/TypeRealBase.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
within BioChem.Icons.Units;

type TypeRealBase
extends Modelica.Icons.TypeReal;
extends TypeBase;
annotation(Documentation(info = "<html><head></head><body>This model is used for physical units<div><ul><li>making use of Modelica.Icons.TypeReal which largely resemble the existing annotation&nbsp;</li><li>keeping the same additional or different existing annotation &nbsp;&nbsp;</li></ul></div></body></html>"));
end TypeRealBase;
5 changes: 5 additions & 0 deletions BioChem/Icons/Units/package.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
within BioChem.Icons;

partial package Units "Icon for the Units Package"

end Units;
4 changes: 4 additions & 0 deletions BioChem/Icons/Units/package.order
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
TypeBase
TypeIntegerBase
TypeRealBase
PackageIcon
6 changes: 0 additions & 6 deletions BioChem/Icons/UnitsPackage.mo

This file was deleted.

18 changes: 1 addition & 17 deletions BioChem/Icons/package.mo
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,7 @@ within BioChem;

package Icons "Icons"
extends Modelica.Icons.IconsPackage;
partial package Library
annotation(Icon(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10}), graphics={Rectangle(fillColor={235,235,235}, fillPattern=FillPattern.Solid, extent={{-100,-100},{80,50}}),Polygon(fillColor={210,210,210}, fillPattern=FillPattern.Solid, points={{-100,50},{-80,70},{100,70},{80,50},{-100,50}}),Polygon(fillColor={210,210,210}, fillPattern=FillPattern.Solid, points={{100,70},{100,-80},{80,-100},{80,50},{100,70}})}), Diagram(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})),
Documentation(info = "<html><head></head><body><b>Remark </b>This package is somehow equivalent to Modelica.Icons.Package. However, the graphics is nicer and therefore I am leaving it.</body></html>"));
end Library;

model IconBase
annotation(Diagram(coordinateSystem(extent={{-100.0,-100.0},{100.0,100.0}}, preserveAspectRatio=true, grid={10,10})), Icon(coordinateSystem(extent={{-100.0,-100.0},{100.0,100.0}}, preserveAspectRatio=true, grid={10,10}), graphics={Text(origin={0.0,-127.1933}, fillPattern=FillPattern.Solid, extent={{-100.0,-27.1933},{100.0,27.1933}}, textString="%name", fontName="Arial")}));
end IconBase;

partial package Example "Icon for an example model"
annotation(Icon(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10}), graphics={Rectangle(fillColor={255,255,255}, fillPattern=FillPattern.Solid, extent={{-100,-100},{80,50}}),Polygon(fillColor={255,255,255}, fillPattern=FillPattern.Solid, points={{-100,50},{-80,70},{100,70},{80,50},{-100,50}}),Polygon(fillColor={255,255,255}, fillPattern=FillPattern.Solid, points={{100,70},{100,-80},{80,-100},{80,50},{100,70}}),Text(fillColor={0,0,255}, fillPattern=FillPattern.Solid, extent={{-85,-85},{65,35}}, textString="Example", fontName="Arial"),Text(fillColor={255,0,0}, extent={{-120,73},{120,132}}, textString="%name", fontName="Arial")}), Diagram(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})),
Documentation(info = "<html><head></head><body>The implementation of this Icon looks nicer than the implementation of Modelica.Icoms.Example.</body></html>"));
end Example;





annotation(Documentation(info="<html>
<h1>Icons</h1>
This package contains icons that are used in the library.
Expand Down
3 changes: 2 additions & 1 deletion BioChem/Icons/package.order
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Library
IconBase
Example
UnitsPackage
Substances
Units
Base
2 changes: 1 addition & 1 deletion BioChem/Substances/package.mo
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
within BioChem;

package Substances "Reaction nodes"
extends BioChem.Icons.Substances.Package;
extends BioChem.Icons.Substances.PackageIcon;

annotation(
Documentation(info = "<html>
Expand Down
2 changes: 1 addition & 1 deletion BioChem/Substances/package.order
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Substance
BoundarySubstance
AmbientSubstance
SignalSubstance
SignalSubstance
55 changes: 36 additions & 19 deletions BioChem/Units/package.mo
Original file line number Diff line number Diff line change
@@ -1,30 +1,47 @@
within BioChem;

package Units "Units used in BioChem"
extends BioChem.Icons.UnitsPackage;
annotation(Documentation(info="<html>
extends BioChem.Icons.Units.PackageIcon;
type VolumetricReactionRate =
Icons.Units.TypeRealBase(final quantity="Volumetric reaction rate",final unit = "mol/(s.l)")
"Volumetric reaction rate [mol/(l.s)}" ;
type VolumeChangeConstant = Icons.Units.TypeRealBase(quantity = "Volume change constant", unit = "l/s") "Volume change constant [1/s]" ;
type Volume "Volume [l]"
extends Modelica.Units.NonSI.Volume_litre;
extends Icons.Units.TypeBase;
end Volume;
type StoichiometricCoefficient = Icons.Units.TypeRealBase(quantity = "Stoichiometric coefficient", unit = "1") "Stoichiometric coefficient";
type ReactionRate = Icons.Units.TypeRealBase(quantity = "Reaction rate", unit = "mol/s") "Reaction rate [mos/s]";
type ReactionCoefficient = Icons.Units.TypeRealBase(quantity = "Reaction coefficient", unit = "1") "Reaction coefficient" ;
type Pressure
extends Modelica.Units.SI.Pressure;
extends Icons.Units.TypeBase;
end Pressure;
type MolarFlowRate = Icons.Units.TypeRealBase(quantity = "Molar flow rate", unit = "mol/s") "Molar flow rate [mol/s]" ;
type IonicCharge = Icons.Units.TypeIntegerBase(quantity = "Ionic charge", unit = "1") "Ionic charge";
type DilutionRate = Icons.Units.TypeRealBase(quantity = "Dilution rate", unit = "/s") "Dilution rate [?]" ;
type Concentration = Icons.Units.TypeRealBase(quantity = "Concentration", unit = "mol/l", min = 0) "Concentration [mol/l]" ;
type Celcius
extends Modelica.Units.NonSI.Temperature_degC ;
extends Icons.Units.TypeBase;
end Celcius;
type AmountOfSubstance = Icons.Units.TypeRealBase(quantity = "AmountOfSubstance", unit = "mol", min = 0) "Amount of substance [mol]" ;
type EquilibriumCoefficient = Icons.Units.TypeRealBase(quantity = "Equilibrium coefficient", unit = "1") "";

annotation(
Documentation(info = "<html>
<h1>Units</h1>
<p>
This pace contains definitions of units that are common in biochemical models.
</p>
</html>", revisions=""));
type VolumetricReactionRate= Real(quantity="Volumetric reaction rate", unit="mol/(s.l)") annotation(Icon(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})), Diagram(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})));
type VolumeChangeConstant= Real(quantity="Volume change constant", unit="l/s") annotation(Icon(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})), Diagram(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})));
type Volume= Modelica.Units.NonSI.Volume_litre annotation(Icon(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})), Diagram(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})));
type StoichiometricCoefficient= Real(quantity="Stoichiometric coefficient", unit="1") "" annotation(Icon(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})), Diagram(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})));
type ReactionRate= Real(quantity="Reaction rate", unit="mol/s") annotation(Icon(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})), Diagram(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})));
type ReactionCoefficient= Real(quantity="Reaction coefficient", unit="1") annotation(Icon(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})), Diagram(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})));
type Pressure= Modelica.Units.SI.Pressure annotation(Icon(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})), Diagram(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})));
type MolarFlowRate= Real(quantity="Molar flow rate", unit="mol/s") annotation(Icon(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})), Diagram(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})));
type IonicCharge= Integer(quantity="Ionic charge", unit="1") annotation(Icon(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})), Diagram(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})));
type DilutionRate= Real(quantity="Dilution rate", unit="/s") annotation(Icon(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})), Diagram(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})));
type Concentration= Real(quantity="Concentration", unit="mol/l", min=0) annotation(Icon(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})), Diagram(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})));
type Celcius= Modelica.Units.NonSI.Temperature_degC annotation(Icon(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})), Diagram(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})));
type AmountOfSubstance= Real(quantity="AmountOfSubstance", unit="mol", min=0) annotation(Icon(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})), Diagram(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})));
type EquilibriumCoefficient= Real(quantity="Equilibrium coefficient", unit="1") "" annotation(Icon(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})), Diagram(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})));
annotation(Documentation(info="<html>
</html>", revisions = ""),
Icon(coordinateSystem(extent = {{-100, 100}, {100, -100}}, preserveAspectRatio = true, grid = {10, 10}), graphics = {Text(origin = {0, -13.3333}, fillPattern = FillPattern.Solid, extent = {{-100, -86.6667}, {73.34, 43.3333}}, textString = "C", fontName = "Arial"), Text(origin = {0, -10}, fillPattern = FillPattern.Solid, extent = {{6.51, 6.81}, {50, 53.19}}, textString = "o", fontName = "Arial")}),
Diagram(coordinateSystem(extent = {{-100, 100}, {100, -100}}, preserveAspectRatio = true, grid = {10, 10})));
annotation(
Documentation(info = "<html>
<h1>Units</h1>
<p>
This pace contains definitions of units that are common in biochemical models.
</p>
</html>", revisions=""), Icon(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10}), graphics={Text(origin={0,-13.3333}, fillPattern=FillPattern.Solid, extent={{-100,-86.6667},{73.34,43.3333}}, textString="C", fontName="Arial"),Text(origin={0,-10}, fillPattern=FillPattern.Solid, extent={{6.51,6.81},{50,53.19}}, textString="o", fontName="Arial")}), Diagram(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})));
</html>", revisions = ""));
end Units;
2 changes: 1 addition & 1 deletion BioChem/package.order
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
UsersGuide
Math
Units
Substances
Expand All @@ -7,4 +8,3 @@ Constants
Compartments
Icons
Examples
UsersGuide