⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 study3.mdl

📁 电力传输线频率和阻抗关系仿真
💻 MDL
📖 第 1 页 / 共 3 页
字号:
      CopyFcn		      "powergui('Copy_Callback',gcb,0,[]);"
      DeleteFcn		      "powergui('Copy_Callback',gcb,1,[]);powergui('Cl"
"ose_Callback',gcb,[],[]);\n                                                  "
"                      "
      ModelCloseFcn	      "powergui('Close_Callback',gcb,[],[]);"
      PreSaveFcn	      "try                              \nclose(get_pa"
"ram(gcbh,'userdata'))\nend                              "
      NameChangeFcn	      "handles = get_param(gcb,'UserData');if ~isempty"
"(handles);delete(handles.powergui);end"
      OpenFcn		      "if (power_openblockproxy ('secondary'))\npowerg"
"ui(gcb,'PM')\nend;"
      FontSize		      11
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskHideContents	      off
      MaskType		      "PSB option menu block"
      MaskHelp		      "web(psbhelp)"
      MaskPromptString	      "General parameter: Simulation Mode |General par"
"ameter: Sample Time|General parameter: Echo  Messages|Initial electrical stat"
"es status|Impedance tool: Frequency Range|Impedance tool: Log impedance|Imped"
"ance tool: log Frequency|Impedance tool: grid|Impedance tool: Save Data To Wo"
"rkspace|Impedance tool: Variable Name|Structure Name (PSBFFTSCOPE)|ZoomFFT (P"
"SBFFTSCOPE)|Start Time (PSBFFTSCOPE)|Cycles (PSBFFTSCOPE)|Display style (PSBF"
"FTSCOPE)|Fundamental (PSBFFTSCOPE)|Frequency Axis (PSBFFTSCOPE)|Max Frequency"
" (PSBFFTSCOPE)|Frequency indice  (PSBLOADFLOW)|Frequency indice (STEADYSTATE)"
"|RMS display (STEADYSTATE)|Display Results|Sample time (s):  |General paramet"
"er: phasor frequency|Phasor simulation"
      MaskStyleString	      "popup(Continuous|Discrete|Phasor),edit,checkbox"
",popup(blocks|steady|zero),edit,checkbox,checkbox,checkbox,checkbox,edit,edit"
",checkbox,edit,edit,edit,edit,checkbox,edit,edit,edit,edit,checkbox,edit,edit"
",checkbox"
      MaskTunableValueString  "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on,on,on,on,on"
      MaskCallbackString      "||||||||||||||||||||||||"
      MaskEnableString	      "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,off,off,off,off,off,off,off,off,off"
",off,off,off,off,off,off,off,off,on,on,on,on"
      MaskToolTipString	      "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,,,,,,,,,,,,,,,,,,,,"
      MaskVariables	      "SimulationMode=@1;SampleTime=@2;echomessages=@3"
";x0status=@4;Frange=@5;Ylog=@6;Xlog=@7;ShowGrid=@8;save=@9;variable=&10;struc"
"ture=&11;ZoomFFT=@12;StartTime=@13;cycles=@14;DisplayStyle=&15;fundamental=@1"
"6;FreqAxis=@17;MaxFrequency=@18;frequencyindice=@19;frequencyindicesteady=@20"
";RmsSteady=@21;display=@22;Ts=@23;frequency=@24;methode=@25;"
      MaskInitialization      "powerlibroot = which('powersysdomain');\nPSBroo"
"t = powerlibroot(1:end-16);\n%\nswitch SimulationMode\n	case 1\n"
"		message=sprintf('Continuous');\n	case 2\n        messa"
"ge=sprintf('Discrete,\\nTs = %.4g s.',SampleTime);\n	case 3\n	"
"	message=sprintf('Phasors');\nend\nif strcmp(bdroot,'powerlib')\n  mes"
"sage='powergui';\nend\npower_initmask();"
      MaskDisplay	      "disp(message)"
      MaskSelfModifiable      on
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "Continuous|0|off|blocks|[0:2:500]|off|on|off|of"
"f|ZData||on|0.0|1|1|60|off|1000|1|1|1|off|0|60|off"
      MaskTabNameString	      ",,,,,,,,,,,,,,,,,,,,,,,,"
      System {
	Name			"powergui"
	Location		[137, 405, 682, 583]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  SubSystem
	  Name			  "EquivalentModel1"
	  Ports			  []
	  Position		  [15, 70, 143, 105]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskHideContents	  off
	  MaskInitialization	  "SPS = get_param(gcbh,'UserData');\nif isemp"
"ty(SPS)\n    A=0;\n    B=0;\n    C=0;\n    D=0;\n    x0=0;\nelse\n	A=S"
"PS.A;\n    B=SPS.B;\n    C=SPS.C;\n    D=SPS.D;\n    x0=SPS.x0;\nend"
	  MaskDisplay		  "color('green')\ndisp('EQUIVALENT CIRCUIT')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  System {
	    Name		    "EquivalentModel1"
	    Location		    [279, 434, 674, 551]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      SubSystem
	      Name		      "Sources"
	      Ports		      [0, 1]
	      Position		      [15, 32, 80, 58]
	      FontName		      "Arial"
	      FontSize		      14
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      MaskHideContents	      off
	      System {
		Name			"Sources"
		Location		[16, 100, 737, 762]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  From
		  Name			  "From1"
		  Position		  [15, 21, 85, 49]
		  GotoTag		  "tp313209"
		}
		Block {
		  BlockType		  From
		  Name			  "From2"
		  Position		  [15, 66, 85, 94]
		  GotoTag		  "tp064660"
		}
		Block {
		  BlockType		  Mux
		  Name			  "Mux"
		  Ports			  [2, 1]
		  Position		  [325, 270, 330, 610]
		  Inputs		  "[1 1]"
		  DisplayOption		  "bar"
		}
		Block {
		  BlockType		  Outport
		  Name			  "u"
		  Position		  [365, 433, 395, 447]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Line {
		  SrcBlock		  "Mux"
		  SrcPort		  1
		  DstBlock		  "u"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "From1"
		  SrcPort		  1
		  DstBlock		  "Mux"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "From2"
		  SrcPort		  1
		  DstBlock		  "Mux"
		  DstPort		  2
		}
	      }
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "State-Space"
	      Ports		      [1, 1]
	      Position		      [115, 20, 240, 70]
	      FontName		      "Arial"
	      FontSize		      14
	      FunctionName	      "sfun_spssw_contc"
	      Parameters	      "A, B, C, D, x0"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Yout"
	      Ports		      [1]
	      Position		      [275, 33, 340, 57]
	      FontName		      "Arial"
	      FontSize		      14
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      MaskHideContents	      off
	      System {
		Name			"Yout"
		Location		[124, 85, 631, 971]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "v,i"
		  Position		  [15, 373, 45, 387]
		  IconDisplay		  "Port number"
		}
		Block {
		  BlockType		  Demux
		  Name			  "Demux"
		  Ports			  [1, 2]
		  Position		  [100, 191, 105, 569]
		  BackgroundColor	  "black"
		  ShowName		  off
		  Outputs		  "[1 1]"
		  DisplayOption		  "bar"
		}
		Block {
		  BlockType		  Goto
		  Name			  "Goto1"
		  Position		  [325, 21, 395, 49]
		  GotoTag		  "tp450560"
		  TagVisibility		  "global"
		}
		Block {
		  BlockType		  Goto
		  Name			  "Goto2"
		  Position		  [325, 66, 395, 94]
		  GotoTag		  "tp502243"
		  TagVisibility		  "global"
		}
		Line {
		  SrcBlock		  "v,i"
		  SrcPort		  1
		  DstBlock		  "Demux"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Demux"
		  SrcPort		  1
		  DstBlock		  "Goto1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Demux"
		  SrcPort		  2
		  DstBlock		  "Goto2"
		  DstPort		  1
		}
	      }
	    }
	    Line {
	      SrcBlock		      "State-Space"
	      SrcPort		      1
	      DstBlock		      "Yout"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sources"
	      SrcPort		      1
	      DstBlock		      "State-Space"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Ground
	  Name			  "Ground"
	  Position		  [315, 40, 335, 60]
	  ShowName		  off
	}
	Block {
	  BlockType		  Terminator
	  Name			  "Terminator"
	  Position		  [355, 40, 375, 60]
	  ShowName		  off
	}
	Line {
	  SrcBlock		  "Ground"
	  SrcPort		  1
	  DstBlock		  "Terminator"
	  DstPort		  1
	}
	Annotation {
	  Name			  "Graphical user interface for the analysis o"
"f  SimPowerSystems circuits. \nPlace the Powergui block in the top-level of y"
"our model and double-click\non it to open the GUI."
	  Position		  [14, 29]
	  HorizontalAlignment	  "left"
	  ForegroundColor	  "blue"
	  UseDisplayTextAsClickCallback	off
	  FontName		  "Arial"
	  FontSize		  12
	}
      }
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "Vs"
      SrcPort		      RConn1
      Points		      [0, -25]
      DstBlock		      "Rs_eq"
      DstPort		      LConn1
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "Rs_eq"
      SrcPort		      RConn1
      DstBlock		      "Zeq"
      DstPort		      LConn1
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "Zeq"
      SrcPort		      RConn1
      Points		      [0, 0; 5, 0]
      Branch {
	ConnectType		"DEST_SRC"
	DstBlock		"Pi Section Line"
	DstPort			LConn1
      }
      Branch {
	ConnectType		"DEST_SRC"
	Points			[0, 10; -20, 0]
	DstBlock		"U1"
	DstPort			LConn1
      }
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "U2"
      SrcPort		      LConn1
      Points		      [0, -20; 10, 0; 0, -20]
      Branch {
	ConnectType		"DEST_SRC"
	Points			[0, -5; -30, 0]
	Branch {
	  ConnectType		  "DEST_DEST"
	  SrcBlock		  "Pi Section Line"
	  SrcPort		  RConn1
	  Points		  [0, 0; 50, 0]
	}
	Branch {
	  ConnectType		  "DEST_SRC"
	  Points		  [5, 0]
	  DstBlock		  "load "
	  DstPort		  LConn1
	}
      }
      Branch {
	ConnectType		"DEST_SRC"
	Points			[0, 5]
	DstBlock		"ZM"
	DstPort			LConn1
      }
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "U1"
      SrcPort		      LConn2
      Points		      [0, 30]
      DstBlock		      "Ground1"
      DstPort		      LConn1
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "Vs"
      SrcPort		      LConn1
      Points		      [0, 5]
      DstBlock		      "Ground"
      DstPort		      LConn1
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "load "
      SrcPort		      RConn1
      Points		      [-5, 0]
      DstBlock		      "Ground2"
      DstPort		      LConn1
    }
    Line {
      SrcBlock		      "U1"
      SrcPort		      1
      Points		      [0, 30]
      DstBlock		      "K"
      DstPort		      1
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "Ground3"
      SrcPort		      LConn1
      Points		      [-5, 0; 0, -10; -20, 0]
      DstBlock		      "U2"
      DstPort		      LConn2
    }
    Line {
      SrcBlock		      "U2"
      SrcPort		      1
      Points		      [10, 0]
      DstBlock		      "K1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "K1"
      SrcPort		      1
      Points		      [5, 0]
      DstBlock		      "Scope1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "K"
      SrcPort		      1
      DstBlock		      "Scope"
      DstPort		      1
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "ZM"
      SrcPort		      LConn2
      Points		      [5, 0]
      DstBlock		      "Ground4"
      DstPort		      LConn1
    }
    Annotation {
      Name		      "B2"
      Position		      [371, 23]
      UseDisplayTextAsClickCallback off
    }
    Annotation {
      Name		      "B1"
      Position		      [239, 27]
      UseDisplayTextAsClickCallback off
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -