Skip to content

Commit 7117e0d

Browse files
committed
Merge branch 'Chemical2' of github.com:MarekMatejak/Physiolibrary into Chemical2
2 parents a8dd75f + 6d69b92 commit 7117e0d

File tree

3 files changed

+53
-53
lines changed

3 files changed

+53
-53
lines changed

Physiolibrary/Blocks.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ input <i>u</i>:
668668
parameter Integer nfi = div(nu, 2) + 1;
669669
constant Complex I(re = 0, im = 1);
670670
Complex complexValue;
671-
parameter Complex c[nfi] = FFT(curve) "Fourier series coefficients";
671+
parameter Complex c[nfi] = FFT(curve,nfi) "Fourier series coefficients";
672672
equation
673673
complexValue = sum(c[j + 1] * Modelica.ComplexMath.exp(2 * pi * I * j * time * frequence) for j in 0:nfi - 1);
674674
//Inverse Fourier transformation
@@ -684,7 +684,7 @@ input <i>u</i>:
684684
import Modelica.Constants.pi;
685685
input Real f[:] "equidistant-sampled function";
686686
input Integer nfi = div(size(f, 1), 2) + 1 "";
687-
output Complex c[:] "Fourier series coeficient";
687+
output Complex c[nfi] "Fourier series coeficient";
688688
protected
689689
Real Ai[nfi] "FFT amplitudes of interested frequency points";
690690
Real Phii[nfi] "FFT phases of interested frequency points";

Physiolibrary/Fluid.mo

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1647,8 +1647,8 @@ The sensor is ideal, i.e., it does not influence the fluid.
16471647
Placement(transformation(extent = {{100, -10}, {120, 10}})));
16481648

16491649
replaceable function GetFraction =
1650-
Physiolibrary.Media.Blood.hematocrit
1651-
constrainedby Medium.GetFraction
1650+
Physiolibrary.Media.Blood.GetFraction
1651+
constrainedby Physiolibrary.Media.Interfaces.PartialMedium.GetFraction
16521652
"Get fraction from medium state"
16531653
annotation (choicesAllMatching=true);
16541654

@@ -3562,7 +3562,7 @@ The sensor is ideal, i.e., it does not influence the fluid.
35623562
Physiolibrary.Types.Constants.HydraulicConductanceConst hydraulicConductance1(k = 1.250102626409427e-07 * (5 / 4)) annotation (
35633563
Placement(transformation(extent = {{-4, -4}, {4, 4}}, rotation = 270, origin = {-80, -132})));
35643564
Physiolibrary.Fluid.Components.Conductor pulmonaryShunt(redeclare package Medium = Blood, Conductance(displayUnit = "l/(cmH2O.s)") = cShunt) annotation (
3565-
Placement(transformation(extent = {{-10, -10}, {10, 10}}, rotation = 0, origin = {-4, -104})));
3565+
Placement(transformation(extent = {{-10, -10}, {10, 10}}, rotation = 0, origin={-4,-102})));
35663566
Organs.Lungs.Components.RespiratoryUnit respiratoryUnit
35673567
[NA](
35683568
redeclare package Blood = Blood,
@@ -3646,9 +3646,9 @@ The sensor is ideal, i.e., it does not influence the fluid.
36463646
connect(pressureMeasureVeins.pressure, multiProduct1.u[2]) annotation (
36473647
Line(points={{-86,-208},{-94,-208},{-94,-148.95},{-76,-148.95}}, color = {0, 0, 127}));
36483648
connect(pulmonaryShunt.q_in, pulmonaryArteries.q_in[3]) annotation (
3649-
Line(points={{-14,-104},{-50.1,-104},{-50.1,-101.675}}, color = {127, 0, 0}, thickness = 0.5));
3649+
Line(points={{-14,-102},{-50.1,-102},{-50.1,-101.675}}, color = {127, 0, 0}, thickness = 0.5));
36503650
connect(pulmonaryShunt.q_out, pulmonaryVeins.q_in[3]) annotation (
3651-
Line(points={{6,-104},{41.9,-104},{41.9,-101.675}}, color = {127, 0, 0}, thickness = 0.5));
3651+
Line(points={{6,-102},{41.9,-102},{41.9,-101.675}}, color = {127, 0, 0}, thickness = 0.5));
36523652
for i in 1:NA loop
36533653
connect(respiratoryUnit[i].blood_in, pulmonaryArteries.q_in[4]) annotation (
36543654
Line(
@@ -3983,7 +3983,7 @@ The sensor is ideal, i.e., it does not influence the fluid.
39833983
redeclare package Medium = Air,
39843984
EnthalpyNotUsed=false,
39853985
Resistance=TotalResistance)
3986-
annotation (Placement(transformation(extent={{-308,0},{-288,20}})));
3986+
annotation (Placement(transformation(extent={{-308,-2},{-288,18}})));
39873987
Physiolibrary.Fluid.Sensors.FlowMeasure flowMeasure(redeclare package Medium = Air) annotation (
39883988
Placement(transformation(extent = {{-10, -10}, {10, 10}}, rotation = 270, origin = {-318, 66})));
39893989
Components.ElasticVessel chest(
@@ -4040,11 +4040,11 @@ The sensor is ideal, i.e., it does not influence the fluid.
40404040
annotation (Line(points={{-14,82},{-8,82},{-8,62},{-63,62},{-63,53}},
40414041
color={0,0,127}));
40424042
connect(flowMeasure.q_out, lungsPathways.q_in) annotation (Line(
4043-
points={{-318,56},{-318,10},{-308,10}},
4043+
points={{-318,56},{-318,8},{-308,8}},
40444044
color={127,0,0},
40454045
thickness=0.5));
40464046
connect(lungsPathways.q_out, lungs.q_in[1]) annotation (Line(
4047-
points={{-288,10},{-156,10},{-156,-1.025},{-135.9,-1.025}},
4047+
points={{-288,8},{-156,8},{-156,-1.025},{-135.9,-1.025}},
40484048
color={127,0,0},
40494049
thickness=0.5));
40504050
connect(alveolarPressure.port, lungs.q_in[2]) annotation (Line(

0 commit comments

Comments
 (0)