📄 hair_dryer.mdl
字号:
Model {
Name "hair_dryer"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes off
StartTime "0.0"
StopTime "999999999"
SolverMode "SingleTasking"
Solver "ode45"
RelTol "1e-3"
AbsTol "1e-6"
Refine "1"
MaxStep "0.05"
InitialStep "auto"
FixedStep "0.1"
MaxOrder 5
OutputOption "RefineOutputTimes"
OutputTimes "[]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime on
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput on
OutputSaveName "yout"
LoadInitialState off
InitialState "xInitial"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Matrix"
LimitMaxRows off
MaxRows "1000"
Decimation "1"
AlgebraicLoopMsg "warning"
MinStepSizeMsg "warning"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
InheritedTsInSrcMsg "warning"
IntegerOverflowMsg "warning"
UnnecessaryDatatypeConvMsg "none"
Int32ToFloatConvMsg "warning"
SignalLabelMismatchMsg "none"
ConsistencyChecking "off"
ZeroCross on
SimulationMode "normal"
BlockDataTips on
BlockParametersDataTip on
BlockAttributesDataTip off
BlockPortWidthsDataTip off
BlockDescriptionStringDataTip off
BlockMaskParametersDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
OptimizeBlockIOStorage on
BufferReuse on
BooleanDataType off
RTWSystemTargetFile "grt.tlc"
RTWInlineParameters off
RTWRetainRTWFile off
RTWTemplateMakefile "grt_vc.tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "oneshot"
ExtModeTrigPort "1"
ExtModeTrigElement "any"
ExtModeTrigDuration 1000
ExtModeTrigHoldOff 0
ExtModeTrigDelay 0
ExtModeTrigDirection "rising"
ExtModeTrigLevel 0
ExtModeArchiveMode "off"
ExtModeAutoIncOneShot off
ExtModeIncDirWhenArm off
ExtModeAddSuffixToVar off
ExtModeWriteAllDataToWs off
ExtModeArmWhenConnect off
Created "Wed Jan 20 14:53:20 1999"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "pgoddard"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Wed Mar 10 08:25:44 1999"
ModelVersionFormat "1.%<AutoIncrement:6>"
ConfigurationManager "none"
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "hair_dryer"
Location [20, 83, 433, 370]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name " 0.5s Timer"
Ports [0, 1, 0, 0, 0]
Position [225, 15, 255, 45]
Orientation "down"
FontName "Arial"
FontSize 12
FontWeight "bold"
SourceBlock "simulink3/Sources/Pulse\nGenerator"
SourceType "Pulse Generator"
period ".5"
duty "50"
amplitude "1"
start "0"
}
Block {
BlockType Constant
Name "Constant"
Position [20, 15, 45, 35]
ShowName off
FontName "Arial"
FontSize 12
FontWeight "bold"
Value "0"
}
Block {
BlockType Constant
Name "Constant1"
Position [20, 35, 45, 55]
ShowName off
FontName "Arial"
FontSize 12
FontWeight "bold"
Value "1"
}
Block {
BlockType Constant
Name "Constant2"
Position [295, 220, 325, 240]
Orientation "left"
NamePlacement "alternate"
ShowName off
FontName "Arial"
FontSize 12
FontWeight "bold"
Value "0.4"
}
Block {
BlockType Display
Name "Display"
Ports [1, 0, 0, 0, 0]
Position [20, 150, 100, 180]
Orientation "left"
NamePlacement "alternate"
ShowName off
FontSize 12
FontWeight "bold"
Format "short"
Decimation "1"
Floating off
SampleTime "-1"
}
Block {
BlockType SubSystem
Name "Fan Heat System"
Ports [2, 1, 0, 0, 0]
Position [170, 218, 270, 262]
Orientation "left"
FontName "Arial"
FontSize 12
FontWeight "bold"
ShowPortLabels on
System {
Name "Fan Heat System"
Location [324, 187, 974, 615]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "fan_level"
Position [30, 33, 60, 47]
FontSize 12
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "heat_level"
Position [15, 278, 45, 292]
FontSize 12
Port "2"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Gain
Name "1/Heat Capp"
Position [280, 200, 310, 230]
FontSize 12
Gain "0.02"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "dtemp/dt"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Gain
Name "Coef of R"
Position [444, 250, 486, 285]
Orientation "down"
FontSize 12
Gain ".04"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Fan Size*Speed"
Position [120, 21, 170, 59]
FontSize 12
Gain "7.715"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "h*air mass flow"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1, 0, 0, 0]
Position [390, 198, 435, 232]
FontSize 12
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "50"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
Port {
PortNumber 1
Name "Lamp temp"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Gain
Name "Lamp Eff"
Position [320, 135, 350, 165]
Orientation "left"
FontSize 12
Gain "0.7"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "DeltaT"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1, 0, 0, 0]
Position [325, 300, 355, 330]
Orientation "left"
ShowName off
Operator "reciprocal"
OutputSignalType "auto"
Port {
PortNumber 1
Name "G"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Product
Name "Product"
Ports [2, 1, 0, 0, 0]
Position [245, 72, 275, 103]
Orientation "left"
ShowName off
FontSize 12
Inputs "2"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "Pout"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1, 0, 0, 0]
Position [165, 277, 195, 308]
ShowName off
FontSize 12
Inputs "2"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "Pin"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1, 0, 0, 0]
Position [240, 337, 270, 368]
Orientation "left"
ShowName off
FontSize 12
Inputs "2"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "Irms"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Constant
Name "R at\n temp=0"
Position [475, 315, 495, 335]
Orientation "left"
FontSize 12
Value "18"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1, 0, 0, 0]
Position [385, 131, 410, 169]
Orientation "left"
ShowName off
FontSize 12
IconShape "rectangular"
Inputs "-+"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1, 0, 0, 0]
Position [220, 196, 245, 234]
ShowName off
FontSize 12
IconShape "rectangular"
Inputs "-+"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1, 0, 0, 0]
Position [395, 296, 420, 334]
Orientation "left"
ShowName off
FontSize 12
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "R"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1, 0, 0, 0]
Position [465, 46, 490, 84]
ShowName off
FontSize 12
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Constant
Name "Tamb"
Position [495, 130, 515, 150]
Orientation "left"
FontSize 12
Value "90"
}
Block {
BlockType Gain
Name "Voltage"
Position [70, 266, 120, 304]
FontSize 12
Gain "120"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "temp"
Position [560, 58, 590, 72]
FontSize 12
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
Name "Irms"
Labels [1, 0]
SrcBlock "Product2"
SrcPort 1
Points [-85, 0]
DstBlock "Product1"
DstPort 2
}
Line {
Name "Pin"
Labels [2, 1]
SrcBlock "Product1"
SrcPort 1
Points [30, 0; 0, -30; -55, 0; 0, -40]
DstBlock "Sum1"
DstPort 2
}
Line {
Name "DeltaT"
SrcBlock "Lamp Eff"
SrcPort 1
Points [-20, 0; 0, -35]
Branch {
Labels [1, 0]
Points [105, 0; 0, -60]
DstBlock "Sum3"
DstPort 1
}
Branch {
Points [0, -20]
DstBlock "Product"
DstPort 2
}
}
Line {
SrcBlock "Tamb"
SrcPort 1
Points [-50, 0]
Branch {
Points [0, -65]
DstBlock "Sum3"
DstPort 2
}
Branch {
DstBlock "Sum"
DstPort 1
}
}
Line {
Name "Pout"
Labels [2, 0]
SrcBlock "Product"
SrcPort 1
Points [-65, 0; 0, 115]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Coef of R"
SrcPort 1
Points [0, 15]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "R at\n temp=0"
SrcPort 1
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "1/Heat Capp"
DstPort 1
}
Line {
Name "dtemp/dt"
Labels [0, 1]
SrcBlock "1/Heat Capp"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
Name "Lamp temp"
SrcBlock "Integrator"
SrcPort 1
Points [25, 0]
Branch {
Labels [1, 1]
Points [0, -55]
DstBlock "Sum"
DstPort 2
}
Branch {
DstBlock "Coef of R"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Lamp Eff"
DstPort 1
}
Line {
Name "h*air mass flow"
Labels [1, 0]
SrcBlock "Fan Size*Speed"
SrcPort 1
Points [175, 0; 0, 40]
DstBlock "Product"
DstPort 1
}
Line {
Name "R"
Labels [0, 0]
SrcBlock "Sum2"
SrcPort 1
DstBlock "Math\nFunction"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -