📄 steamcondenser.mdl
字号:
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
IgnoreLimit off
ZeroCross on
}
Block {
BlockType Lookup
InputValues "[-4:5]"
OutputValues " rand(1,10)-0.5"
LookUpMeth "Interpolation-Extrapolation"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
LUTDesignTableMode "Redesign Table"
LUTDesignDataSource "Block Dialog"
LUTDesignFunctionName "sqrt(x)"
LUTDesignUseExistingBP on
LUTDesignRelError "0.01"
LUTDesignAbsError "1e-6"
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
UseBusObject off
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Outport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Product
Inputs "2"
Multiplication "Element-wise(.*)"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Saturate
UpperLimit "0.5"
LowerLimit "-0.5"
LinearizeAsGain on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Scope
ModelBased off
TickLabels "OneTimeTick"
ZoomMode "on"
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "-1"
}
Block {
BlockType StateSpace
A "1"
B "1"
C "1"
D "1"
X0 "0"
AbsoluteTolerance "auto"
Realization "auto"
}
Block {
BlockType Step
Time "1"
Before "0"
After "1"
SampleTime "-1"
VectorParams1D on
ZeroCross on
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType TransferFcn
Numerator "[1]"
Denominator "[1 2 1]"
AbsoluteTolerance "auto"
Realization "auto"
}
}
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 "SteamCondenser"
Location [1021, 338, 1506, 612]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType BusSelector
Name "Bus\nSelector"
Ports [1, 4]
Position [320, 33, 325, 102]
ShowName off
OutputSignals "T,Fcw,Q,P"
Port {
PortNumber 1
Name "<T>"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 2
Name "<Fcw>"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 3
Name "<Q>"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 4
Name "<P>"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Constant
Name "Fs"
Position [15, 20, 45, 50]
Value "4"
}
Block {
BlockType Step
Name "Input Step Test"
Position [45, 170, 75, 200]
Time "10"
After "u"
SampleTime "0"
}
Block {
BlockType Reference
Name "PID Controller"
Ports [1, 1]
Position [175, 140, 205, 170]
Orientation "left"
SourceBlock "simulink_extras/Additional\nLinear/PID Controll"
"er"
SourceType "PID Controller"
ShowPortLabels on
P "K"
I "K/TI"
D "TD"
}
Block {
BlockType Step
Name "Pressure Setpoint"
Position [325, 170, 355, 200]
Orientation "left"
Time "10"
Before "90"
After "85"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope"
Ports [4]
Position [420, 35, 450, 100]
Floating off
Location [6, 60, 1030, 775]
Open off
NumInputPorts "4"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
}
YMin "-5~-5~-5~-5"
YMax "5~5~5~5"
SaveToWorkspace on
SaveName "y"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Steam Condenser"
Ports [3, 1]
Position [125, 19, 290, 121]
BackgroundColor "cyan"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskPromptString "Volume [m3]|CW Holdup [kg]|UA [kW/K]|Actuator t"
"ime constant [s]|Fcw [kg/s]|P [kPa]|T [degC]"
MaskStyleString "edit,edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on,on"
MaskCallbackString "||||||"
MaskEnableString "on,on,off,on,off,off,off"
MaskVisibilityString "on,on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,"
MaskVariables "V=@1;Mcw=@2;UA=@3;tau=@4;Fcw=@5;P=@6;T=@7;"
MaskInitialization "y1=[.3 .3 .7 .7 .3 NaN .4 .4 NaN .5 .5 NaN .6 ."
"6 NaN 0.2 0.3 NaN 0.7 0.8 NaN 0.7 0.8 NaN 0.82 NaN 0.18];\nx1=[.8 .2 .2 .8 .8"
" NaN .8 .2 NaN .8 .2 NaN .8 .2 NaN 0.5 0.5 NaN 0.3 0.3 NaN 0.7 0.7 NaN -0.05 "
"NaN 1.05];\ny2=0.3:0.05:0.7;\nx2=sqrt(0.0625-(y2-0.5).^2);\ny3=[.5 .5 .8 NaN "
"0.2 0.4 0.4];\nx3=[x2(5)+0.65 0.95 0.95 NaN .1 .1 0.35-x2(3)];"
MaskDisplay "plot([x1 NaN 0.65+x2 NaN 0.35-x2 NaN x3],[y1 Na"
"N y2 NaN y2 NaN y3])\nport_label('input',1,'Fs')\nport_label('input',2,'Tcw')"
"\nport_label('input',3,'Fcw')\nport_label('output',1,'y')\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "3|500|356.972413581334|1|107.8880952381|90|80"
MaskTabNameString ",,,,,,"
System {
Name "Steam Condenser"
Location [8, 84, 671, 456]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "102"
Block {
BlockType Inport
Name "Fs"
Position [45, 28, 75, 42]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Tcw"
Position [20, 293, 50, 307]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Fcw"
Position [15, 78, 45, 92]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Gain
Name "1/Cp"
Position [360, 218, 405, 252]
Orientation "left"
Gain "1/4.2"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "1/Mcw"
Position [345, 257, 405, 293]
Gain "1/Mcw"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Actuator"
Ports [1, 1]
Position [135, 238, 175, 272]
SourceBlock "simulink_extras/Additional\nLinear/Transfer"
" Fcn\n(with initial outputs)"
SourceType "Transfer Function with Initial Outputs"
ShowPortLabels on
N "[1]"
D "[tau 1]"
Y0 "Fcw"
U0 "Fcw"
Port {
PortNumber 1
Name "Fcw"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType BusCreator
Name "Bus\nCreator1"
Ports [6, 1]
Position [585, 55, 590, 150]
ShowName off
Inputs "6"
DisplayOption "bar"
}
Block {
BlockType Product
Name "Divide"
Ports [2, 1]
Position [380, 137, 410, 168]
Orientation "left"
Inputs "/*"
SaturateOnIntegerOverflow off
Port {
PortNumber 1
Name "Fc"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Constant
Name "Fcw Setpoint"
Position [100, 110, 130, 140]
Orientation "left"
Value "Fcw"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [440, 30, 470, 60]
InitialCondition "P"
IgnoreLimit off
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1]
Position [435, 260, 465, 290]
InitialCondition "T"
IgnoreLimit off
Port {
PortNumber 1
Name "T"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Lookup
Name "Lambda"
Position [445, 129, 475, 161]
Orientation "left"
InputValues "[50 60 70 80 90 100 110]"
OutputValues "[2305.42 2293.64 2283.30 2274.05 2265.65 22"
"57.92 2250.76]"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [130, 176, 135, 214]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Lookup
Name "P-T"
Position [315, 74, 345, 106]
Orientation "left"
InputValues "[50 60 70 80 90 100 110]"
OutputValues "[81.3167 85.9258 89.9315 93.4854 96.6870 99"
".6059 102.2923]"
Port {
PortNumber 1
Name "T_c"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [250, 27, 280, 58]
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [240, 239, 270, 306]
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [310, 187, 340, 223]
ShowName off
Inputs "*/"
SaturateOnIntegerOverflow off
Port {
PortNumber 1
Name "Q"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Gain
Name "R/V"
Position [315, 28, 410, 62]
Gain "0.461526/V"
SaturateOnIntegerOverflow off
}
Block {
BlockType Saturate
Name "Saturation"
Position [85, 240, 115, 270]
UpperLimit "200"
LowerLimit "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [150, 25, 170, 45]
ShowName off
IconShape "round"
Inputs "|+-"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -