📄 fm_lib.mdl
字号:
LeftPortType "p1" RightPortType "p1" LConnTagsString "__newl0|__newl1" RConnTagsString "__newr0|__newr1|__newr2" } Block { BlockType PMIOPort Name "pmc_out_0" Tag "PMCPort" Position [275, 96, 305, 114] Orientation "left" Port "1" Side "Left" } Block { BlockType PMIOPort Name "pmc_in_0" Tag "PMCPort" Position [65, 116, 95, 134] Port "2" Side "Right" } Block { BlockType PMIOPort Name "pmc_in_1" Position [65, 216, 95, 234] Port "3" Side "Right" } Block { BlockType PMIOPort Name "pmc_out_1" Position [275, 166, 305, 184] Orientation "left" Port "4" Side "Left" } Block { BlockType PMIOPort Name "pmc_out_2" Position [275, 236, 305, 254] Orientation "left" Port "5" Side "Left" } Block { BlockType Outport Name "out_1" Position [185, 25, 205, 45] } Line { LineType "Connection" SrcBlock "pmc_in_0" SrcPort RConn1 DstBlock "pmc" DstPort LConn1 } Line { LineType "Connection" SrcBlock "pmc" SrcPort RConn1 DstBlock "pmc_out_0" DstPort RConn1 } Line { SrcBlock "g1" SrcPort 1 DstBlock "out_1" DstPort 1 } Line { LineType "Connection" SrcBlock "pmc_in_1" SrcPort RConn1 DstBlock "pmc" DstPort LConn2 } Line { LineType "Connection" SrcBlock "pmc" SrcPort RConn2 Points [0, 0] DstBlock "pmc_out_1" DstPort RConn1 } Line { LineType "Connection" SrcBlock "pmc" SrcPort RConn3 DstBlock "pmc_out_2" DstPort RConn1 } Annotation { Name "Tap Changer Under Load " Position [164, 45] } } } Block { BlockType From Name "From Bus2" Tag "PSATblock" Description "Connection" Position [325, 71, 365, 99] CloseFcn "tagdialog Close" GotoTag "A" } Block { BlockType Goto Name "Goto Bus1" Tag "PSATblock" Description "Connection" Position [250, 70, 290, 100] GotoTag "A" TagVisibility "local" } Block { BlockType SubSystem Name "Link1" Tag "PSATblock" Description "Connection" Ports [0, 0, 1, 0, 0, 1, 1] Position [178, 80, 212, 110] Orientation "down" ShowName off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" Opaque off RequestExecContextInheritance off MaskType "Link" MaskDescription "Link block" MaskInitialization "rot = strcmp(get_param(gcb,'NamePlacement'),'normal');\n" MaskDisplay "plot([0.45 0],[0.5 0.5],[1 0.55],[0.5 0.5])\ncolor('green')\nplot([0.45 0.55 0.55 ""0.45 0.45],[0.45 0.45 0.55 0.55 0.45],[0.5 0.5],rot*0.45+[0.1 0.45])\nplot([0.45 0.55 0.55 0.45 0.4""5],rot*0.9+[0 0 0.1 0.1 0],1-rot,1-rot)\n" MaskSelfModifiable on MaskIconFrame off MaskIconOpaque on MaskIconRotate "port" MaskIconUnits "autoscale" System { Name "Link1" Location [716, 243, 980, 409] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType EnablePort Name "Enable" Ports [] Position [125, 115, 145, 135] } Block { BlockType PMComponent Name "Atomic Subsystem" Ports [0, 0, 0, 0, 0, 1, 1] Position [80, 54, 180, 96] ShowName off PhysicalDomain "psatdomain" LeftPortType "p1" RightPortType "p1" LConnTagsString "__newl0" RConnTagsString "__newr0" } Block { BlockType PMIOPort Name "Connection\nPort" Tag "PMCPort" Position [15, 66, 45, 84] ShowName off Port "1" Side "Left" } Block { BlockType PMIOPort Name "Connection\nPort1" Tag "PMCPort" Position [220, 66, 250, 84] Orientation "left" ShowName off Port "2" Side "Right" } Line { LineType "Connection" SrcBlock "Connection\nPort" SrcPort RConn1 DstBlock "Atomic Subsystem" DstPort LConn1 } Line { LineType "Connection" SrcBlock "Atomic Subsystem" SrcPort RConn1 DstBlock "Connection\nPort1" DstPort RConn1 } Annotation { Name "Link" Position [130, 26] } } } Block { BlockType SubSystem Name "Link2" Tag "PSATblock" Description "Connection" Ports [0, 1, 0, 0, 0, 1, 1] Position [170, 146, 210, 184] ShowName off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" Opaque off RequestExecContextInheritance off MaskType "Link2" MaskDescription "Link block." MaskDisplay "plot([0 0.45],[0.5 0.5],[0.5 0.5],[0 0.4],[0.5 1],[0 0])\ncolor('green')\nplo""t([0.5 0.5],[0.6 1],[0.5 0.9],[1 1])\nplot([0.9 0.985 0.985 0.9 0.9],[0.1 0.1 -0.1 -0.1 0.1]+1)\nplo""t([0.45 0.55 0.55 0.45 0.45],[0.6 0.6 0.4 0.4 0.6])\nplot(0, -0.5,0,1.5)\n\n" MaskIconFrame off MaskIconOpaque on MaskIconRotate "port" MaskIconUnits "autoscale" System { Name "Link2" Location [61, 338, 517, 640] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Constant Name "g1" Position [130, 20, 155, 50] OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType PMComponent Name "pmc" Ports [0, 0, 0, 0, 0, 1, 1] Position [130, 73, 230, 277] PhysicalDomain "psatdomain" LeftPortType "p1" RightPortType "p1" LConnTagsString "__newl0" RConnTagsString "__newr0" } Block { BlockType PMIOPort Name "pmc_out_0" Tag "PMCPort" Position [275, 166, 305, 184] Orientation "left" Port "1" Side "Left" } Block { BlockType PMIOPort Name "pmc_in_0" Tag "PMCPort" Position [65, 166, 95, 184] Port "2" Side "Right" } Block { BlockType Outport Name "out_1" Position [185, 25, 205, 45] } Line { SrcBlock "g1" SrcPort 1 DstBlock "out_1" DstPort 1 } Line { LineType "Connection" SrcBlock "pmc" SrcPort RConn1 DstBlock "pmc_out_0" DstPort RConn1 } Line { LineType "Connection" SrcBlock "pmc_in_0" SrcPort RConn1 DstBlock "pmc" DstPort LConn1 } Annotation { Name "Tap Changer Under Load " Position [164, 45] } } } Block { BlockType SubSystem Name "Varname" Tag "PSATblock" Description "OPF & CPF" Ports [] Position [273, 145, 358, 182] ShowName off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" Opaque off RequestExecContextInheritance off MaskType "Varname" MaskDescription "This block defines the indexes of the variables to be plotted." MaskPromptString "Plot variable list" MaskStyleString "edit" MaskTunableValueString "on" MaskEnableString "on" MaskVisibilityString "on" MaskToolTipString "on" MaskVariables "pxq=@1;" MaskDisplay "plot([-2 22 22 -2 -2],[-1.1 -1.1 1.1 1.1 -1.1])\ncolor('blue')\ntext(0,0.1,'Plot variable list')" MaskIconFrame off MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "[]" System { Name "Varname" Location [477, 86, 744, 293] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Annotation { Position [139, 85] } } } Annotation { Name "Buses & Connections" Position [215, 32] ForegroundColor "blue" FontSize 12 } Annotation { Name "Link" Position [166, 118] } Annotation { Name "Link2" Position [196, 197] } Annotation { Name "Varname" Position [317, 197] }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -