📄 god.mdl
字号:
InputSameDT on
LogicOutDataTypeMode "Logical (see Advanced Sim. Parameters)"
LogicDataType "uint(8)"
ZeroCross on
}
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 Selector
InputType "Vector"
ElementSrc "Internal"
Elements "1"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "-1"
}
Block {
BlockType "S-Function"
FunctionName "system"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
ShowAdditionalParam off
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType Switch
Criteria "u2 >= Threshold"
Threshold "0"
ShowAdditionalParam off
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow on
ZeroCross on
}
Block {
BlockType Terminator
}
}
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 "god"
Location [214, 81, 1270, 732]
Open on
ModelBrowserVisibility on
ModelBrowserWidth 212
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "3-Phase\nParallel RLC Load"
Ports [3]
Position [233, 320, 277, 380]
Orientation "down"
SourceBlock "powerlib2/Elements/3-Phase\nParallel RLC Load"
SourceType "3-phase parallel RLC load "
Vpp "500e6"
fn "50"
P3 "500000000"
QL3 "25e6"
QC3 "200e6"
}
Block {
BlockType Reference
Name "3-Phase\nSeries RLC Branch "
Ports [3, 3]
Position [540, 118, 605, 162]
SourceBlock "powerlib2/Elements/3-Phase\nSeries RLC Branch "
SourceType "3-phase RLC series element"
R "8.5"
L "127"
C "1e-6"
}
Block {
BlockType Reference
Name "3-Phase Fault1"
Ports [3]
Position [1055, 170, 1105, 220]
SourceBlock "powerlib2/Elements/3-Phase Fault"
SourceType "Three-Phase Fault"
sa on
sb on
sc on
Rdef ".02"
st off
Rt "1e6"
comext off
sw_status "[1 0]"
sw_times "[ 1/50 5/50]"
Ts "0"
init_statext "[1 1 1]"
Rp "1e6"
Cp "inf"
mesure "None"
}
Block {
BlockType Constant
Name "Constant"
Position [45, 75, 75, 105]
Value "4.7e6"
}
Block {
BlockType Constant
Name "Constant1"
Position [40, 135, 70, 165]
Value "106e3"
}
Block {
BlockType Reference
Name "Current Measurement"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [1, 2]
Position [785, 98, 815, 127]
SourceBlock "powerlib2/Measurements/Current Measurement"
SourceType "Current Measurement"
PhasorSimulation off
OutputType "Magnitude"
PSBOutputType "01"
PSBequivalent "1"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [935, 35, 970, 85]
Location [1, 54, 1281, 765]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
DataFormat "StructureWithTime"
}
Block {
BlockType Reference
Name "Simplified Synchronous \nMachine SI Units"
Tag "PoWeRsYsTeMbLoCk"
Ports [2, 4]
Position [110, 74, 180, 146]
SourceBlock "powerlib2/Machines/Simplified Synchronous \nMac"
"hine SI Units"
SourceType "Simplified Synchronous Machine"
conType "3-wire Y"
x1 "[ 500e6,106.5e3,50 ]"
x2 "[ inf,0,2 ]"
x3 "[ 1.9845e-3,263.15e-3 ]"
x4 "[ 0 0 0,0,0 0,0,0 ]"
PSBOutputType "1111"
iounits "1"
LoadFlowParameters "[1,0,0,0,0]"
}
Line {
SrcBlock "3-Phase\nSeries RLC Branch "
SrcPort 1
Points [25, 0; 0, -10]
DstBlock "Current Measurement"
DstPort 1
}
Line {
SrcBlock "Simplified Synchronous \nMachine SI Units"
SrcPort 1
Points [55, 0]
Branch {
DstBlock "3-Phase\nParallel RLC Load"
DstPort 1
}
Branch {
Points [240, 0; 0, 45]
DstBlock "3-Phase\nSeries RLC Branch "
DstPort 1
}
}
Line {
SrcBlock "Simplified Synchronous \nMachine SI Units"
SrcPort 2
Points [50, 0; 0, 45; 15, 0]
Branch {
Points [0, 160]
DstBlock "3-Phase\nParallel RLC Load"
DstPort 2
}
Branch {
Points [220, 0; 0, -5]
DstBlock "3-Phase\nSeries RLC Branch "
DstPort 2
}
}
Line {
SrcBlock "Simplified Synchronous \nMachine SI Units"
SrcPort 3
Points [40, 0; 0, 40; 45, 0]
Branch {
DstBlock "3-Phase\nParallel RLC Load"
DstPort 3
}
Branch {
Points [255, 0]
DstBlock "3-Phase\nSeries RLC Branch "
DstPort 3
}
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [5, 0; 0, 5]
DstBlock "Simplified Synchronous \nMachine SI Units"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [10, 0; 0, -20]
DstBlock "Simplified Synchronous \nMachine SI Units"
DstPort 2
}
Line {
SrcBlock "Current Measurement"
SrcPort 1
Points [50, 0; 0, -45]
DstBlock "Scope2"
DstPort 1
}
Line {
SrcBlock "3-Phase\nSeries RLC Branch "
SrcPort 3
Points [130, 0; 0, 75; 225, 0; 0, -20]
DstBlock "3-Phase Fault1"
DstPort 3
}
Line {
SrcBlock "3-Phase\nSeries RLC Branch "
SrcPort 2
Points [135, 0; 0, 55]
DstBlock "3-Phase Fault1"
DstPort 2
}
Line {
SrcBlock "Current Measurement"
SrcPort 2
Points [50, 0; 0, 40; 95, 0; 0, 20]
DstBlock "3-Phase Fault1"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -