Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
326e8fc
MSL version 3.2.3
AtiyahElsheikh Apr 8, 2020
bef097f
separate Interfaces/Substances/package.mo into separate components
AtiyahElsheikh Apr 10, 2020
ee28d9a
separate the components within the package Interfaces.Compartments
AtiyahElsheikh Apr 11, 2020
e3849d5
Decompose the package BioChem.Interfaces.Nodes into separate components
AtiyahElsheikh Apr 12, 2020
90829ec
Separate all components within Biochem/Interfaces/Reactions/package.m…
AtiyahElsheikh Apr 26, 2020
2b4e01a
Decompose package BioChem/Interfaces/Reactions/Basics/package.mo into…
AtiyahElsheikh May 5, 2020
41e9893
Separate BioChem/Interfaces/Reactions/Modifiers/package.mo into separ…
AtiyahElsheikh May 5, 2020
8428c50
remove extra spaces from several modified package.mo
AtiyahElsheikh May 5, 2020
f94a7be
keep model declaration using partial or without partial identical to …
AtiyahElsheikh May 5, 2020
17c8e40
package.order files to be included in the repository
AtiyahElsheikh May 5, 2020
7ca9569
decompose BioChem/Compartments/package.mo into separate components
AtiyahElsheikh May 5, 2020
ee3a0aa
decompose BioChem/Substances/package.mo into separate components
AtiyahElsheikh May 6, 2020
d8ae2b4
Separate the Icons package within BioChem/package.mo into separate di…
AtiyahElsheikh May 6, 2020
4f5c259
Separate Biochem.Math package into a separate directory
AtiyahElsheikh May 6, 2020
5b78551
Separate top models within the Biochem.Examples package
AtiyahElsheikh May 10, 2020
b265970
Separate all subpackages within Biochem.Examples into separate *.mo f…
AtiyahElsheikh May 10, 2020
04d9fdb
Separate Biochem.Reactions.MichaelisMenten into separate components
AtiyahElsheikh May 30, 2020
24b8730
separate Biochem.Reactions.MassAction.Reversible into separate compon…
AtiyahElsheikh May 30, 2020
7c767d1
decompose package Reactions.MassAction.Irreversible into separate com…
AtiyahElsheikh May 30, 2020
779af7d
Decompose Reactions.Inhibition into separate components
AtiyahElsheikh May 30, 2020
20cbf31
decompoase Reactions.FastEquilibrium into separate components
AtiyahElsheikh May 30, 2020
c5f60bd
Decompose package Reactions into separate components
AtiyahElsheikh May 30, 2020
b8b39a4
Merge pull request #1 from OpenModelica/develop
AtiyahElsheikh Jun 2, 2020
1dcaade
Merge branch 'develop' of https://github.com/AtiyahElsheikh/BioChem i…
AtiyahElsheikh Jun 2, 2020
898a667
ignore backup files
AtiyahElsheikh Jun 2, 2020
1476eb1
annotations for version 1.0.2
AtiyahElsheikh Jun 2, 2020
1173c0b
Revert "ignore backup files"
AtiyahElsheikh Jun 2, 2020
44f1429
remove backup files
AtiyahElsheikh Jun 2, 2020
b37127f
announcing version 1.0.2
AtiyahElsheikh Jun 2, 2020
b3131bf
1.0.2: major components in separate *.mo files / MSL 3.2.3 (#13)
AtiyahElsheikh Jun 2, 2020
3fea742
Merge branch 'master' into master
AtiyahElsheikh Jun 2, 2020
f61873b
Merge pull request #2 from OpenModelica/master
AtiyahElsheikh Jun 2, 2020
0db6bef
missing partial declaration
AtiyahElsheikh Jun 9, 2020
475ccbd
missing "partial" declaration
AtiyahElsheikh Jun 9, 2020
8f33eb6
"partial" missing
AtiyahElsheikh Jun 9, 2020
850f2c4
Update ReadMe (MSL library version)
AtiyahElsheikh Jun 10, 2020
0f94f54
Merge pull request #3 from OpenModelica/master
AtiyahElsheikh Jun 22, 2020
b1c79e0
Merge branch 'master' into develop
AtiyahElsheikh Jun 22, 2020
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
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
6 changes: 3 additions & 3 deletions BioChem/Compartments/Compartment.mo
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
within BioChem.Compartments;

model Compartment "Default compartment (constant volume)"
extends BioChem.Interfaces.Compartments.Compartment(V(stateSelect=StateSelect.prefer));
equation
der(V)=0 "Compartment volume is constant";
annotation(Documentation(info="<html>
<h1>Compartment</h1>
<p>
Default compartment model.
</p>
</html>", revisions=""), Icon(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10}), graphics={Text(fillColor={0,85,0}, fillPattern=FillPattern.Solid, extent={{-100,-170},{100,-120}}, textString="%name", fontName="Arial"),Rectangle(lineColor={0,85,0}, fillColor={199,199,149}, fillPattern=FillPattern.Solid, lineThickness=10, extent={{-110,-110},{110,110}}, radius=20)}), Diagram(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})));
extends BioChem.Interfaces.Compartments.Compartment(V(stateSelect=StateSelect.prefer));
equation
der(V)=0 "Compartment volume is constant";
end Compartment;
2 changes: 1 addition & 1 deletion BioChem/Examples/package.mo
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
within BioChem;

package Examples "Some examples of BioChem models"
extends Icons.Library;
extends Modelica.Icons.ExamplesPackage;

model InsulinSignaling_Sedaghat "Metabolic insulin signaling pathway in rat adipocytes"
extends BioChem.Compartments.Compartment;
Expand Down
8 changes: 8 additions & 0 deletions BioChem/Icons/Substances/Package/package.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
within BioChem.Icons.Substances;

partial package Package
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;
Empty file.
5 changes: 5 additions & 0 deletions BioChem/Icons/Substances/package.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
within BioChem.Icons;

partial package Substances
extends BioChem.Icons;
end Substances;
1 change: 1 addition & 0 deletions BioChem/Icons/Substances/package.order
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Package
6 changes: 6 additions & 0 deletions BioChem/Icons/UnitsPackage.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
within BioChem.Icons;

partial package UnitsPackage
extends Icons.Library;
annotation(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})));
end UnitsPackage;
13 changes: 9 additions & 4 deletions BioChem/Icons/package.mo
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
within BioChem;

package Icons "Icons"
extends Library;
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})));
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})));
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.
</html>", revisions=""));
</html>", revisions= "<html><head></head><body><ul><li>March 2021, little improvements and additional reuse of Modelica.Icons, by Atiyah Elsheikh (Mathemodica.com)</li></ul></body></html>"));
end Icons;
2 changes: 2 additions & 0 deletions BioChem/Icons/package.order
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Library
IconBase
Example
UnitsPackage
Substances
1 change: 1 addition & 0 deletions BioChem/Interfaces/Reactions/Basics/FourSubstrates.mo
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ partial model FourSubstrates
BioChem.Interfaces.Nodes.SubstrateConnector s2 annotation(Placement(transformation(origin={-90,-35}, extent={{-10,-10},{10,10}}), iconTransformation(origin={-112.5,-37.5}, extent={{-12.5,-12.5},{12.5,12.5}})));
BioChem.Interfaces.Nodes.SubstrateConnector s3 annotation(Placement(transformation(origin={-90,25}, extent={{-10,-10},{10,10}}), iconTransformation(origin={-112.5,37.5}, extent={{-12.5,-12.5},{12.5,12.5}})));
BioChem.Interfaces.Nodes.SubstrateConnector s1 annotation(Placement(transformation(origin={-87.5,87.5}, extent={{-10,-10},{10,10}}), iconTransformation(origin={-112.5,87.5}, extent={{-12.5,-12.5},{12.5,12.5}})));
annotation(Icon(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10}), graphics={Line(points={{-100,87.5},{-62.5,87.5},{-50,0}}, color={170,0,0}, smooth=Smooth.Bezier),Line(points={{-100,-87.5},{-62.5,-87.5},{-50,0}}, color={170,0,0}, smooth=Smooth.Bezier),Line(points={{-100,-37.5},{-62.5,-37.5},{-50,0}}, color={170,0,0}, smooth=Smooth.Bezier),Line(points={{-100,37.5},{-62.5,37.5},{-50,0}}, color={170,0,0}, smooth=Smooth.Bezier)}), Diagram(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})));
end FourSubstrates;
2 changes: 1 addition & 1 deletion BioChem/Interfaces/Reactions/Basics/OneSubstrate.mo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
within BioChem.Interfaces.Reactions.Basics;

partial model OneSubstrate "SubstanceConnector for one substrate"
annotation(Icon(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10}), graphics={Line(points={{-50,0},{-100,0}}, color={170,0,0}, arrowSize=25)}), Diagram(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})));
BioChem.Interfaces.Nodes.SubstrateConnector s1 annotation(Placement(transformation(origin={-80,0}, extent={{-10,-10},{10,10}}), iconTransformation(origin={-112.5,-2.22045e-16}, extent={{-12.5,-12.5},{12.5,12.5}})));
annotation(Icon(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10}), graphics={Line(points={{-50,0},{-100,0}}, color={170,0,0}, arrowSize=25)}), Diagram(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})));
end OneSubstrate;
2 changes: 1 addition & 1 deletion BioChem/Interfaces/Reactions/Modifiers/ModifierForward.mo
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
within BioChem.Interfaces.Reactions.Modifiers;

partial model ModifierForward "Basics for a forward modifier in a reaction edge"
annotation(Diagram(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})), Icon(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10}), graphics={Line(points={{0,56.25},{0,6.25}}, color={0,0,255}, arrow={Arrow.None,Arrow.Open}, arrowSize=25)}));
BioChem.Interfaces.Nodes.ModifierConnector mF1 annotation(Placement(transformation(origin={1.11022e-16,90}, extent={{-10,-10},{10,10}}), iconTransformation(origin={-1.5099e-14,90}, extent={{-20,-20},{20,20}})));
equation
mF1.r=0;
annotation(Diagram(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})), Icon(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10}), graphics={Line(points={{0,56.25},{0,6.25}}, color={0,0,255}, arrow={Arrow.None,Arrow.Open}, arrowSize=25)}));
end ModifierForward;
2 changes: 1 addition & 1 deletion BioChem/Interfaces/Reactions/Uui.mo
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ partial model Uui "Uni-Uni irreversible reaction"
extends BioChem.Interfaces.Reactions.Basics.OneProduct;
BioChem.Units.StoichiometricCoefficient nS1=1 "Stoichiometric coefficient for the substrate";
BioChem.Units.StoichiometricCoefficient nP1=1 "Stoichiometric coefficient for the product";
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})));
equation
s1.r=nS1*rr;
p1.r=-nP1*rr;
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})));
end Uui;
2 changes: 1 addition & 1 deletion BioChem/Interfaces/Reactions/Uur.mo
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ partial model Uur "Uni-Uni reversible reaction"
extends BioChem.Interfaces.Reactions.Basics.OneProduct;
BioChem.Units.StoichiometricCoefficient nS1=1 "Stoichiometric coefficient for the substrate";
BioChem.Units.StoichiometricCoefficient nP1=1 "Stoichiometric coefficient for the product";
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})));
equation
s1.r=nS1*rr;
p1.r=-nP1*rr;
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})));
end Uur;
6 changes: 3 additions & 3 deletions BioChem/Interfaces/package.mo
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
within BioChem;
package Interfaces "Connection points and icons used in the BioChem package"
extends Icons.Library;
annotation(Icon(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})), Documentation(info="<html>
extends Modelica.Icons.InterfacesPackage;
annotation(Icon(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})), Documentation(info = "<html>
<h1>Interfaces</h1>
This package contains partial models that can be used as building blocks for components such as different types of substances, compartments, and reactions.
The models are designed to make it easy to create new customized components as well as to make these components possible to translate to and from SBML.<br>
Expand All @@ -13,5 +13,5 @@ The package contains the following packages: <br>
<li>Substances - Basic substance types.</li>
</ul>

</html>", revisions=""), Diagram(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})));
</html>", revisions = "<html><head></head><body><ul><li>March 2021, Making use of Modelica.Icons.ExamplesPackage, &nbsp;Atiyah Elsheikh (Mathemodica.com)</li></ul></body></html>"), Diagram(coordinateSystem(extent={{-100,100},{100,-100}}, preserveAspectRatio=true, grid={10,10})));
end Interfaces;
12 changes: 6 additions & 6 deletions BioChem/Math/package.mo
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ package Math
end factorial;

function sec "secant trigonometric function"
input Modelica.SIunits.Angle alpha "input angle";
input Modelica.Units.SI.Angle alpha "input angle";
output Real y "output value";
algorithm
y := 1 / cos(alpha);
Expand All @@ -34,7 +34,7 @@ package Math
end sec;

function cot "Cotangent trigonometric function"
input Modelica.SIunits.Angle alpha "input angle";
input Modelica.Units.SI.Angle alpha "input angle";
output Real y "output value";
algorithm
y := 1 / tan(alpha);
Expand All @@ -44,7 +44,7 @@ package Math
end cot;

function csc "cosecant trigonometric function"
input Modelica.SIunits.Angle alpha "input angle";
input Modelica.Units.SI.Angle alpha "input angle";
output Real y "output value";
algorithm
y := 1 / sin(alpha);
Expand All @@ -54,7 +54,7 @@ package Math
end csc;

function sech "hyperbolic secant trigonometric function"
input Modelica.SIunits.Angle alpha "input angle";
input Modelica.Units.SI.Angle alpha "input angle";
output Real y "output value";
algorithm
y := 1 / cosh(alpha);
Expand All @@ -64,7 +64,7 @@ package Math
end sech;

function csch "hyperbolic cosecant trigonometric function"
input Modelica.SIunits.Angle alpha "input angle";
input Modelica.Units.SI.Angle alpha "input angle";
output Real y "output value";
algorithm
y := 1 / sinh(alpha);
Expand All @@ -74,7 +74,7 @@ package Math
end csch;

function coth "hyperbolic cotangent trigonometric function"
input Modelica.SIunits.Angle alpha "input angle";
input Modelica.Units.SI.Angle alpha "input angle";
output Real y "output value";
algorithm
y := 1 / tanh(alpha);
Expand Down
Loading