From 82250ce87abe92f8d374860f22e6fbddf6d9b87f Mon Sep 17 00:00:00 2001 From: kldjonge Date: Fri, 4 Oct 2024 15:38:48 +0200 Subject: [PATCH 1/3] unprotect dh and change prefixes to input unprotect dh and change prefixes to input to hide it from the dialog box --- IBPSA/Airflow/Multizone/BaseClasses/DoorDiscretized.mo | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/IBPSA/Airflow/Multizone/BaseClasses/DoorDiscretized.mo b/IBPSA/Airflow/Multizone/BaseClasses/DoorDiscretized.mo index 663c602ef4..eab9eeb02d 100644 --- a/IBPSA/Airflow/Multizone/BaseClasses/DoorDiscretized.mo +++ b/IBPSA/Airflow/Multizone/BaseClasses/DoorDiscretized.mo @@ -17,9 +17,9 @@ partial model DoorDiscretized Modelica.Units.SI.Velocity vTop "Velocity at top of opening from A to B"; Modelica.Units.SI.Velocity vBot "Velocity at bottom of opening from A to B"; -protected - parameter Modelica.Units.SI.Length dh=hOpe/nCom "Height of each compartment"; + 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, p=Medium.p_default, @@ -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) From 3c187e7983203da9dc572b2cecb583aa318b7a08 Mon Sep 17 00:00:00 2001 From: kldjonge Date: Tue, 29 Oct 2024 10:59:38 +0100 Subject: [PATCH 2/3] Revision note for DoorDiscretized.mo --- IBPSA/Airflow/Multizone/BaseClasses/DoorDiscretized.mo | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/IBPSA/Airflow/Multizone/BaseClasses/DoorDiscretized.mo b/IBPSA/Airflow/Multizone/BaseClasses/DoorDiscretized.mo index eab9eeb02d..810687633f 100644 --- a/IBPSA/Airflow/Multizone/BaseClasses/DoorDiscretized.mo +++ b/IBPSA/Airflow/Multizone/BaseClasses/DoorDiscretized.mo @@ -118,6 +118,10 @@ using the model for a door that can be open or closed. revisions="