Skip to content

Commit

Permalink
Overridable dh in DoorDiscretized.mo
Browse files Browse the repository at this point in the history
IDEAS\Airflow\Multizone\BaseClasses\DoorDiscretized.mo
  • Loading branch information
kldjonge committed Oct 4, 2024
1 parent 410cd0c commit 570cbe5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions IDEAS/Airflow/Multizone/BaseClasses/DoorDiscretized.mo
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ partial model DoorDiscretized
Modelica.Units.SI.Velocity vBot "Velocity at bottom of opening from A to B";


parameter Modelica.Units.SI.Length dh=hOpe/nCom "Height of each compartment" annotation(Dialog(tab = "Advanced", group="Override"),HideResult=true);
input Modelica.Units.SI.Length dh=hOpe/nCom "Height of each compartment";
protected
parameter Medium.ThermodynamicState sta_default=Medium.setState_pTX(
T=Medium.T_default,
Expand All @@ -28,11 +28,11 @@ protected
parameter Modelica.Units.SI.Density rho_default=Medium.density(sta_default)
"Density, used to compute fluid volume";

parameter Real hAg[nCom](each unit="m2/s2")=
input Real hAg[nCom](each unit="m2/s2")=
{Modelica.Constants.g_n*(hA - (i - 0.5)*dh) for i in 1:nCom}
"Product g*h_i for each compartment";

parameter Real hBg[nCom](each unit="m2/s2")=
input Real hBg[nCom](each unit="m2/s2")=
{Modelica.Constants.g_n*(hB - (i - 0.5)*dh) for i in 1:nCom}
"Product g*h_i for each compartment";
Modelica.Units.SI.AbsolutePressure pA[nCom](each nominal=101325)
Expand Down

0 comments on commit 570cbe5

Please sign in to comment.