📄 coupled_inductor_test.mdl
字号:
}
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 Integrator
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
IgnoreLimit off
ZeroCross on
}
Block {
BlockType Math
Operator "exp"
OutputSignalType "auto"
SampleTime "-1"
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType "M-S-Function"
MFile "mlfile"
}
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 Probe
ProbeWidth on
ProbeSampleTime on
ProbeComplexSignal on
ProbeSignalDimensions off
ProbeFramedSignal off
ProbeWidthDataType "double"
ProbeSampleTimeDataType "double"
ProbeComplexityDataType "double"
ProbeDimensionsDataType "double"
ProbeFrameDataType "double"
}
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 RateTransition
Integrity on
Deterministic on
X0 "0"
OutPortSampleTime "-1"
}
Block {
BlockType RealImagToComplex
Input "Real and imag"
ConstantPart "0"
SampleTime "-1"
}
Block {
BlockType Selector
InputType "Vector"
IndexMode "One-based"
ElementSrc "Internal"
Elements "1"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "-1"
IndexIsStartValue off
OutputPortSize "1"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
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 Terminator
}
Block {
BlockType UniformRandomNumber
Minimum "-1"
Maximum "1"
Seed "0"
SampleTime "-1"
VectorParams1D on
}
Block {
BlockType ZeroOrderHold
SampleTime "1"
}
}
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 "coupled_inductor_test"
Location [34, 78, 751, 555]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "109"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "3 coupled inductors with \nindependent mutual t"
"erms"
Ports [0, 0, 0, 0, 0, 3, 3]
Position [285, 45, 395, 145]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskPromptString "L1=|L2=|L3=|M12=|M23=|M13="
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "|||||"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on"
MaskVarAliasString ",,,,,"
MaskVariables "L1=@1;L2=@2;L3=@3;M12=@4;M23=@5;M13=@6;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "1e-6|1e-6|1e-6|0.1e-6|0.1e-6|1e-8"
MaskTabNameString ",,,,,"
System {
Name "3 coupled inductors with \nindependent mutual"
" terms"
Location [190, 204, 1094, 929]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Gain
Name "1/L1"
Position [320, 60, 350, 90]
Gain "1/L1"
}
Block {
BlockType Gain
Name "1/L2"
Position [320, 280, 350, 310]
Gain "1/L2"
}
Block {
BlockType Gain
Name "1/L3"
Position [325, 505, 355, 535]
Gain "1/L3"
}
Block {
BlockType Reference
Name "CCS1"
Description "source block"
Ports [1, 0, 0, 0, 0, 1, 1]
Position [495, 64, 535, 111]
AttributesFormatString "\\n"
SourceBlock "powerlib/Electrical\nSources/Controlled Cur"
"rent Source"
SourceType "Controlled Current Source"
ShowPortLabels on
Initialize off
SourceType "AC"
Amplitude "0"
Phase "0"
Frequency "0"
Measurements "None"
}
Block {
BlockType Reference
Name "CCS2"
Description "source block"
Ports [1, 0, 0, 0, 0, 1, 1]
Position [495, 280, 535, 335]
AttributesFormatString "\\n"
SourceBlock "powerlib/Electrical\nSources/Controlled Cur"
"rent Source"
SourceType "Controlled Current Source"
ShowPortLabels on
Initialize off
SourceType "AC"
Amplitude "0"
Phase "0"
Frequency "0"
Measurements "None"
}
Block {
BlockType Reference
Name "CCs3"
Description "source block"
Ports [1, 0, 0, 0, 0, 1, 1]
Position [500, 507, 540, 563]
AttributesFormatString "\\n"
SourceBlock "powerlib/Electrical\nSources/Controlled Cur"
"rent Source"
SourceType "Controlled Current Source"
ShowPortLabels on
Initialize off
SourceType "AC"
Amplitude "0"
Phase "0"
Frequency "0"
Measurements "None"
}
Block {
BlockType Integrator
Name "Int 1"
Ports [1, 1]
Position [255, 60, 285, 90]
IgnoreLimit off
}
Block {
BlockType Integrator
Name "Int 2"
Ports [1, 1]
Position [265, 280, 295, 310]
IgnoreLimit off
}
Block {
BlockType Integrator
Name "Int 3"
Ports [1, 1]
Position [270, 505, 300, 535]
IgnoreLimit off
}
Block {
BlockType Gain
Name "M12/L1"
Position [440, 200, 470, 230]
Orientation "up"
NamePlacement "alternate"
Gain "M12/L1"
}
Block {
BlockType Gain
Name "M12/L2"
Position [375, 200, 405, 230]
Orientation "down"
NamePlacement "alternate"
Gain "M12/L2"
}
Block {
BlockType Gain
Name "M13/L1"
Position [445, 430, 475, 460]
Orientation "up"
NamePlacement "alternate"
Gain "M13/L1"
}
Block {
BlockType Gain
Name "M13/L3"
Position [300, 420, 330, 450]
Orientation "down"
NamePlacement "alternate"
Gain "M13/L3"
}
Block {
BlockType Gain
Name "M23/L2"
Position [375, 415, 405, 445]
Orientation "up"
NamePlacement "alternate"
Gain "M23/L2"
}
Block {
BlockType Gain
Name "M23/L3"
Position [505, 445, 535, 475]
Orientation "down"
NamePlacement "alternate"
Gain "M23/L3"
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [395, 65, 415, 85]
ShowName off
IconShape "round"
Inputs "|+--"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
Port {
PortNumber 1
Name "I1"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Sum
Name "Sum1"
Ports [3, 1]
Position [380, 285, 400, 305]
ShowName off
IconShape "round"
Inputs "-+|-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
Port {
PortNumber 1
Name "I2"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Sum
Name "Sum2"
Ports [3, 1]
Position [385, 510, 405, 530]
ShowName off
IconShape "round"
Inputs "-+|-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
Port {
PortNumber 1
Name "I3"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType SubSystem
Name "VM1"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [0, 1, 0, 0, 0, 2]
Position [190, 63, 215, 87]
AttributesFormatString "\\n"
AncestorBlock "powerlib/Measurements/Voltage Measurement"
CopyFcn "powericon('psbloadfunction',gcbh,'Measureme"
"nt Block','VerifyPhasor');"
LoadFcn "powericon('psbloadfunction',gcbh,'Measureme"
"nt Block','');"
PreSaveFcn "powericon('psbloadfunction',gcbh,'ModelClos"
"eFcn','');"
InitFcn "powericon('psbloadfunction',gcbh,'InitFcnOf"
"SPSBlocks','Measurement Block');"
CloseFcn "powericon('psbloadfunction',gcbh,'CloseFcn'"
",'');"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -