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

📄 sim12ex9.mdl

📁 solve power flows by gauss seidel method ans newton Rapson
💻 MDL
📖 第 1 页 / 共 2 页
字号:
Model {
  Name			  "sim12ex9"
  Version		  2.09
  SimParamPage		  Solver
  SampleTimeColors	  off
  InvariantConstants	  off
  WideVectorLines	  off
  ShowLineWidths	  off
  PaperOrientation	  landscape
  PaperType		  usletter
  PaperUnits		  inches
  StartTime		  "0.0"
  StopTime		  "15"
  Solver		  ode23
  RelTol		  "1e-3"
  AbsTol		  "1e-3"
  Refine		  "1"
  MaxStep		  ".05"
  InitialStep		  "auto"
  FixedStep		  "auto"
  MaxOrder		  5
  OutputOption		  RefineOutputTimes
  OutputTimes		  "[]"
  LoadExternalInput	  off
  ExternalInput		  "[t, u]"
  SaveTime		  off
  TimeSaveName		  "tout"
  SaveState		  off
  StateSaveName		  "xout"
  SaveOutput		  off
  OutputSaveName	  "yout"
  LoadInitialState	  off
  InitialState		  "xInitial"
  SaveFinalState	  off
  FinalStateName	  "xFinal"
  LimitMaxRows		  off
  MaxRows		  "1000"
  Decimation		  "1"
  AlgebraicLoopMsg	  warning
  MinStepSizeMsg	  warning
  UnconnectedInputMsg	  warning
  UnconnectedOutputMsg	  warning
  UnconnectedLineMsg	  warning
  ConsistencyChecking	  off
  ZeroCross		  on
  SimulationMode	  normal
  RTWSystemTargetFile	  "grt.tlc"
  RTWInlineParameters	  off
  RTWRetainRTWFile	  off
  RTWTemplateMakefile	  "grt_vc.tmf"
  RTWMakeCommand	  "make_rtw"
  RTWGenerateCodeOnly	  off
  ExtModeMexFile	  "ext_comm"
  ExtModeBatchMode	  off
  BlockDefaults {
    Orientation		    right
    ForegroundColor	    black
    BackgroundColor	    white
    DropShadow		    off
    NamePlacement	    normal
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    normal
    FontAngle		    normal
    ShowName		    on
  }
  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		    "sim12ex9"
    Location		    [102, 58, 960, 751]
    Open		    on
    ScreenColor		    white
    Block {
      BlockType		      Gain
      Name		      "1/R"
      Position		      [230, 113, 285, 167]
      Orientation	      left
      Gain		      "20"
    }
    Block {
      BlockType		      TransferFcn
      Name		      "Amplifier"
      Position		      [240, 409, 310, 461]
      Numerator		      "10"
      Denominator	      "[0.1  1]"
    }
    Block {
      BlockType		      TransferFcn
      Name		      "Exciter"
      Position		      [335, 411, 405, 459]
      Numerator		      "1"
      Denominator	      "[0.4  1]"
    }
    Block {
      BlockType		      TransferFcn
      Name		      "Generator"
      Position		      [505, 399, 575, 451]
      Numerator		      "[0.8]"
      Denominator	      "[ 1.4 1]"
    }
    Block {
      BlockType		      TransferFcn
      Name		      "Governor"
      Position		      [110, 182, 175, 228]
      Numerator		      "[1]"
      Denominator	      "[0.2   1]"
    }
    Block {
      BlockType		      TransferFcn
      Name		      "Inertia & load"
      Position		      [415, 182, 495, 228]
      Numerator		      "[1]"
      Denominator	      "[10  0.8]"
    }
    Block {
      BlockType		      Integrator
      Name		      "Integrator"
      Ports		      [1, 1, 0, 0, 0]
      Position		      [155, 68, 185, 112]
      Orientation	      left
      ExternalReset	      none
      InitialConditionSource      internal
      InitialCondition	      "0"
      LimitOutput	      off
      UpperSaturationLimit      "inf"
      LowerSaturationLimit      "-inf"
      ShowSaturationPort      off
      ShowStatePort	      off
      AbsoluteTolerance	      "auto"
    }
    Block {
      BlockType		      Integrator
      Name		      "Integrator1"
      Ports		      [1, 1, 0, 0, 0]
      Position		      [590, 187, 620, 223]
      ExternalReset	      none
      InitialConditionSource      internal
      InitialCondition	      "0"
      LimitOutput	      off
      UpperSaturationLimit      "inf"
      LowerSaturationLimit      "-inf"
      ShowSaturationPort      off
      ShowStatePort	      off
      AbsoluteTolerance	      "auto"
    }
    Block {
      BlockType		      Gain
      Name		      "K1=Ps"
      Position		      [355, 253, 405, 307]
      Orientation	      left
      Gain		      "1.5"
    }
    Block {
      BlockType		      Gain
      Name		      "K2"
      Position		      [480, 305, 535, 365]
      Orientation	      left
      Gain		      ".2"
    }
    Block {
      BlockType		      Gain
      Name		      "K4"
      Position		      [405, 360, 465, 410]
      Orientation	      down
      Gain		      "1.4"
    }
    Block {
      BlockType		      Gain
      Name		      "K5"
      Position		      [635, 325, 695, 375]
      Orientation	      down
      Gain		      "-0.1"
    }
    Block {
      BlockType		      Gain
      Name		      "K6"
      Position		      [615, 400, 675, 450]
      Gain		      ".5"
    }
    Block {
      BlockType		      Gain
      Name		      "KI"
      Position		      [65, 67, 115, 113]
      Orientation	      left
      Gain		      "6"
    }
    Block {
      BlockType		      SubSystem
      Name		      "PID Controller"
      Ports		      [1, 1, 0, 0, 0]
      Position		      [170, 419, 210, 451]
      ShowPortLabels	      off
      MaskType		      "PID Controller"
      MaskDescription	      "Enter expressions for proportional, integral, "
			      "and derivative terms.\nP+I/s+Ds"
      MaskHelp		      "This block implements a PID controller where "
			      "parameters are entered for the Proportional, "
			      "Integral and Derivative terms. Unmask this "
			      "block to see how it works. The derivative "
			      "term is implemented using a true derivative "
			      "block."
      MaskPromptString	      "Proportional:|Integral|Derivative:"
      MaskStyleString	      "edit,edit,edit"
      MaskInitialization      "P=@1; I=@2; D=@3;"
      MaskDisplay	      "disp('PID')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      none
      MaskIconUnits	      autoscale
      MaskValueString	      "1|0.25|0.3"
      System {
	Name			"PID Controller"
	Location		[0, 0, 362, 244]
	Open			off
	ScreenColor		white
	Block {
	  BlockType		  Inport
	  Name			  "In_1"
	  Position		  [25, 65, 45, 85]
	  Port			  "1"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Gain
	  Name			  "D"
	  Position		  [95, 129, 115, 151]
	  Gain			  "D"
	}
	Block {
	  BlockType		  Derivative
	  Name			  "Derivative"
	  Position		  [150, 128, 190, 152]
	}
	Block {
	  BlockType		  TransferFcn
	  Name			  "Integral"
	  Position		  [110, 57, 145, 93]
	  Numerator		  "[I]"
	  Denominator		  "[1 0]"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Proportional"
	  Position		  [120, 13, 140, 37]
	  Gain			  "P"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [3, 1, 0, 0, 0]
	  Position		  [245, 57, 265, 93]
	  Inputs		  "+++"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out_1"
	  Position		  [290, 65, 310, 85]
	  Port			  "1"
	  OutputWhenDisabled	  held
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Proportional"
	  SrcPort		  1
	  Points		  [65, 0; 0, 40]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Integral"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Derivative"
	  SrcPort		  1
	  Points		  [20, 0; 0, -55]
	  DstBlock		  "Sum"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "In_1"
	  SrcPort		  1
	  Points		  [15, 0]
	  Branch {
	    Points		    [15, 0]
	    Branch {
	      Points		      [0, -50]
	      DstBlock		      "Proportional"
	      DstPort		      1
	    }
	    Branch {
	      DstBlock		      "Integral"
	      DstPort		      1
	    }
	  }
	  Branch {
	    Points		    [0, 65]
	    DstBlock		    "D"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Out_1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "D"
	  SrcPort		  1
	  DstBlock		  "Derivative"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "Scope 2"
      Ports		      [1, 0, 0, 0, 0]
      Position		      [770, 392, 815, 438]
      Floating		      off
      Location		      [188, 365, 512, 604]
      Open		      off
      Grid		      on
      TickLabels	      on
      ZoomMode		      on
      TimeRange		      "auto"
      YMin		      "-5"
      YMax		      "5"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      LimitMaxRows	      on
      MaxRows		      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope

⌨️ 快捷键说明

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