From dec597794aadb62a9f61d161a6bd39cee53e0e93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Matej=C3=A1k?= Date: Fri, 17 Nov 2023 21:59:35 +0100 Subject: [PATCH] Set working version 1.5.0-alpha --- Chemical/package.mo | 37 ++++++++++++++++--------------------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/Chemical/package.mo b/Chemical/package.mo index b02a7c2..5ce456c 100644 --- a/Chemical/package.mo +++ b/Chemical/package.mo @@ -236,7 +236,6 @@ package Chemical "Physical Chemistry"

Package Chemical is a modelica package for Electro-Chemical processes that is developed from Physiolibrary modelica implementation, see http://www.physiolibrary.org. It provides connectors and model components fitted for electro-chemical models.

")); end UsersGuide; - extends Modelica.Icons.Package; package Components "Chemical Components" @@ -923,8 +922,7 @@ package Chemical "Physical Chemistry" "Quaternary macromolecule form defined by all its subunits" extends Icons.Speciation; - replaceable package stateOfMatter = Interfaces.Incompressible constrainedby - Interfaces.StateOfMatter + replaceable package stateOfMatter = Interfaces.Incompressible constrainedby Interfaces.StateOfMatter "Substance model to translate data into substance properties" annotation (choicesAllMatching = true); @@ -1106,8 +1104,7 @@ package Chemical "Physical Chemistry" model Stream "Flow of whole solution" extends Interfaces.ConditionalSolutionFlow; - replaceable package stateOfMatter = Interfaces.Incompressible constrainedby - Interfaces.StateOfMatter + replaceable package stateOfMatter = Interfaces.Incompressible constrainedby Interfaces.StateOfMatter "Substance model to translate data into substance properties" annotation (choicesAllMatching = true); @@ -2176,8 +2173,8 @@ package Chemical "Physical Chemistry" - Modelica.Blocks.Interfaces.RealInput molalityInput(start=Molality,final unit="mol/kg")=n/KG if - useMolalityInput + Modelica.Blocks.Interfaces.RealInput molalityInput(start=Molality,final unit="mol/kg")=n/KG + if useMolalityInput annotation (HideResult=true, Placement(transformation(extent={{-120,-20},{-80,20}}))); Modelica.Units.SI.AmountOfSubstance n "Current amount of the substance"; @@ -2259,8 +2256,8 @@ package Chemical "Physical Chemistry" parameter Modelica.Units.SI.ElectricPotential ElectricPotential=0 "Electric potential"; - Modelica.Blocks.Interfaces.RealInput molarConcentrationInput(start=MolarConcentration,final unit="mol/m3", displayUnit="mol/l")=n/L if - useMolarityInput + Modelica.Blocks.Interfaces.RealInput molarConcentrationInput(start=MolarConcentration,final unit="mol/m3", displayUnit="mol/l")=n/L + if useMolarityInput annotation (HideResult=true, Placement(transformation(extent={{-120,-20},{-80,20}}))); Modelica.Units.SI.AmountOfSubstance n "Current amount of the substance"; @@ -2342,8 +2339,8 @@ package Chemical "Physical Chemistry" Modelica.Blocks.Interfaces.RealInput moleFractionInput( final unit="mol/mol", - start=MoleFraction)=x if - useMoleFractionInput annotation (HideResult=true, Placement(transformation( + start=MoleFraction)=x + if useMoleFractionInput annotation (HideResult=true, Placement(transformation( extent={{-120,-20},{-80,20}}))); equation @@ -2405,8 +2402,8 @@ package Chemical "Physical Chemistry" "Is electro-chemical potential of the substance an input?" annotation(Evaluate=true, HideResult=true, choices(checkBox=true),Dialog(group="Conditional inputs")); - Modelica.Blocks.Interfaces.RealInput uInput(final unit="J/mol")=port_a.u if - usePotentialInput annotation (HideResult=true, Placement(transformation( + Modelica.Blocks.Interfaces.RealInput uInput(final unit="J/mol")=port_a.u + if usePotentialInput annotation (HideResult=true, Placement(transformation( extent={{-120,-20},{-80,20}}))); Interfaces.SubstancePort_a port_a @@ -2675,8 +2672,8 @@ package Chemical "Physical Chemistry" Modelica.Blocks.Interfaces.RealInput bufferValueInput( final unit="mol/mol", - start=BufferValue)=bufferValue if - useBufferValueInput annotation (HideResult=true, Placement(transformation( + start=BufferValue)=bufferValue + if useBufferValueInput annotation (HideResult=true, Placement(transformation( extent={{-120,-20},{-80,20}}))); Real xref; @@ -2745,8 +2742,7 @@ package Chemical "Physical Chemistry" outer Modelica.Fluid.System system "System wide properties"; replaceable package stateOfMatter = - Chemical.Interfaces.Incompressible constrainedby - Chemical.Interfaces.StateOfMatter + Chemical.Interfaces.Incompressible constrainedby Chemical.Interfaces.StateOfMatter "Substance model to translate data into substance properties" annotation (choices( choice(redeclare package stateOfMatter = @@ -4886,8 +4882,8 @@ end solution_temperature_; annotation (HideResult=true, Dialog(enable=not useSubstanceFlowInput)); - Modelica.Blocks.Interfaces.RealInput substanceFlow(start=SubstanceFlow, final unit="mol/s")=q if - useSubstanceFlowInput + Modelica.Blocks.Interfaces.RealInput substanceFlow(start=SubstanceFlow, final unit="mol/s")=q + if useSubstanceFlowInput annotation (HideResult=true, Placement(transformation( extent={{-20,-20},{20,20}}, @@ -5132,10 +5128,9 @@ end solution_temperature_; ")); end SubstanceMolarityPort_b; end Interfaces; - annotation ( preferredView="info", -version="1.4.0", +version="1.5.0-alpha", versionDate="2021-01-27", dateModified = "2021-01-27 11:10:41Z", conversion(