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

📄 windturbine_pitch.mdl

📁 代码为风力发电机组风轮模型
💻 MDL
📖 第 1 页 / 共 3 页
字号:
	  Inputs		  "3"
	  CollapseMode		  "All dimensions"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  SaturateOnIntegerOverflow off
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [460, 130, 480, 150]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|+-"
	  CollapseMode		  "All dimensions"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  SaturateOnIntegerOverflow off
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Pm"
	  Position		  [815, 153, 845, 167]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Tm"
	  Position		  [890, 328, 920, 342]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Line {
	  SrcBlock		  "Wm"
	  SrcPort		  1
	  Points		  [5, 0]
	  Branch {
	    DstBlock		    "Gain"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 220]
	    DstBlock		    "Divide2"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  DstBlock		  "Divide"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "V"
	  SrcPort		  1
	  Points		  [95, 0]
	  Branch {
	    Points		    [5, 0; 0, 25]
	    DstBlock		    "Divide"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -40]
	    DstBlock		    "Fcn2"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Divide"
	  SrcPort		  1
	  DstBlock		  "Add"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "pitch"
	  SrcPort		  1
	  Points		  [15, 0]
	  Branch {
	    DstBlock		    "Gain1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 45]
	    Branch {
	      DstBlock		      "Fcn"
	      DstPort		      1
	    }
	    Branch {
	      Points		      [0, 60]
	      DstBlock		      "Gain4"
	      DstPort		      1
	    }
	  }
	}
	Line {
	  SrcBlock		  "Gain1"
	  SrcPort		  1
	  Points		  [120, 0]
	  DstBlock		  "Add"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Add"
	  SrcPort		  1
	  Points		  [50, 0; 0, -5]
	  DstBlock		  "Divide1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  Points		  [25, 0; 0, 35]
	  DstBlock		  "Divide1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Fcn"
	  SrcPort		  1
	  Points		  [215, 0]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Divide1"
	  SrcPort		  1
	  Points		  [10, 0; 0, 25]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  Points		  [20, 0]
	  Branch {
	    DstBlock		    "Gain2"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [-5, 0]
	    DstBlock		    "Gain3"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Gain2"
	  SrcPort		  1
	  DstBlock		  "Fcn1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain3"
	  SrcPort		  1
	  Points		  [0, 30]
	  DstBlock		  "Add1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain4"
	  SrcPort		  1
	  DstBlock		  "Add1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Constant1"
	  SrcPort		  1
	  DstBlock		  "Add1"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Add1"
	  SrcPort		  1
	  Points		  [55, 0; 0, -110]
	  DstBlock		  "Product"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Fcn1"
	  SrcPort		  1
	  DstBlock		  "Gain5"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain5"
	  SrcPort		  1
	  Points		  [30, 0]
	  DstBlock		  "Product"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Fcn2"
	  SrcPort		  1
	  Points		  [245, 0]
	  DstBlock		  "Product"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  Points		  [0, 5; 5, 0]
	  Branch {
	    DstBlock		    "Pm"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [10, 0]
	    DstBlock		    "Divide2"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Divide2"
	  SrcPort		  1
	  DstBlock		  "Tm"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "windturbine"
      Ports		      [3, 2]
      Position		      [395, 233, 465, 337]
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      System {
	Name			"windturbine"
	Location		[363, 124, 1153, 652]
	Open			on
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "windspeed"
	  Position		  [30, 43, 60, 57]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Inport
	  Name			  "Wm"
	  Position		  [25, 178, 55, 192]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Inport
	  Name			  "R"
	  Position		  [30, 98, 60, 112]
	  Port			  "3"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Cp"
	  Position		  [330, 185, 390, 215]
	  Expr			  "0.22*(116*(1/u-0.035)-5)*exp(-12.5*(1/u-0.035))"
	}
	Block {
	  BlockType		  Product
	  Name			  "Divide"
	  Ports			  [2, 1]
	  Position		  [245, 162, 275, 233]
	  Inputs		  "*/"
	  CollapseMode		  "All dimensions"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^-10"
	  RndMeth		  "Floor"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Product
	  Name			  "Divide1"
	  Ports			  [2, 1]
	  Position		  [510, 72, 540, 143]
	  Inputs		  "*/"
	  CollapseMode		  "All dimensions"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^-10"
	  RndMeth		  "Floor"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn"
	  Position		  [135, 95, 195, 125]
	  Expr			  "0.5*1.25*pi*u^2"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn1"
	  Position		  [135, 35, 195, 65]
	  Expr			  "u^3"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product"
	  Ports			  [3, 1]
	  Position		  [425, 40, 455, 120]
	  Inputs		  "3"
	  CollapseMode		  "All dimensions"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product1"
	  Ports			  [2, 1]
	  Position		  [155, 153, 180, 197]
	  CollapseMode		  "All dimensions"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Pm"
	  Position		  [570, 28, 600, 42]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Tm"
	  Position		  [600, 103, 630, 117]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Line {
	  SrcBlock		  "Wm"
	  SrcPort		  1
	  Points		  [0, 0; 5, 0]
	  Branch {
	    DstBlock		    "Product1"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, 70; 405, 0; 0, -130]
	    DstBlock		    "Divide1"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "windspeed"
	  SrcPort		  1
	  Points		  [0, 0; 10, 0]
	  Branch {
	    DstBlock		    "Fcn1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 165]
	    DstBlock		    "Divide"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Divide1"
	  SrcPort		  1
	  Points		  [0, 0]
	  DstBlock		  "Tm"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  Points		  [0, 0; 15, 0]
	  Branch {
	    Points		    [20, 0]
	    DstBlock		    "Divide1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -45]
	    DstBlock		    "Pm"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Cp"
	  SrcPort		  1
	  Points		  [5, 0; 0, -95]
	  DstBlock		  "Product"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Fcn"
	  SrcPort		  1
	  Points		  [105, 0; 0, -30]
	  DstBlock		  "Product"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Fcn1"
	  SrcPort		  1
	  Points		  [105, 0; 0, 5]
	  DstBlock		  "Product"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Divide"
	  SrcPort		  1
	  DstBlock		  "Cp"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product1"
	  SrcPort		  1
	  Points		  [45, 0]
	  DstBlock		  "Divide"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "R"
	  SrcPort		  1
	  Points		  [0, 5; 40, 0]
	  Branch {
	    DstBlock		    "Fcn"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 55]
	    DstBlock		    "Product1"
	    DstPort		    1
	  }
	}
      }
    }
    Line {
      SrcBlock		      "Constant"
      SrcPort		      1
      Points		      [80, 0]
      DstBlock		      "Subsystem"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Constant1"
      SrcPort		      1
      Points		      [10, 0; 0, 5]
      DstBlock		      "Subsystem"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Constant2"
      SrcPort		      1
      Points		      [55, 0; 0, 5]
      DstBlock		      "Subsystem"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Subsystem"
      SrcPort		      1
      Points		      [10, 0; 0, 10]
      DstBlock		      "Scope"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Constant6"
      SrcPort		      1
      Points		      [0, -5]
      DstBlock		      "windturbine"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Constant4"
      SrcPort		      1
      Points		      [10, 0; 0, 5]
      DstBlock		      "windturbine"
      DstPort		      1
    }
    Line {
      SrcBlock		      "windturbine"
      SrcPort		      1
      Points		      [20, 0; 0, -30]
      DstBlock		      "Scope2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "windturbine"
      SrcPort		      2
      DstBlock		      "Scope3"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Constant5"
      SrcPort		      1
      Points		      [0, -5]
      DstBlock		      "windturbine"
      DstPort		      2
    }
  }
}

⌨️ 快捷键说明

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