Skip to content

Commit

Permalink
[Matlab] Update vdot/qdot in experimental toolbox
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl committed Jun 26, 2023
1 parent 81524c6 commit 1676dcd
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions interfaces/matlab_experimental/Reactor/Wall.m
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1676dcd

Please sign in to comment.