Skip to content

Commit

Permalink
Merge branch 'open-ideas:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
kldjonge authored Apr 25, 2024
2 parents 9099c5b + b13fe57 commit 5cc22bf
Show file tree
Hide file tree
Showing 9 changed files with 86 additions and 45 deletions.
10 changes: 8 additions & 2 deletions IDEAS/Buildings/Components/Interfaces/PartialZone.mo
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ model PartialZone "Building zone model"
annotation(Dialog(tab="Airflow", group="Airtightness"));
parameter Modelica.Fluid.Types.Dynamics energyDynamicsAir=Modelica.Fluid.Types.Dynamics.FixedInitial
"Type of energy balance for air model: dynamic (3 initialization options) or steady state";
parameter Real mSenFac = 5 "Correction factor for thermal capacity of zone air."
annotation(Dialog(tab="Airflow",group="Air model"));
parameter Real mSenFac(min=0.1) = 5 "Correction factor for thermal capacity of zone air."
annotation(Dialog(tab="Advanced",group="Air model"));

parameter Boolean linIntRad=sim.linIntRad
"Linearized computation of long wave radiation"
Expand Down Expand Up @@ -510,6 +510,12 @@ end for;
</html>", revisions="<html>
<ul>
<li>
January 8, 2024, by Jelger Jansen:<br/>
Added min attribute to <code>mSenFac</code>.
See <a href=\"https://github.com/open-ideas/IDEAS/issues/1343\">
#1343</a>
</li>
<li>
May 29, 2022, by Filip Jorissen:<br/>
Unprotected component for OM compatibility.
See <a href=\"https://github.com/open-ideas/IDEAS/issues/1254\">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,6 @@ partial model RectangularZoneTemplateInterface
"= true, if exterior radiative heat transfer for windows should be linearised"
annotation(Dialog(tab="Advanced", group="Radiative heat exchange"));

parameter Real mSenFac(min=0.1)=5
"Factor for scaling the sensible thermal mass of the zone air"
annotation(Dialog(tab="Advanced",group="Air model"));
parameter SI.TemperatureDifference dT_nominal_bou=-1
"Nominal temperature difference for boundary walls, used for linearisation, negative temperatures indicate the solid is colder"
annotation(Dialog(tab="Advanced", group="Convective heat transfer"));
Expand Down Expand Up @@ -1512,7 +1509,12 @@ components cannot be propagated.
</p>
</html>", revisions="<html>
<ul>
<li>
January 8, 2024, by Jelger Jansen:<br/>
Removed duplicate declaration of <code>mSenFac</code>.
See <a href=\"https://github.com/open-ideas/IDEAS/issues/1343\">
#1343</a>
</li>
<li>
August 2, 2022, by Filip Jorissen:<br/>
Added cavity support for horizontal internal walls (floor/ceiling)
Expand Down
30 changes: 17 additions & 13 deletions IDEAS/Examples/PPD12/Structure.mo
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ model Structure "Ppd 12 example model"
annotation (Placement(transformation(extent={{140,26},{120,6}})));

IDEAS.Buildings.Components.RectangularZoneTemplate stairWay(

redeclare package Medium = MediumAir,
redeclare IDEAS.Examples.PPD12.Data.OuterWall conTypA,
redeclare IDEAS.Examples.PPD12.Data.TripleGlazing glazingA,
Expand All @@ -293,6 +292,7 @@ model Structure "Ppd 12 example model"
w=lHalfBuilding, wFlo = 0.8)
"Stairway"
annotation (Placement(transformation(extent={{86,26},{66,6}})));

IDEAS.Buildings.Components.RectangularZoneTemplate bedRoom2(
aziA=east,
bouTypC=IDEAS.Buildings.Components.Interfaces.BoundaryType.OuterWall,
Expand All @@ -306,9 +306,9 @@ model Structure "Ppd 12 example model"
fracC=0.15,
l=wBedroom,
w=lHalfBuilding,
h=hFloor1,
h=hFloor2,
A_winC=1.1*0.66 + 1.1*1.54,
redeclare IDEAS.Examples.PPD12.Data.InteriorWall18 conTypC,
redeclare IDEAS.Examples.PPD12.Data.OuterWall conTypC,
bouTypA=IDEAS.Buildings.Components.Interfaces.BoundaryType.InternalWall,
redeclare IDEAS.Examples.PPD12.Data.InteriorWall10 conTypA,
nSurfExt=0,
Expand All @@ -322,7 +322,6 @@ model Structure "Ppd 12 example model"
"Master bedroom"
annotation (Placement(transformation(extent={{276,82},{256,62}})));
IDEAS.Buildings.Components.RectangularZoneTemplate bedRoom3(

redeclare package Medium = MediumAir,
redeclare IDEAS.Examples.PPD12.Data.CommonWall conTypD,
redeclare IDEAS.Examples.PPD12.Data.CommonWall conTypB,
Expand All @@ -339,7 +338,7 @@ model Structure "Ppd 12 example model"
bouTypFlo=IDEAS.Buildings.Components.Interfaces.BoundaryType.InternalWall,
calculateViewFactor=false,
fracA=0.15,
h=hFloor1, bFlo = 2, hasCavityFlo = true,
h=hFloor2, bFlo = 2, hasCavityFlo = true,
hasWinA=true,
l=wBedroom,
mSenFac=1,
Expand Down Expand Up @@ -376,23 +375,23 @@ equation
color={255,204,51},
thickness=0.5));
connect(Diner.proBusExt[1], hallway.proBusA[1]) annotation (Line(
points={{-48,-36.5},{-76,-36.5},{-76,41}},
points={{-48,-37.25},{-76,-37.25},{-76,41}},
color={255,204,51},
thickness=0.5));
connect(Diner.proBusExt[2], com1.propsBus_a) annotation (Line(
points={{-48,-37.5},{-48,-36},{-94.8333,-36},{-94.8333,-60}},
points={{-48,-37.75},{-48,-36},{-94.8333,-36},{-94.8333,-60}},
color={255,204,51},
thickness=0.5));
connect(out1.propsBus_a, Diner.proBusExt[3]) annotation (Line(
points={{-91,-89.8333},{-91,-38.5},{-48,-38.5}},
points={{-91,-89.8333},{-91,-38.25},{-48,-38.25}},
color={255,204,51},
thickness=0.5));
connect(Porch.proBusC[1], Diner.proBusA[1]) annotation (Line(
points={{-27.2,-66.2},{-27.2,-48},{-42,-48},{-42,-37}},
color={255,204,51},
thickness=0.5));
connect(Porch.proBusD[1], Diner.proBusExt[4]) annotation (Line(
points={{-43.6,-69},{-88,-69},{-88,-38},{-48,-38},{-48,-39.5}},
points={{-43.6,-69},{-88,-69},{-88,-38},{-48,-38},{-48,-38.75}},
color={255,204,51},
thickness=0.5));
connect(bedRoom1.proBusFlo[1], cei2.propsBus_a) annotation (Line(
Expand All @@ -404,7 +403,7 @@ equation
color={255,204,51},
thickness=0.5));
connect(bedRoom1.proBusExt[1], cei1.propsBus_a) annotation (Line(
points={{142,61},{144,61},{144,80},{79.1667,80}},
points={{142,60.5},{144,60.5},{144,80},{79.1667,80}},
color={255,204,51},
thickness=0.5));
connect(cei1.propsBus_b, hallway.proBusCei[1]) annotation (Line(
Expand All @@ -420,7 +419,7 @@ equation
color={255,204,51},
thickness=0.5));
connect(stairWay.proBusC[1], bedRoom1.proBusExt[2]) annotation (Line(
points={{69.2,25.8},{69.2,25.8},{69.2,50},{76,50},{142,50},{142,59}},
points={{69.2,25.8},{69.2,25.8},{69.2,50},{76,50},{142,50},{142,59.5}},
color={255,204,51},
thickness=0.5));
connect(stairWay.proBusFlo[1], hallway.proBusExt[1]) annotation (Line(
Expand Down Expand Up @@ -448,7 +447,7 @@ equation
color={255,204,51},
thickness=0.5));
connect(winBed3.propsBus_a, bedRoom3.proBusExt[1]) annotation (Line(
points={{307,2.16667},{307,21.3333},{282,21.3333}},
points={{307,2.16667},{307,20.6667},{282,20.6667}},
color={255,204,51},
thickness=0.5));
connect(Roof1.propsBus_a, bedRoom3.proBusExt[2]) annotation (Line(
Expand All @@ -460,7 +459,7 @@ equation
color={255,204,51},
thickness=0.5));
connect(cei3.propsBus_a, bedRoom3.proBusExt[3]) annotation (Line(
points={{191.167,-10},{282,-10},{282,18.6667}},
points={{191.167,-10},{282,-10},{282,19.3333}},
color={255,204,51},
thickness=0.5));
connect(cei3.propsBus_b, stairWay.proBusCei[1]) annotation (Line(
Expand Down Expand Up @@ -510,6 +509,11 @@ This model only contains the building structure.
</html>", revisions="<html>
<ul>
<li>
March 25, 2024, by Jelger Jansen:<br/>
Use hFloor2 for second floor rooms and use outer wall construction type for bedroom 2 (face C).
This is for <a href=\"https://github.com/open-ideas/IDEAS/issues/1177\">#1177</a>.
</li>
<li>
August 2, 2022, by Filip Jorissen:<br/>
Added cavity in internal floors to represent staircases.
See <a href=\"https://github.com/open-ideas/IDEAS/issues/1293\">#1293</a>.
Expand Down
13 changes: 7 additions & 6 deletions IDEAS/Fluid/Actuators/Valves/Simplified/ThreeWayValveMotor.mo
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ protected

parameter Modelica.Units.SI.MassFlowRate m_flow_nominal
"Nominal mass flow rate" annotation (Dialog(group="Nominal condition"));
parameter Modelica.Units.SI.MassFlowRate m_flow_small(min=0) = 1E-4*abs(
m_flow_nominal) "Small mass flow rate for regularization of zero flow"
annotation (Dialog(tab="Advanced"));
parameter Boolean show_T = false
"= true, if actual temperature at port is computed"
annotation(Dialog(tab="Advanced",group="Diagnostics"));

Medium.ThermodynamicState sta_a=
Medium.setState_phX(port_a.p,
Expand Down Expand Up @@ -107,6 +101,13 @@ equation
Documentation(revisions="<html>
<ul>
<li>
December 13, 2024, by Jelger Jansen:<br/>
Removed duplicate declaration of <code>m_flow_small</code>
and <code>show_T</code>.
See <a href=\"https://github.com/open-ideas/IDEAS/issues/1343\">
#1343</a>
</li>
<li>
July 29, 2020, by Filip Jorissen:<br/>
Removed duplicate definition of <code>LumpedVolumeDeclarations</code>.
See <a href=\"https://github.com/open-ideas/IDEAS/issues/1158\">
Expand Down
Loading

0 comments on commit 5cc22bf

Please sign in to comment.