From 1676dcdbddf64bd6fe602dc37d9573a44ea0d255 Mon Sep 17 00:00:00 2001 From: Ingmar Schoegl Date: Sat, 24 Jun 2023 23:26:56 -0600 Subject: [PATCH] [Matlab] Update vdot/qdot in experimental toolbox --- interfaces/matlab_experimental/Reactor/Wall.m | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/interfaces/matlab_experimental/Reactor/Wall.m b/interfaces/matlab_experimental/Reactor/Wall.m index ce78f115657..bde1b98b34b 100644 --- a/interfaces/matlab_experimental/Reactor/Wall.m +++ b/interfaces/matlab_experimental/Reactor/Wall.m @@ -60,6 +60,8 @@ properties (SetAccess = public) area % Area of the wall in m^2. + qdot % Total heat transfer rate through the wall at current time step in W. + vdot % Rate of volumetric change at current time step in m^3/s. thermalResistance % Thermal resistance in K*m^2/W. heatTransferCoeff % Heat transfer coefficient in W/(m^2-K). emissivity % Non-dimensional emissivity. @@ -129,15 +131,12 @@ function delete(w) a = ctFunc('wall_area', w.id); end - function q = qdot(w, t) - % Total heat transfer rate through a wall at a given time t. - - q = ctFunc('wall_Q', w.id, t); + function q = get.qdot(w) + q = ctFunc('wall_qdot', w.id); end - function v = vdot(w, t) - % Rate of volumetric change at a given time t. - v = ctFunc('wall_vdot', w.id, t); + function v = get.vdot(w) + v = ctFunc('wall_vdot3', w.id); end %% ReactorNet set methods