📄 power_syncmachine.mdl
字号:
Block {
BlockType Gain
Name "Gain"
Position [435, 80, 465, 110]
ShowName off
Gain "30/pi"
Port {
PortNumber 1
Name "N (rpm)"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Gain
Name "Gain1"
Position [440, 150, 470, 180]
ShowName off
Gain "1/1e3"
Port {
PortNumber 1
Name "Peo (KW)"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Reference
Name "Ground (output)"
Ports [0, 0, 0, 0, 0, 1]
Position [620, 335, 640, 355]
Orientation "down"
ShowName off
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Elements/Ground"
SourceType "Ground"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "a"
}
Block {
BlockType Scope
Name "Measurements"
Ports [4]
Position [545, 42, 600, 183]
BackgroundColor "green"
Floating off
Location [714, 66, 1167, 651]
Open off
NumInputPorts "4"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
}
TimeRange "1"
YMin "37.5~1798.25~-26.5~-70"
YMax "52.5~1800.25~-21~-50"
SaveToWorkspace on
SaveName "is2"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Reference
Name "Network\n 440Vrms LN - 10 MVA"
Ports [0, 0, 0, 0, 0, 1, 3]
Position [480, 250, 605, 320]
Orientation "left"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Electrical\nSources/Three-Phase Source"
SourceType "Three-Phase Source"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
Voltage "440*sqrt(3)"
PhaseAngle "0"
Frequency "60"
InternalConnection "Yn"
SpecifyImpedance off
Resistance "762^2/10e6/10"
Inductance "762^2/10e6/(2*pi*60)"
ShortCircuitLevel "100e6"
BaseVoltage "25e3"
XRratio "7"
}
Block {
BlockType Step
Name "Pm step"
Position [30, 235, 50, 255]
Time "0.1"
Before "-48863.7"
After "-60000"
SampleTime "0"
}
Block {
BlockType Reference
Name "Synchronous Machine\n762 V 111.9 kW"
Ports [2, 1, 0, 0, 0, 0, 3]
Position [80, 217, 185, 328]
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Machines/Synchronous Machine\nSI Funda"
"mental"
SourceType "Synchronous Machine"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
PresetModel "No"
MechanicalLoad "Mechanical power Pm"
ShowDetailedParameters on
RotorType "Salient-pole"
NominalParameters "[ 111.9e3 440*sqrt(3) 60 70]"
Stator "[ .26 1.14e-3 13.7e-3 11.0e-3 ]\n"
Field "[ 0.13 2.1e-3 ]\n"
Dampers2 "[ 1 2 3 4 5 6 ]"
Dampers1 "[ 0.0224 1.4e-3 0.02 1e-3 ]\n"
Mechanical "[ 24.9 0 2 ]"
PolePairs "20"
InitialConditions "[0 -111.483 53.9768 53.9768 53.9768 -173.297 66"
".7033 -53.2967 17.8876]"
SetSaturation off
Saturation " [46.376,51.647,61.167,66.773,72.147,78.393,86."
"24,95.347,105.58;644,708.2,816.2,870.87,917.13,962.47,1012,1059.3,1104.5]"
DisplayVfd off
Units "1"
LoadFlowParameters "[1 -50000 0 0 0]"
}
Block {
BlockType Reference
Name "i mach"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [0, 1, 0, 0, 0, 1, 1]
Position [265, 243, 290, 267]
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Measurements/Current Measurement"
SourceType "Current Measurement"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
PhasorSimulation off
OutputType "Magnitude"
PSBequivalent "0"
}
Block {
BlockType Scope
Name "iA (A)"
Ports [1]
Position [390, 202, 425, 248]
BackgroundColor "green"
NamePlacement "alternate"
Floating off
Location [378, 614, 702, 853]
Open off
NumInputPorts "1"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "1 "
YMin "430"
YMax "520"
SaveToWorkspace on
SaveName "is1"
DataFormat "Array"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Reference
Name "powergui"
Ports []
Position [20, 15, 111, 44]
DropShadow on
Priority "2"
UserDataPersistent on
UserData "DataTag0"
FontSize 12
FontWeight "bold"
SourceBlock "powerlib/powergui"
SourceType "PSB option menu block"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
SimulationMode "Continuous"
SampleTime "0"
echomessages off
RestoreLinks "warning"
x0status "blocks"
Frange "logspace(0,3,50)"
Ylog off
Xlog off
ShowGrid off
save off
variable "ZData"
ZoomFFT on
StartTime "0.0"
cycles "2"
DisplayStyle "off"
fundamental "60"
FreqAxis off
MaxFrequency "1000"
frequencyindice "60"
frequencyindicesteady "1"
RmsSteady "1"
display off
Ts "0"
frequency "60"
methode off
HookPort off
Interpol off
}
Block {
BlockType Constant
Name "vfd"
Position [15, 291, 65, 309]
Value "17.8876"
}
Line {
Name "is (A rms)"
Labels [-1, 1]
SrcBlock "Fcn"
SrcPort 1
DstBlock "Measurements"
DstPort 1
}
Line {
SrcBlock "Bus\nSelector1"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
Name "N (rpm)"
Labels [-1, 1]
SrcBlock "Gain"
SrcPort 1
DstBlock "Measurements"
DstPort 2
}
Line {
Name "Peo (KW)"
Labels [-1, 1]
SrcBlock "Gain1"
SrcPort 1
DstBlock "Measurements"
DstPort 4
}
Line {
SrcBlock "Synchronous Machine\n762 V 111.9 kW"
SrcPort 1
Points [40, 0; 0, -95]
Branch {
Points [20, 0]
DstBlock "Bus\nSelector"
DstPort 1
}
Branch {
Points [0, -80]
DstBlock "Bus\nSelector1"
DstPort 1
}
}
Line {
SrcBlock "vfd"
SrcPort 1
DstBlock "Synchronous Machine\n762 V 111.9 kW"
DstPort 2
}
Line {
LineType "Connection"
SrcBlock "Synchronous Machine\n762 V 111.9 kW"
SrcPort RConn1
Points [50, 0]
DstBlock "i mach"
DstPort LConn1
}
Line {
SrcBlock "Pm step"
SrcPort 1
DstBlock "Synchronous Machine\n762 V 111.9 kW"
DstPort 1
}
Line {
LineType "Connection"
SrcBlock "Ground (output)"
SrcPort LConn1
Points [0, -35]
DstBlock "Network\n 440Vrms LN - 10 MVA"
DstPort LConn1
}
Line {
SrcBlock "i mach"
SrcPort 1
Points [5, 0; 0, -25]
DstBlock "iA (A)"
DstPort 1
}
Line {
LineType "Connection"
SrcBlock "Synchronous Machine\n762 V 111.9 kW"
SrcPort RConn3
Points [150, 0]
Branch {
ConnectType "DEST_SRC"
DstBlock "Network\n 440Vrms LN - 10 MVA"
DstPort RConn3
}
Branch {
ConnectType "DEST_SRC"
DstBlock "10 kW"
DstPort LConn3
}
}
Line {
LineType "Connection"
SrcBlock "Synchronous Machine\n762 V 111.9 kW"
SrcPort RConn2
Points [135, 0]
Branch {
ConnectType "DEST_SRC"
DstBlock "Network\n 440Vrms LN - 10 MVA"
DstPort RConn2
}
Branch {
ConnectType "DEST_SRC"
DstBlock "10 kW"
DstPort LConn2
}
}
Line {
LineType "Connection"
SrcBlock "i mach"
SrcPort RConn1
Points [15, 0]
Branch {
ConnectType "DEST_SRC"
DstBlock "Network\n 440Vrms LN - 10 MVA"
DstPort RConn1
}
Branch {
ConnectType "DEST_SRC"
DstBlock "10 kW"
DstPort LConn1
}
}
Line {
Name "<Output active power Peo (W)>"
Labels [0, 1]
SrcBlock "Bus\nSelector"
SrcPort 3
Points [0, 10]
DstBlock "Gain1"
DstPort 1
}
Line {
Name "<Load angle delta (deg)>"
Labels [-1, 1]
SrcBlock "Bus\nSelector"
SrcPort 2
DstBlock "Measurements"
DstPort 3
}
Line {
Name "<Rotor speed wm (rad/s)>"
Labels [2, 0]
SrcBlock "Bus\nSelector"
SrcPort 1
Points [0, -10]
DstBlock "Gain"
DstPort 1
}
Annotation {
Name "Motor operation\nInitial conditions obtained f"
"rom Load Flow\nElectrical power = -50 kW\nMechanical power = -48.9 kW\n\nLoad"
" Flow: \nP&V Generator \nActive power -50e3 Watts"
Position [11, 142]
HorizontalAlignment "left"
}
}
}
MatData {
NumRecords 1
DataRecord {
Tag DataTag0
Data " %)30 . X ( 8 ( @ % "
"\" $ ! 0 % 0 # $ !X <&]W97)G=6D <W1E861Y<W1A"
"=&4 :6YI='-T871E<P ;&]A9&9L;W< ;'1I=FEE=P >FUE=&5R 9F9T=&]O;"
" <F5P;W)T :'ES=&5R97-I<P ;&EN97!A<F%M #@ # & \" "
" 8 !0 @ $ \"0 . , 8 ( !"
"@ % \" 0 ) X P !@ @ & "
" 4 ( ! D #@ # & \" 8 "
" !0 @ $ \"0 . , 8 ( !@ "
" % \" 0 ) X P !@ @ & "
" 4 ( ! D #@ # & \" 8 "
" !0 @ $ \"0 . , 8 ( !@ "
" % \" 0 ) X P !@ @ & "
" 4 ( ! D #@ # & \" 8 !"
"0 @ $ \"0 "
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -