Physiolibrary.Chemical.Examples

Examples that demonstrate usage of the Pressure flow components

Information

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Package Content

Name Description
Physiolibrary.Chemical.Examples.SimpleReaction SimpleReaction  
Physiolibrary.Chemical.Examples.SimpleReaction2 SimpleReaction2  
Physiolibrary.Chemical.Examples.ExothermicReaction ExothermicReaction  
Physiolibrary.Chemical.Examples.MichaelisMenten MichaelisMenten Basic enzyme kinetics
Physiolibrary.Chemical.Examples.Hemoglobin Hemoglobin Hemoglobin blood gases binding
Physiolibrary.Chemical.Examples.AcidBase AcidBase  

Physiolibrary.Chemical.Examples.SimpleReaction Physiolibrary.Chemical.Examples.SimpleReaction


Physiolibrary.Chemical.Examples.SimpleReaction

Information

Extends from Modelica.Icons.Example (Icon for runnable examples).

Modelica definition

model SimpleReaction extends Modelica.Icons.Example; Components.Substance A(solute_start=0.9); Components.ChemicalReaction reaction(K=1, useNormalizedVolume=true, useDissociationConstantInput=false, useHeatPort=false); Components.Substance B(solute_start=0.1); equation connect(B.q_out, reaction.products[1]); connect(A.q_out, reaction.substrates[1]); end SimpleReaction;

Physiolibrary.Chemical.Examples.SimpleReaction2 Physiolibrary.Chemical.Examples.SimpleReaction2


Physiolibrary.Chemical.Examples.SimpleReaction2

Information

Extends from Modelica.Icons.Example (Icon for runnable examples).

Modelica definition

model SimpleReaction2 extends Modelica.Icons.Example; Components.Substance A(solute_start=0.9); Components.ChemicalReaction reaction(K=1, nP=2); Components.Substance B(solute_start=0.1); Components.Substance C(solute_start=0.1); equation connect(A.q_out, reaction.substrates[1]); connect(reaction.products[1], B.q_out); connect(reaction.products[2], C.q_out); end SimpleReaction2;

Physiolibrary.Chemical.Examples.ExothermicReaction Physiolibrary.Chemical.Examples.ExothermicReaction


Physiolibrary.Chemical.Examples.ExothermicReaction

Information

Extends from Modelica.Icons.Example (Icon for runnable examples).

Modelica definition

model ExothermicReaction extends Modelica.Icons.Example; Components.Substance A(solute_start=0.9); Components.ChemicalReaction reaction(K=1, useHeatPort=true, dH=-1000, kf=1); Components.Substance B(solute_start=0.1); Modelica.Thermal.HeatTransfer.Sensors.HeatFlowSensor heatFlowSensor; Thermal.Sources.UnlimitedHeat unlimitedHeat(T=310.15); equation connect(B.q_out, reaction.products[1]); connect(A.q_out, reaction.substrates[1]); connect(reaction.heatPort, heatFlowSensor.port_a); connect(unlimitedHeat.port, heatFlowSensor.port_b); end ExothermicReaction;

Physiolibrary.Chemical.Examples.MichaelisMenten Physiolibrary.Chemical.Examples.MichaelisMenten

Basic enzyme kinetics

Physiolibrary.Chemical.Examples.MichaelisMenten

Information

Extends from Modelica.Icons.Example (Icon for runnable examples), SteadyStates.Interfaces.SteadyStateSystem (Global abstract class, for additional global state equations).

Parameters

TypeNameDefaultDescription
AmountOfSubstancetE0.01total amount of enzyme [mol]
Realk_cat1forward rate of second reaction [1/s]
ConcentrationKm0.1Michaelis constant = substrate concentration at rate of half Vmax [mol/m3]
Simulation
Simulation type
SimulationTypeSimulationTypes.SimulationType.SteadyS...Dynamic with Initialization or Steady State
Equilibrium
IntegerNumberOfDependentStates1Number of additional steady state equation of the system

Modelica definition

model MichaelisMenten "Basic enzyme kinetics" import Physiolibrary; extends Modelica.Icons.Example; extends SteadyStates.Interfaces.SteadyStateSystem( Simulation=Types.SimulationType.SteadyState); Physiolibrary.Chemical.Sources.UnlimitedSolutionStorage P(Conc=0); Physiolibrary.Chemical.Sources.UnlimitedSolutionStorage S(Conc=0.1); parameter Types.AmountOfSubstance tE=0.01 "total amount of enzyme"; parameter Real k_cat(unit="1/s", displayUnit="1/min")= 1 "forward rate of second reaction"; parameter Types.Concentration Km = 0.1 "Michaelis constant = substrate concentration at rate of half Vmax"; Physiolibrary.Chemical.Components.Substance ES(solute_start=0, Simulation= Types.SimulationType.SteadyState); Physiolibrary.Chemical.Components.Substance E( solute_start=tE, isDependent=true, Simulation=Types.SimulationType.SteadyState); Components.ChemicalReaction chemicalReaction(nS=2, K=2/Km, kf=2*k_cat/Km); Components.ChemicalReaction chemicalReaction1(nP=2, K=Modelica.Constants.inf, kf=k_cat); // Real v(unit="mol/s", displayUnit="mmol/min") "test of MM equation"; equation normalizedState[1]*tE = E.solute + ES.solute; //Michaelis-Menton: v=((E.q_out.conc + ES.q_out.conc)*k_cat)*S.concentration/(Km+S.concentration); connect(S.q_out, chemicalReaction.substrates[1]); connect(chemicalReaction1.products[1], P.q_out); connect(E.q_out, chemicalReaction.substrates[2]); connect(E.q_out, chemicalReaction1.products[2]); connect(chemicalReaction.products[1], ES.q_out); connect(ES.q_out, chemicalReaction1.substrates[1]); end MichaelisMenten;

Automatically generated Tue Sep 15 22:55:15 2015.