📄 overvoltage.mdl
字号:
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
ConvertRealWorld "Real World Value (RWV)"
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Demux
Outputs "4"
DisplayOption "none"
BusSelectionMode off
}
Block {
BlockType Derivative
LinearizePole "inf"
}
Block {
BlockType From
IconDisplay "Tag"
}
Block {
BlockType FromWorkspace
VariableName "simulink_input"
SampleTime "-1"
Interpolate on
OutputAfterFinalValue "Extrapolation"
}
Block {
BlockType Gain
Gain "1"
Multiplication "Element-wise(K.*u)"
ParameterDataTypeMode "Same as input"
ParameterDataType "sfix(16)"
ParameterScalingMode "Best Precision: Matrix-wise"
ParameterScaling "2^0"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Goto
IconDisplay "Tag"
}
Block {
BlockType HitCross
HitCrossingOffset "0"
HitCrossingDirection "either"
ShowOutputPort on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Inport
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
Interpolate 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"
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Outport
Port "1"
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 PMComponent
SubClassName "unknown"
}
Block {
BlockType PMIOPort
}
Block {
BlockType Scope
Floating off
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 "0"
}
Block {
BlockType Sin
SineType "Time based"
TimeSource "Use simulation time"
Amplitude "1"
Bias "0"
Frequency "1"
Phase "0"
Samples "10"
Offset "0"
SampleTime "-1"
VectorParams1D on
}
Block {
BlockType StateSpace
A "1"
B "1"
C "1"
D "1"
X0 "0"
AbsoluteTolerance "auto"
Realization "auto"
}
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 Switch
Criteria "u2 >= Threshold"
Threshold "0"
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType TransportDelay
DelayTime "1"
InitialInput "0"
BufferSize "1024"
PadeOrder "0"
TransDelayFeedthrough off
}
}
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 "overvoltage"
Location [89, 114, 810, 541]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "\n"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [545, 115, 610, 135]
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
Resistance "0"
Inductance "0"
Capacitance "0.3523e-6"
Measurements "None"
}
Block {
BlockType Reference
Name "\n\n"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [535, 94, 605, 116]
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
Resistance "0"
Inductance "0"
Capacitance "0.3523e-6"
Measurements "None"
}
Block {
BlockType Reference
Name "\n\n\n"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [545, 74, 615, 96]
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
Resistance "0"
Inductance "0"
Capacitance "0.3523e-6"
Measurements "None"
}
Block {
BlockType Reference
Name "1"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [325, 73, 355, 97]
SourceBlock "powerlib/Elements/Breaker"
SourceType "Breaker"
ShowPortLabels on
BreakerResistance "0.01"
InitialState "0"
SnubberResistance "100"
SnubberCapacitance "1e-7"
SwitchingTimes "[ 3.05e-3 0.5 ]"
External off
Measurements "None"
}
Block {
BlockType Reference
Name "2"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [325, 93, 355, 117]
SourceBlock "powerlib/Elements/Breaker"
SourceType "Breaker"
ShowPortLabels on
BreakerResistance "0.01"
InitialState "0"
SnubberResistance "1e6"
SnubberCapacitance "inf"
SwitchingTimes "[ 8.05e-3 0.5]"
External off
Measurements "None"
}
Block {
BlockType Reference
Name "3"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [325, 113, 355, 137]
SourceBlock "powerlib/Elements/Breaker"
SourceType "Breaker"
ShowPortLabels on
BreakerResistance "0.01"
InitialState "0"
SnubberResistance "1e6"
SnubberCapacitance "inf"
SwitchingTimes "[5.05e-3 0.5]"
External off
Measurements "None"
}
Block {
BlockType Reference
Name "A"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [53, 185, 77, 220]
Orientation "up"
SourceBlock "powerlib/Electrical\nSources/AC Voltage Source"
SourceType "AC Voltage Source"
ShowPortLabels on
Amplitude "220e3"
Phase "0"
Frequency "50"
SampleTime "0"
Measurements "None"
}
Block {
BlockType Reference
Name "B"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [88, 185, 112, 220]
Orientation "up"
SourceBlock "powerlib/Electrical\nSources/AC Voltage Source"
SourceType "AC Voltage Source"
ShowPortLabels on
Amplitude "110e3"
Phase "120"
Frequency "50"
SampleTime "0"
Measurements "None"
}
Block {
BlockType Reference
Name "C"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [128, 185, 152, 220]
Orientation "up"
SourceBlock "powerlib/Electrical\nSources/AC Voltage Source"
SourceType "AC Voltage Source"
ShowPortLabels on
Amplitude "110e3"
Phase "240"
Frequency "50"
SampleTime "0"
Measurements "None"
}
Block {
BlockType Reference
Name "Distributed Parameters Line"
Ports [0, 0, 0, 0, 0, 3, 3]
Position [420, 71, 500, 139]
SourceBlock "powerlib/Elements/Distributed Parameters Line"
SourceType "Distributed Parameters Line"
ShowPortLabels on
Phases "3"
Frequency "50"
Resistance "[0.01273 0.3864]"
Inductance "[0.9337e-3 4.1264e-3]"
Capacitance "[12.74e-9 7.751e-9]"
Length "300"
x1 "[0 -1848.57283842787 -1135.73678089199 -691.716"
"724056673;0.000339324940197446 -1453.12264745103 -782.26880522542 -475.973275"
"624749;0.000678649880394891 -1041.17479972578 -419.919540525037 -254.82598620"
"4974;0.00101797482059234 -617.406239900908 -52.8028265982025 -30.785595051247"
"7;0.00135729976078978 -186.628116060171 314.91337073087 193.604312491093;0.00"
"169662470098723 246.268842418345 679.054279556309 415.796182931684]"
x2 "[0 -2523.86296756548 -1220.57036024596 -743.397"
"537212468;0.000339324940197446 -2056.96832905059 -844.076146304593 -513.59926"
"4493548;0.000678649880394891 -1566.72042610578 -457.998929472394 -277.9699737"
"3447;0.00101797482059234 -1058.68516305345 -66.7219387994764 -39.184821891621"
"9;0.00135729976078978 -538.630388464831 325.312562360139 200.045204816021;0.0"
"0169662470098723 -12.4604113647479 713.653710450641 437.004069396359]"
x3 "[0 -5.38883318879392 -8.58264667071442 -5.23317"
"436215503;0.000339324940197446 -5.08090677335107 -7.43087179440472 -4.5299578"
"9960867;0.000678649880394891 -4.71529558087688 -6.19473241354302 -3.775311717"
"31802;0.00101797482059234 -4.29615048464237 -4.88826272079324 -2.977803497924"
"18;0.00135729976078978 -3.8282301414186 -3.52629538604804 -2.14648754725649;0"
".00169662470098723 -3.31684696528267 -2.12429315750048 -1.29080199858448]"
x4 "[0 -2.63794577530301 -4.07947679327128 -2.48412"
"813433049;0.000339324940197446 -2.0445302474307 -2.69128013848378 -1.63684245"
"349638;0.000678649880394891 -1.42790266771059 -1.27252872218569 -0.7709733000"
"30843;0.00101797482059234 -0.795063759839105 0.160670023866656 0.103648901835"
"945;0.00135729976078978 -0.15319829868533 1.59204464384943 0.977094352374937;"
"0.00169662470098723 0.49040646021498 3.0053443916881 1.83944661180266]"
x5 "0.00169662470098723"
Measurements "None"
}
Block {
BlockType Reference
Name "Ground"
Ports [0, 0, 0, 0, 0, 1]
Position [34, 255, 56, 280]
Orientation "down"
ShowName off
SourceBlock "powerlib/Elements/Ground"
SourceType "Ground"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "a"
}
Block {
BlockType Reference
Name "Ground1"
Ports [0, 0, 0, 0, 0, 1]
Position [89, 255, 111, 280]
Orientation "down"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -