Skip to content

Commit f69818b

Browse files
author
vikrants
committed
New feature to specify Solid Wall Fraction for internal walls. This helps you create doors, windows, openings on internal walls and floors.
1 parent 43a89bb commit f69818b

File tree

93 files changed

+7290
-1407
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+7290
-1407
lines changed

Components/Ambient/EnvModel.png

-326 Bytes
Loading
1.28 KB
Loading

Components/Building/BuildingModel.ssc

Lines changed: 146 additions & 27 deletions
Large diffs are not rendered by default.
3.24 KB
Binary file not shown.
32.7 KB
Binary file not shown.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
% This component was automatically generated using 'subsystem2ssc'.
2+
% Subsystem: WallModel/WallWithVents
3+
% MATLAB version: 24.1
4+
% Simulink version: 24.1
5+
% Simscape version: 24.1
6+
% Generated on: 27-Nov-2024 10:12:36
7+
8+
component (Propagation = blocks) WallWithVents
9+
parameters
10+
wallArea = {70, 'm^2'}; %Wall area
11+
extToWallHTC = {5, 'W/(K*m^2)'}; %Effective heat transfer coefficient from ambient to wall surface
12+
wallMaterialMass = {50400, 'kg'}; %Wall material mass
13+
wallMaterialCp = {1870, 'J/(K*kg)'}; %Wall material heat capacity
14+
ventArea = {1e-10, 'm^2'}; %Vent area
15+
intToRoomHTC = {5, 'W/(K*m^2)'}; %Effective heat transfer coefficient from internal surface to the room
16+
wallThermalK = {2, 'W/(K*m)'}; %Wall thermal conductivity
17+
wallThickness = {.3, 'm'}; %Wall thickness
18+
end
19+
variables
20+
wallTemperature = {value = {300, 'K'}, priority = priority.high}; %Wall initial temperature
21+
end
22+
nodes
23+
EXT = foundation.thermal.thermal;
24+
INT = foundation.thermal.thermal;
25+
end
26+
components(ExternalAccess = observe)
27+
WallHeatTransferInt = foundation.thermal.elements.conduction(thermal_type = int32(1), wall_geometry = int32(1), area = wallArea, th_cond = wallThermalK, thickness = wallThickness);
28+
WallHeatTransferExt = foundation.thermal.elements.conduction(thermal_type = int32(1), wall_geometry = int32(1), area = wallArea, th_cond = wallThermalK, thickness = wallThickness);
29+
WallHeatToRoom = foundation.thermal.elements.convection(thermal_type = int32(1), area = wallArea, heat_tr_coeff = intToRoomHTC);
30+
VentAirFlowToRoom = foundation.thermal.elements.convection(thermal_type = int32(1), area = ventArea, heat_tr_coeff = extToWallHTC);
31+
SolidWall = foundation.thermal.elements.mass(mass_type = int32(1), num_ports = int32(1), mass = wallMaterialMass, sp_heat = wallMaterialCp, T.priority = priority.none);
32+
EnvHeatToWall = foundation.thermal.elements.convection(thermal_type = int32(1), area = wallArea, heat_tr_coeff = extToWallHTC);
33+
end
34+
connections
35+
connect(WallHeatToRoom.A,WallHeatTransferInt.B);
36+
connect(INT,VentAirFlowToRoom.B);
37+
connect(INT,WallHeatToRoom.B);
38+
connect(SolidWall.M,WallHeatTransferExt.B);
39+
connect(SolidWall.M,WallHeatTransferInt.A);
40+
connect(EnvHeatToWall.B,WallHeatTransferExt.A);
41+
connect(EXT,EnvHeatToWall.A);
42+
connect(EXT,VentAirFlowToRoom.A);
43+
end
44+
equations
45+
SolidWall.T == wallTemperature;
46+
end
47+
end

Components/Building/Wall/generateCustomWallComponents.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
% Generate SSC code for wall with vents only. Captures solar impact
1515
subsystem2ssc('WallModel/WallSolarWithVents')
1616

17+
% Generate SSC code for wall with vents only.
18+
subsystem2ssc('WallModel/WallWithVents')
19+
1720
% Generate SSC code for wall only. Captures solar impact
1821
subsystem2ssc('WallModel/WallSolar')
1922

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
classdef wallPhysicsOptions < int32
2+
% Wall physics option definition.
3+
4+
% Copyright 2024 The MathWorks, Inc.
5+
6+
enumeration
7+
allWallSame (1)
8+
allWallNotSame (2)
9+
end
10+
methods(Static)
11+
function map = displayText()
12+
map = containers.Map;
13+
map('allWallSame') = 'All Walls with Same Properties';
14+
map('allWallNotSame') = 'Different Walls with Different Properties';
15+
end
16+
end
17+
end
6.71 KB
Binary file not shown.
12.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)