📄 threephaf.mdl
字号:
Model {
Name "threephaf"
Version 4.0
SampleTimeColors off
LibraryLinkDisplay "all"
WideLines on
ShowLineDimensions on
ShowPortDataTypes off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovNameIncrementing off
CovHtmlReporting on
BlockNameDataTip off
BlockParametersDataTip on
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Thu Aug 24 11:20:18 2000"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "avo"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Sun Nov 16 17:00:23 2003"
ModelVersionFormat "1.%<AutoIncrement:75>"
ConfigurationManager "none"
SimParamPage "Solver"
LinearizationMsg "none"
Profile off
AccelSystemTargetFile "accel.tlc"
AccelTemplateMakefile "accel_default_tmf"
AccelMakeCommand "make_rtw"
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "oneshot"
ExtModeTrigPort "1"
ExtModeTrigElement "any"
ExtModeTrigDuration 1000
ExtModeTrigHoldOff 0
ExtModeTrigDelay 0
ExtModeTrigDirection "rising"
ExtModeTrigLevel 0
ExtModeArchiveMode "off"
ExtModeAutoIncOneShot off
ExtModeIncDirWhenArm off
ExtModeAddSuffixToVar off
ExtModeWriteAllDataToWs off
ExtModeArmWhenConnect off
ExtModeLogAll on
BufferReuse on
SimulationMode "normal"
Solver "ode23"
SolverMode "Auto"
StartTime "-eps"
StopTime "0.1"
MaxOrder 5
MaxStep "2e-5"
MinStep "auto"
MaxNumMinSteps "-1"
InitialStep "1e-6"
FixedStep "0.000001"
RelTol "1e-3"
AbsTol "auto"
OutputOption "RefineOutputTimes"
OutputTimes "[]"
Refine "1"
LoadExternalInput off
ExternalInput "[t, u]"
LoadInitialState off
InitialState "xInitial"
SaveTime on
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput on
OutputSaveName "yout"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Array"
Decimation "1"
LimitDataPoints off
MaxDataPoints "1000"
ConsistencyChecking "none"
ArrayBoundsChecking "none"
AlgebraicLoopMsg "warning"
BlockPriorityViolationMsg "warning"
MinStepSizeMsg "warning"
InheritedTsInSrcMsg "warning"
MultiTaskRateTransMsg "error"
SingleTaskRateTransMsg "none"
CheckForMatrixSingularity "none"
IntegerOverflowMsg "warning"
Int32ToFloatConvMsg "warning"
UnnecessaryDatatypeConvMsg "none"
VectorMatrixConversionMsg "none"
SignalLabelMismatchMsg "none"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
SfunCompatibilityCheckMsg "none"
RTWInlineParameters off
BlockReductionOpt off
BooleanDataType off
ParameterPooling on
OptimizeBlockIOStorage on
ZeroCross on
RTWSystemTargetFile "grt.tlc"
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
RTWRetainRTWFile off
TLCProfiler off
TLCDebug off
TLCCoverage 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 "tp002178"
Location [28, 322, 1174, 944]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "3-phase emf"
Ports [0, 3]
Position [125, 187, 200, 263]
BackgroundColor "green"
ShowPortLabels on
Permissions "ReadWrite"
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
MaskPromptString "U_phase_to_phase [RMS]|Frequency|Sampling time"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVariables "Upp=@1;freq=@2;Tc=@3;"
MaskDisplay "plot(-30,-30,130,130)\nplot([0 0 40 42 45 50 55"
" 58 60 58 55 50 45 42 40],[50 90 90 95 98 100 98 95 90 85 82 80 82 85 90])\np"
"lot([60 100],[90 90])\n\nplot([0 0 40 42 45 50 55 58 60 58 55 50 45 42 40],[5"
"0 50 50 55 58 60 58 55 50 45 42 40 42 45 50])\nplot([60 100],[50 50])\n\nplot"
"([0 0 40 42 45 50 55 58 60 58 55 50 45 42 40],[50 10 10 15 18 20 18 15 10 5 2"
" 0 2 5 10])\nplot([60 100],[10 10])"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Upp|50|0.1e-3"
System {
Name "3-phase emf"
Location [267, 74, 924, 531]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Fcn
Name "Cos Fcn"
Position [170, 85, 290, 115]
Expr "cos(2*pi*(u(2))*u(1))"
}
Block {
BlockType DigitalClock
Name "Digital Clock"
Position [35, 38, 100, 62]
SampleTime "Tc"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [125, 27, 130, 118]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [340, 56, 345, 94]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [375, 65, 405, 100]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Fcn
Name "Sine Fcn"
Position [170, 35, 290, 65]
Expr "sin(2*pi*(u(2))*u(1)-pi)"
}
Block {
BlockType Constant
Name "frequency"
Position [35, 83, 100, 107]
Value "freq"
VectorParams1D on
}
Block {
BlockType SubSystem
Name "integrator"
Ports [1, 1]
Position [335, 211, 370, 249]
ForegroundColor "darkGreen"
BackgroundColor "green"
ShowPortLabels on
Permissions "ReadWrite"
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
MaskDisplay "plot(-10,-10,10,10)\nplot([2 1 0 0 0 -1 -2]"
",[7 8 7 0 -7 -8 -7])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "integrator"
Location [262, 459, 567, 673]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 58, 55, 72]
Port "1"
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [85, 46, 90, 84]
BackgroundColor "black"
ShowName off
Outputs "2"
BusSelectionMode off
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1]
Position [120, 25, 150, 55]
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "Upp/(2*pi*freq)"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Integrator
Name "Integrator2"
Ports [1, 1]
Position [120, 70, 150, 100]
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [205, 46, 210, 84]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "Out1"
Position [235, 58, 265, 72]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Integrator2"
SrcPort 1
Points [5, 0; 0, -10]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Integrator1"
SrcPort 1
Points [5, 0; 0, 15]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [5, 0; 0, 10]
DstBlock "Integrator2"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [5, 0; 0, -15]
DstBlock "Integrator1"
DstPort 1
}
Annotation {
Text "Power invariant emf vector on alpha/bet"
"a frame"
Position [147, 155]
}
}
}
Block {
BlockType Constant
Name "line voltage"
Position [35, 143, 100, 167]
Value "Upp"
VectorParams1D on
}
Block {
BlockType SubSystem
Name "rec_to_pol"
Ports [1, 3]
Position [390, 290, 440, 360]
ForegroundColor "blue"
ShowPortLabels on
Permissions "ReadWrite"
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
System {
Name "rec_to_pol"
Location [326, 203, 746, 497]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "rect"
Position [60, 95, 80, 115]
Port "1"
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Derivative
Name "Derivative"
Position [125, 185, 170, 205]
ShowName off
}
Block {
BlockType Gain
Name "Gain"
Position [205, 210, 235, 240]
NamePlacement "alternate"
ShowName off
Gain "-1"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType SubSystem
Name "alfa/beta
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -