📄 combinedone.mdl
字号:
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Constant
Name "External Temp"
Position [80, 25, 110, 55]
Orientation "left"
Value "18"
VectorParams1D on
}
Block {
BlockType Outport
Name "Out1"
Position [25, 33, 55, 47]
Orientation "left"
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "External Temp"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Gain
Name "Fan Speed rate"
Position [620, 505, 650, 535]
FontName "Arial"
FontSize 14
Gain "10"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Scope
Name "Flap Pos"
Ports [1]
Position [1090, 264, 1120, 296]
FontName "Arial"
FontSize 14
Floating off
Location [747, 475, 1071, 714]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "auto"
YMin "41.175"
YMax "41.22"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType From
Name "From"
Position [260, 512, 320, 538]
CloseFcn "tagdialog Close"
FontName "Arial"
FontSize 14
GotoTag "Tout_H"
}
Block {
BlockType From
Name "From1"
Position [260, 461, 320, 489]
CloseFcn "tagdialog Close"
FontName "Arial"
FontSize 14
GotoTag "Tout_AC"
}
Block {
BlockType Goto
Name "Goto"
Position [1080, 368, 1135, 392]
FontName "Arial"
FontSize 14
GotoTag "Tout_H"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto1"
Position [1085, 117, 1140, 143]
FontName "Arial"
FontSize 14
GotoTag "Tout_AC"
TagVisibility "local"
}
Block {
BlockType SubSystem
Name "Heat from occupants"
Ports [0, 1]
Position [515, 449, 605, 481]
AttributesFormatString "No. of occupants: %<N>"
FontName "Arial"
FontSize 14
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "Heat from occupants"
MaskPromptString "Number of occupants:"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "N=@1;"
MaskDisplay "disp('Heat Sources')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "1"
System {
Name "Heat from occupants"
Location [371, 543, 663, 658]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Gain
Name "No of occupants"
Position [105, 27, 155, 63]
Gain "N"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "Qdot_sources"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Constant
Name "Power per\noccupant [W]"
Position [25, 30, 55, 60]
Value "100"
VectorParams1D on
}
Block {
BlockType Outport
Name "Qdot_sources"
Position [240, 38, 270, 52]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Power per\noccupant [W]"
SrcPort 1
DstBlock "No of occupants"
DstPort 1
}
Line {
Name "Qdot_sources"
Labels [0, 0]
SrcBlock "No of occupants"
SrcPort 1
DstBlock "Qdot_sources"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Heater Control"
Ports [4, 3, 1]
Position [895, 253, 1055, 407]
BackgroundColor "green"
FontName "Arial"
FontSize 14
ShowPortLabels on
TreatAsAtomicUnit on
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Heater Control"
Location [187, 282, 1033, 767]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Req Temp change"
Position [75, 398, 105, 412]
FontName "Arial"
FontSize 14
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "Blower Speed proportion"
Position [70, 193, 100, 207]
FontName "Arial"
FontSize 14
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "External Temp"
Position [70, 278, 100, 292]
FontName "Arial"
FontSize 14
Port "3"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "Internal temp"
Position [70, 323, 100, 337]
FontName "Arial"
FontSize 14
Port "4"
LatchInput off
Interpolate on
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [365, 40, 385, 60]
StatesWhenEnabling "reset"
ShowOutputPort off
}
Block {
BlockType Gain
Name "Air Density"
Position [225, 115, 255, 145]
FontName "Arial"
FontSize 14
Gain "1.22"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Fan effect"
Ports [2, 1]
Position [160, 118, 195, 142]
FontName "Arial"
FontSize 14
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Flap effect"
Position [525, 220, 555, 250]
Orientation "up"
FontName "Arial"
FontSize 14
Gain "1/.12"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain"
Position [180, 389, 220, 421]
FontName "Arial"
FontSize 14
Gain "2"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Fcn
Name "Heat Exchanger Equation"
Position [370, 165, 470, 195]
FontName "Arial"
FontSize 14
Expr "u[2]-(u[2]-u[3])*exp(-(pi*0.004*0.05*23"
".8)/(u[1]*1007))"
}
Block {
BlockType Constant
Name "Max Fan Speed"
Position [75, 110, 105, 140]
FontName "Arial"
FontSize 14
Value "0.12"
VectorParams1D on
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [330, 101, 335, 259]
ShowName off
FontName "Arial"
FontSize 14
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [555, 171, 600, 204]
FontName "Arial"
FontSize 14
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [215, 345, 235, 365]
ShowName off
FontName "Arial"
FontSize 14
IconShape "round"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [335, 275, 355, 295]
NamePlacement "alternate"
ShowName off
FontName "Arial"
FontSize 14
IconShape "round"
Inputs "|-+"
SaturateOnIntegerOverflow on
}
Block {
BlockType Constant
Name "Tcoolant "
Position [205, 165, 235, 195]
FontName "Arial"
FontSize 14
Value "350"
VectorParams1D on
}
Block {
BlockType Lookup
Name "Temp/Flap Angle"
Position [385, 266, 420, 304]
FontName "Arial"
FontSize 14
InputValues "[0 10 20 30 40 50 60 75 100]"
OutputValues "[0 20 30 45 60 75 90 90 90]"
}
Block {
BlockType Gain
Name "channels"
Position [290, 115, 310, 145]
FontName "Arial"
FontSize 14
Gain "1/30000"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "Flap Angle"
Position [660, 278, 690, 292]
FontName "Arial"
FontSize 14
Port "1"
OutputWhenDisabled "reset"
InitialOutput "0"
}
Block {
BlockType Outport
Name "Exit Temp (heater)"
Position [665, 348, 695, 362]
FontName "Arial"
FontSize 14
Port "2"
OutputWhenDisabled "reset"
InitialOutput "0"
}
Block {
BlockType Outport
Name "Tout"
Position [660, 183, 690, 197]
FontName "Arial"
FontSize 14
Port "3"
OutputWhenDisabled "reset"
InitialOutput "0"
}
Line {
SrcBlock "Heat Exchanger Equation"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "External Temp"
SrcPort 1
Points [0, 0; 135, 0]
Branch {
Points [0, -55]
DstBlock "Mux"
DstPort 3
}
Branch {
DstBlock "Sum2"
DstPort 1
}
}
Line {
SrcBlock "Blower Speed proportion"
SrcPort 1
Points [40, 0]
DstBlock "Fan effect"
DstPort 2
}
Line {
SrcBlock "Max Fan Speed"
SrcPort 1
DstBlock "Fan effect"
DstPort 1
}
Line {
SrcBlock "Fan effect"
SrcPort 1
DstBlock "Air Density"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Heat Exchanger Equation"
DstPort 1
}
Line {
SrcBlock "Air Density"
SrcPort 1
DstBlock "channels"
DstPort 1
}
Line {
SrcBlock "channels"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Tcoolant "
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Flap effect"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Tout"
DstPort 1
}
Line {
SrcBlock "Temp/Flap Angle"
SrcPort 1
Points [0, 0; 115, 0]
Branch {
DstBlock "Flap effect"
DstPort 1
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -