Model { Name "PartII" Version 6.6 MdlSubVersion 0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.165" NumModelReferences 0 NumTestPointedSignals 0 } SavedCharacterEncoding "windows-1252" SaveDefaultBlockParams on SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ShowTestPointIcons on ShowViewerIcons on SortedOrder off ExecutionContextIcon off ShowLinearizationAnnotations on ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Wed Oct 15 08:19:48 2003" Creator "joel" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "joel" ModifiedDateFormat "%" LastModifiedDate "Wed Apr 30 06:44:33 2008" ModelVersionFormat "1.%" ConfigurationManager "None" SimulationMode "normal" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" AccelVerboseBuild off TryForcingSFcnDF off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off CovReportOnPause on ExtModeBatchMode off ExtModeEnableFloating on ExtModeTrigType "manual" ExtModeTrigMode "normal" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigDurationFloating "auto" ExtModeTrigHoldOff 0 ExtModeTrigDelay 0 ExtModeTrigDirection "rising" ExtModeTrigLevel 0 ExtModeArchiveMode "off" ExtModeAutoIncOneShot off ExtModeIncDirWhenArm off ExtModeAddSuffixToVar off ExtModeWriteAllDataToWs off ExtModeArmWhenConnect on ExtModeSkipDownloadWhenConnect off ExtModeLogAll on ExtModeAutoUpdateStatusClock on BufferReuse on ProdHWDeviceType "32-bit Generic" ShowModelReferenceBlockVersion off ShowModelReferenceBlockIO off Array { Type "Handle" Dimension 1 Simulink.ConfigSet { $ObjectID 1 Version "1.2.0" Array { Type "Handle" Dimension 7 Simulink.SolverCC { $ObjectID 2 Version "1.2.0" StartTime "0" StopTime "20" AbsTol "auto" FixedStep "auto" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 5 ConsecutiveZCsStepRelTol "10*128*eps" MaxConsecutiveZCs "1000" ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "0.002" MinStep "auto" MaxConsecutiveMinStep "1" RelTol "1e-3" SolverMode "Auto" Solver "ode45" SolverName "ode45" ZeroCrossControl "UseLocalSettings" AlgebraicLoopSolver "TrustRegion" SolverResetMethod "Fast" PositivePriorityOrder off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" RateTranMode "Deterministic" } Simulink.DataIOCC { $ObjectID 3 Version "1.2.0" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints on MaxDataPoints "1000" LoadExternalInput off LoadInitialState off SaveFinalState off SaveFormat "Array" SaveOutput on SaveState off SignalLogging on InspectSignalLogs off SaveTime on StateSaveName "xout" TimeSaveName "tout" OutputSaveName "yout" SignalLoggingName "sigsOut" OutputOption "RefineOutputTimes" OutputTimes "[]" Refine "1" } Simulink.OptimizationCC { $ObjectID 4 Array { Type "Cell" Dimension 5 Cell "ZeroExternalMemoryAtStartup" Cell "ZeroInternalMemoryAtStartup" Cell "InitFltsAndDblsToZero" Cell "OptimizeModelRefInitCode" Cell "NoFixptDivByZeroProtection" PropName "DisabledProps" } Version "1.2.0" BlockReduction on BooleanDataType on ConditionallyExecuteInputs on InlineParams off InlineInvariantSignals off OptimizeBlockIOStorage on BufferReuse on EnforceIntegerDowncast on ExpressionFolding on ExpressionDepthLimit 2147483647 FoldNonRolledExpr on LocalBlockOutputs on RollThreshold 5 SystemCodeInlineAuto off StateBitsets off DataBitsets off UseTempVars off ZeroExternalMemoryAtStartup on ZeroInternalMemoryAtStartup on InitFltsAndDblsToZero on NoFixptDivByZeroProtection off EfficientFloat2IntCast off OptimizeModelRefInitCode off LifeSpan "inf" BufferReusableBoundary on } Simulink.DebuggingCC { $ObjectID 5 Version "1.2.0" RTPrefix "error" ConsistencyChecking "none" ArrayBoundsChecking "none" SignalInfNanChecking "none" ReadBeforeWriteMsg "UseLocalSettings" WriteAfterWriteMsg "UseLocalSettings" WriteAfterReadMsg "UseLocalSettings" AlgebraicLoopMsg "warning" ArtificialAlgebraicLoopMsg "warning" CheckSSInitialOutputMsg on CheckExecutionContextPreStartOutputMsg off CheckExecutionContextRuntimeOutputMsg off SignalResolutionControl "TryResolveAllWithWarning" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" TimeAdjustmentMsg "none" MaxConsecutiveZCsMsg "error" SolverPrmCheckMsg "none" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskDSMMsg "warning" MultiTaskCondExecSysMsg "none" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" TasksWithSamePriorityMsg "warning" SigSpecEnsureSampleTimeMsg "warning" CheckMatrixSingularityMsg "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterUnderflowMsg "none" ParameterPrecisionLossMsg "warning" ParameterTunabilityLossMsg "warning" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" FcnCallInpInsideContextMsg "Use local settings" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SFcnCompatibilityMsg "none" UniqueDataStoreMsg "none" BusObjectLabelMismatch "warning" RootOutportRequireBusObject "warning" AssertControl "UseLocalSettings" EnableOverflowDetection off ModelReferenceIOMsg "none" ModelReferenceVersionMismatchMessage "none" ModelReferenceIOMismatchMessage "none" ModelReferenceCSMismatchMessage "none" ModelReferenceSimTargetVerbose off UnknownTsInhSupMsg "warning" ModelReferenceDataLoggingMessage "warning" ModelReferenceSymbolNameMessage "warning" ModelReferenceExtraNoncontSigs "error" StateNameClashWarn "warning" StrictBusMsg "None" } Simulink.HardwareCC { $ObjectID 6 Version "1.2.0" ProdBitPerChar 8 ProdBitPerShort 16 ProdBitPerInt 32 ProdBitPerLong 32 ProdIntDivRoundTo "Undefined" ProdEndianess "Unspecified" ProdWordSize 32 ProdShiftRightIntArith on ProdHWDeviceType "32-bit Generic" TargetBitPerChar 8 TargetBitPerShort 16 TargetBitPerInt 32 TargetBitPerLong 32 TargetShiftRightIntArith on TargetIntDivRoundTo "Undefined" TargetEndianess "Unspecified" TargetWordSize 32 TargetTypeEmulationWarnSuppressLevel 0 TargetPreprocMaxBitsSint 32 TargetPreprocMaxBitsUint 32 TargetHWDeviceType "Specified" TargetUnknown on ProdEqTarget on } Simulink.ModelReferenceCC { $ObjectID 7 Version "1.2.0" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" CheckModelReferenceTargetMessage "error" ModelReferenceNumInstancesAllowed "Multi" ModelReferencePassRootInputsByReference on ModelReferenceMinAlgLoopOccurrences off } Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $ObjectID 8 Array { Type "Cell" Dimension 1 Cell "IncludeHyperlinkInReport" PropName "DisabledProps" } Version "1.2.0" SystemTargetFile "grt.tlc" GenCodeOnly off MakeCommand "make_rtw" GenerateMakefile on TemplateMakefile "grt_default_tmf" GenerateReport off SaveLog off RTWVerbose on RetainRTWFile off ProfileTLC off TLCDebug off TLCCoverage off TLCAssert off ProcessScriptMode "Default" ConfigurationMode "Optimized" ConfigAtBuild off IncludeHyperlinkInReport off LaunchReport off TargetLang "C" IncludeBusHierarchyInRTWFileBlockHierarchyMap off IncludeERTFirstTime on Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 9 Array { Type "Cell" Dimension 16 Cell "IgnoreCustomStorageClasses" Cell "InsertBlockDesc" Cell "SFDataObjDesc" Cell "SimulinkDataObjDesc" Cell "DefineNamingRule" Cell "SignalNamingRule" Cell "ParamNamingRule" Cell "InlinedPrmAccess" Cell "CustomSymbolStr" Cell "CustomSymbolStrGlobalVar" Cell "CustomSymbolStrType" Cell "CustomSymbolStrField" Cell "CustomSymbolStrFcn" Cell "CustomSymbolStrBlkIO" Cell "CustomSymbolStrTmpVar" Cell "CustomSymbolStrMacro" PropName "DisabledProps" } Version "1.2.0" ForceParamTrailComments off GenerateComments on IgnoreCustomStorageClasses off IncHierarchyInIds off MaxIdLength 31 PreserveName off PreserveNameWithParent off ShowEliminatedStatement off IncAutoGenComments off SimulinkDataObjDesc off SFDataObjDesc off IncDataTypeInIds off PrefixModelToSubsysFcnNames on MangleLength 1 CustomSymbolStrGlobalVar "$R$N$M" CustomSymbolStrType "$N$R$M" CustomSymbolStrField "$N$M" CustomSymbolStrFcn "$R$N$M$F" CustomSymbolStrBlkIO "rtb_$N$M" CustomSymbolStrTmpVar "$N$M" CustomSymbolStrMacro "$R$N$M" DefineNamingRule "None" ParamNamingRule "None" SignalNamingRule "None" InsertBlockDesc off SimulinkBlockComments on EnableCustomComments off InlinedPrmAccess "Literals" ReqsInCode off } Simulink.GRTTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 10 Array { Type "Cell" Dimension 15 Cell "IncludeMdlTerminateFcn" Cell "CombineOutputUpdateFcns" Cell "SuppressErrorStatus" Cell "ERTCustomFileBanners" Cell "GenerateSampleERTMain" Cell "GenerateTestInterfaces" Cell "ModelStepFunctionPrototypeControlComp" "liant" Cell "MultiInstanceERTCode" Cell "PurelyIntegerCode" Cell "SupportNonFinite" Cell "SupportComplex" Cell "SupportAbsoluteTime" Cell "SupportContinuousTime" Cell "SupportNonInlinedSFcns" Cell "PortableWordSizes" PropName "DisabledProps" } Version "1.2.0" TargetFcnLib "ansi_tfl_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" GenFloatMathFcnCalls "ANSI_C" UtilityFuncGeneration "Auto" GenerateFullHeader on GenerateSampleERTMain off GenerateTestInterfaces off IsPILTarget off ModelReferenceCompliant on IncludeMdlTerminateFcn on CombineOutputUpdateFcns off SuppressErrorStatus off IncludeFileDelimiter "Auto" ERTCustomFileBanners off SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging on MultiInstanceERTCode off SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime on SupportNonInlinedSFcns on EnableShiftOperators on ParenthesesLevel "Nominal" PortableWordSizes off ModelStepFunctionPrototypeControlCompliant off ExtMode off ExtModeStaticAlloc off ExtModeTesting off ExtModeStaticAllocSize 1000000 ExtModeTransport 0 ExtModeMexFile "ext_comm" ExtModeIntrfLevel "Level1" RTWCAPISignals off RTWCAPIParams off RTWCAPIStates off GenerateASAP2 off } PropName "Components" } } PropName "Components" } Name "Configuration" CurrentDlgPage "Solver" } PropName "ConfigurationSets" } Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 1 } BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { Block { BlockType ComplexToMagnitudeAngle Output "Magnitude and angle" SampleTime "-1" } Block { BlockType ComplexToRealImag Output "Real and imag" SampleTime "-1" } Block { BlockType Constant Value "1" VectorParams1D on SamplingMode "Sample based" OutDataTypeMode "Inherit from 'Constant value'" OutDataType "sfix(16)" ConRadixGroup "Use specified scaling" OutScaling "2^0" SampleTime "inf" FramePeriod "inf" } Block { BlockType Display Format "short" Decimation "10" Floating off SampleTime "-1" } Block { BlockType From IconDisplay "Tag" } Block { BlockType Fcn Expr "sin(u[1])" SampleTime "-1" } Block { BlockType Gain Gain "1" Multiplication "Element-wise(K.*u)" ParameterDataTypeMode "Same as input" ParameterDataType "sfix(16)" ParameterScalingMode "Best Precision: Matrix-wise" ParameterScaling "2^0" OutDataTypeMode "Same as input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Goto IconDisplay "Tag" } Block { BlockType InitialCondition Value "1" SampleTime "-1" } Block { BlockType Inport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" DataType "auto" OutDataType "sfix(16)" OutScaling "2^0" SignalType "auto" SamplingMode "auto" LatchByDelayingOutsideSignal off LatchByCopyingInsideSignal off Interpolate on } Block { BlockType Integrator ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" IgnoreLimit off ZeroCross on ContinuousStateAttributes "''" } Block { BlockType MagnitudeAngleToComplex Input "Magnitude and angle" ConstantPart "0" SampleTime "-1" } Block { BlockType Math Operator "exp" OutputSignalType "auto" SampleTime "-1" OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType Mux Inputs "4" DisplayOption "none" UseBusObject off BusObject "BusObject" NonVirtualBus off } Block { BlockType Outport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" DataType "auto" OutDataType "sfix(16)" OutScaling "2^0" SignalType "auto" SamplingMode "auto" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Product Inputs "2" Multiplication "Element-wise(.*)" CollapseMode "All dimensions" CollapseDim "1" InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Zero" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType RealImagToComplex Input "Real and imag" ConstantPart "0" SampleTime "-1" } Block { BlockType Saturate UpperLimit "0.5" LowerLimit "-0.5" LinearizeAsGain on ZeroCross on SampleTime "-1" } Block { BlockType Scope ModelBased off TickLabels "OneTimeTick" ZoomMode "on" Grid "on" TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "-1" } Block { BlockType Step Time "1" Before "0" After "1" SampleTime "-1" VectorParams1D on ZeroCross on } Block { BlockType SubSystem ShowPortLabels "FromPortIcon" Permissions "ReadWrite" PermitHierarchicalResolution "All" TreatAsAtomicUnit off SystemSampleTime "-1" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Sum IconShape "rectangular" Inputs "++" CollapseMode "All dimensions" CollapseDim "1" InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType ToFile Filename "untitled.mat" MatrixName "ans" Decimation "1" SampleTime "-1" } Block { BlockType TransferFcn Numerator "[1]" Denominator "[1 2 1]" AbsoluteTolerance "auto" ContinuousStateAttributes "''" Realization "auto" } Block { BlockType Trigonometry Operator "sin" OutputSignalType "auto" SampleTime "-1" } } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" UseDisplayTextAsClickCallback off } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight "normal" FontAngle "normal" } System { Name "PartII" Location [-2, 60, 1021, 709] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "69" ReportName "simulink-default.rpt" Block { BlockType Constant Name " " Position [850, 773, 1005, 807] Orientation "left" NamePlacement "alternate" Value "LoadReference" } Block { BlockType Constant Name " gamma0" Position [1025, 375, 1105, 405] Orientation "down" NamePlacement "alternate" Value "gamma0" } Block { BlockType Gain Name "180/3.1416" Position [1130, 548, 1175, 582] Gain "57.3" } Block { BlockType SubSystem Name "Excitor" Ports [4, 1] Position [695, 228, 765, 422] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off MaskHideContents off System { Name "Excitor" Location [164, 252, 990, 758] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "V_dq_cmd" Position [275, 133, 305, 147] IconDisplay "Port number" } Block { BlockType Inport Name "V_qs" Position [15, 203, 45, 217] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "V_ds" Position [15, 263, 45, 277] Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "V_fd0" Position [555, 30, 585, 40] Orientation "down" NamePlacement "alternate" Port "4" IconDisplay "Port number" } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [510, 125, 540, 155] LimitOutput on UpperSaturationLimit "7" LowerSaturationLimit "-2" IgnoreLimit off } Block { BlockType Saturate Name "Saturation" Position [685, 125, 715, 155] UpperLimit "7" LowerLimit "-2" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [355, 130, 375, 150] ShowName off IconShape "round" Inputs "|+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [200, 230, 220, 250] ShowName off IconShape "round" Inputs "+|+" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum3" Ports [2, 1] Position [630, 130, 650, 150] ShowName off IconShape "round" Inputs "|++" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum4" Ports [2, 1] Position [560, 130, 580, 150] ShowName off IconShape "round" Inputs "++|" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Scope Name "V_dq 2" Ports [1] Position [335, 275, 365, 305] Orientation "down" NamePlacement "alternate" Floating off Location [6, 53, 1030, 743] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "0" SaveName "ScopeData13" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "V_ds 1" Ports [1] Position [60, 300, 90, 330] Orientation "down" NamePlacement "alternate" Floating off Location [5, 53, 1029, 743] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "0" SaveName "ScopeData1" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "V_error" Ports [1] Position [375, 45, 405, 75] Orientation "up" Floating off Location [6, 53, 1030, 743] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "-4e-005" YMax "-1.9e-005" SaveName "ScopeData14" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "V_fd 2" Ports [1] Position [725, 65, 755, 95] Orientation "up" Floating off Location [32, 235, 1056, 925] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "1.92525" YMax "1.92568" SaveName "ScopeData15" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Display Name "V_fd2 1" Ports [1] Position [700, 325, 790, 355] Orientation "down" NamePlacement "alternate" Decimation "1" Lockdown off } Block { BlockType Scope Name "V_qs 1" Ports [1] Position [60, 135, 90, 165] Orientation "up" Floating off Location [5, 53, 1029, 743] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "0" SaveName "ScopeData2" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Gain Name "k_i" Position [430, 123, 475, 157] Gain "0.1" } Block { BlockType Gain Name "k_p" Position [490, 198, 535, 232] Gain "7" } Block { BlockType Math Name "square" Ports [1, 1] Position [125, 195, 155, 225] Operator "square" } Block { BlockType Math Name "square root" Ports [1, 1] Position [265, 225, 295, 255] Operator "sqrt" } Block { BlockType Math Name "square1" Ports [1, 1] Position [125, 255, 155, 285] Operator "square" } Block { BlockType Outport Name "V_fd" Position [765, 133, 795, 147] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "V_qs" SrcPort 1 Points [25, 0] Branch { DstBlock "V_qs 1" DstPort 1 } Branch { DstBlock "square" DstPort 1 } } Line { SrcBlock "V_ds" SrcPort 1 Points [25, 0] Branch { DstBlock "V_ds 1" DstPort 1 } Branch { DstBlock "square1" DstPort 1 } } Line { SrcBlock "square" SrcPort 1 Points [50, 0] DstBlock "Sum2" DstPort 1 } Line { SrcBlock "square1" SrcPort 1 Points [50, 0] DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "square root" DstPort 1 } Line { SrcBlock "square root" SrcPort 1 Points [45, 0] Branch { Points [5, 0] DstBlock "V_dq 2" DstPort 1 } Branch { Points [20, 0] DstBlock "Sum1" DstPort 2 } } Line { SrcBlock "V_dq_cmd" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 Points [5, 0] Branch { Points [5, 0] DstBlock "V_error" DstPort 1 } Branch { Points [25, 0] Branch { Points [0, 0; 0, 75] DstBlock "k_p" DstPort 1 } Branch { DstBlock "k_i" DstPort 1 } } } Line { SrcBlock "k_p" SrcPort 1 Points [100, 0] DstBlock "Sum3" DstPort 2 } Line { SrcBlock "Sum4" SrcPort 1 DstBlock "Sum3" DstPort 1 } Line { SrcBlock "V_fd0" SrcPort 1 DstBlock "Sum4" DstPort 1 } Line { SrcBlock "Sum3" SrcPort 1 DstBlock "Saturation" DstPort 1 } Line { SrcBlock "Saturation" SrcPort 1 Points [20, 0] Branch { DstBlock "V_fd" DstPort 1 } Branch { DstBlock "V_fd 2" DstPort 1 } Branch { Points [5, 0] DstBlock "V_fd2 1" DstPort 1 } } Line { SrcBlock "Integrator" SrcPort 1 DstBlock "Sum4" DstPort 2 } Line { SrcBlock "k_i" SrcPort 1 DstBlock "Integrator" DstPort 1 } Annotation { Name "UL = 7" Position [689, 94] } Annotation { Name "LL = -2" Position [689, 111] } Annotation { Name "UL = 7" Position [524, 89] } Annotation { Name "LL = -2" Position [524, 106] } } } Block { BlockType Goto Name "Goto" Position [555, 830, 595, 860] GotoTag "i_ds" TagVisibility "global" } Block { BlockType Goto Name "Goto5" Position [550, 615, 590, 645] GotoTag "i_qs" TagVisibility "global" } Block { BlockType Goto Name "Goto6" Position [185, 520, 225, 550] Orientation "up" GotoTag "v_bus" TagVisibility "global" } Block { BlockType Goto Name "Goto7" Position [1150, 485, 1190, 515] GotoTag "gamma" TagVisibility "global" } Block { BlockType TransferFcn Name "Inertia and\nLoad Damping" Position [745, 547, 805, 583] Denominator "[2*H D]" } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [980, 550, 1010, 580] IgnoreLimit off } Block { BlockType Display Name "P_m" Ports [1] Position [870, 685, 960, 715] Orientation "up" ForegroundColor "blue" Decimation "1" Lockdown off } Block { BlockType Display Name "P_m1" Ports [1] Position [685, 855, 775, 885] Orientation "down" ForegroundColor "blue" NamePlacement "alternate" Decimation "1" Lockdown off } Block { BlockType Display Name "P_sys" Ports [1] Position [1065, 125, 1155, 155] Decimation "1" Lockdown off } Block { BlockType Product Name "Product" Ports [2, 1] Position [545, 731, 590, 764] CollapseMode "All dimensions" InputSameDT off RndMeth "Floor" } Block { BlockType Product Name "Product1" Ports [2, 1] Position [540, 511, 585, 544] CollapseMode "All dimensions" InputSameDT off RndMeth "Floor" } Block { BlockType Display Name "Q_sys" Ports [1] Position [1065, 180, 1155, 210] Decimation "1" Lockdown off } Block { BlockType SubSystem Name "S/G Electrical" Ports [7, 6] Position [385, 238, 500, 912] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off MaskHideContents off System { Name "S/G Electrical" Location [4, 77, 1000, 747] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "v_fd" Position [20, 243, 50, 257] IconDisplay "Port number" } Block { BlockType Inport Name "E_qp0" Position [125, 293, 155, 307] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "w_re" Position [440, 323, 470, 337] Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "|V_dqsys|" Position [730, 295, 760, 305] Port "4" IconDisplay "Port number" } Block { BlockType Inport Name "psi_kd0" Position [125, 540, 155, 550] Port "5" IconDisplay "Port number" } Block { BlockType Inport Name "psi_qpp" Position [230, 555, 260, 565] Orientation "left" NamePlacement "alternate" Port "6" IconDisplay "Port number" } Block { BlockType Inport Name "gamma" Position [730, 385, 760, 395] Port "7" IconDisplay "Port number" } Block { BlockType Display Name "Display" Ports [1] Position [124, 85, 236, 120] Orientation "up" Decimation "1" Lockdown off } Block { BlockType Display Name "Display1" Ports [1] Position [180, 625, 270, 655] Decimation "1" Lockdown off } Block { BlockType Display Name "Display2" Ports [1] Position [405, 482, 505, 508] Decimation "1" Lockdown off } Block { BlockType Display Name "Display3" Ports [1] Position [365, 170, 455, 200] Decimation "1" Lockdown off } Block { BlockType SubSystem Name "S/G field and psi equations" Ports [6, 2] Position [210, 168, 335, 482] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off MaskHideContents off System { Name "S/G field and psi equations" Location [-60, 110, 936, 764] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "I_qs" Position [750, 743, 780, 757] Orientation "left" IconDisplay "Port number" } Block { BlockType Inport Name "V_fd" Position [15, 133, 45, 147] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "E_qp0" Position [265, 50, 295, 60] Orientation "down" NamePlacement "alternate" Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "I_ds" Position [870, 333, 900, 347] Orientation "left" Port "4" IconDisplay "Port number" } Block { BlockType Inport Name "psi_kd0" Position [680, 190, 710, 200] Orientation "up" Port "5" IconDisplay "Port number" } Block { BlockType Inport Name "psi_qpp" Position [400, 645, 430, 655] Orientation "up" Port "6" IconDisplay "Port number" } Block { BlockType Gain Name " " Position [310, 725, 425, 775] Orientation "left" Gain "L_qu- L_qpp" } Block { BlockType Gain Name " L_qpp" Position [605, 685, 675, 735] Orientation "up" Gain "L_qpp" } Block { BlockType Fcn Name "(i_fd+i_kd-i_ds)L_md" Position [460, 477, 530, 513] Expr "u(1)/u(2)" } Block { BlockType Scope Name "1+S_e1" Ports [1] Position [60, 410, 90, 440] Orientation "left" NamePlacement "alternate" Floating off Location [6, 53, 1030, 743] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "-1" YMax "1" SaveName "ScopeData17" DataFormat "StructureWithTime" MaxDataPoints "50000" SampleTime "0" } Block { BlockType Gain Name "1/L_dopp" Position [469, 210, 561, 265] Orientation "down" Gain "1/L_d0pp" } Block { BlockType Gain Name "1/T_d0p" Position [165, 115, 240, 165] Gain "1/Tau_d0p" } Block { BlockType Gain Name "1/T_d0pp" Position [590, 111, 670, 169] Gain "1/Tau_d0pp" } Block { BlockType Gain Name "1/T_q0pp" Position [290, 586, 385, 634] Gain "1/Tau_q0pp" } Block { BlockType Scope Name "E_qp" Ports [1] Position [310, 45, 340, 75] Orientation "up" Floating off Location [6, 53, 1030, 743] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "0" YMax "1.5" SaveName "ScopeData4" DataFormat "StructureWithTime" MaxDataPoints "50000" SampleTime "0" } Block { BlockType Display Name "E_qp2" Ports [1] Position [355, 90, 445, 120] Orientation "up" Decimation "1" Lockdown off } Block { BlockType Fcn Name "Fcn" Position [235, 175, 415, 205] Orientation "down" NamePlacement "alternate" Expr "1+S_e1*(abs(u(1)))^X" } Block { BlockType InitialCondition Name "IC" Position [745, 588, 785, 632] Value "psi_q0" } Block { BlockType InitialCondition Name "IC1" Position [890, 473, 930, 517] Value "psi_d0" } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [110, 125, 140, 155] IgnoreLimit off } Block { BlockType Integrator Name "Integrator1" Ports [1, 1] Position [540, 125, 570, 155] IgnoreLimit off } Block { BlockType Integrator Name "Integrator2" Ports [1, 1] Position [240, 595, 270, 625] IgnoreLimit off } Block { BlockType Gain Name "L_L" Position [735, 395, 795, 455] Orientation "down" NamePlacement "alternate" Gain "L_L" } Block { BlockType Gain Name "L_dp - L_L" Position [607, 240, 693, 300] Orientation "up" Gain "L_dp-L_L" } Block { BlockType Gain Name "L_du - L_dp" Position [375, 315, 455, 365] Orientation "left" Gain "L_du-L_dp" } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [400, 476, 405, 514] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Product Name "Product" Ports [2, 1] Position [314, 265, 361, 300] Orientation "down" NamePlacement "alternate" CollapseMode "All dimensions" InputSameDT off RndMeth "Floor" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [755, 485, 775, 505] ShowName off IconShape "round" Inputs "-+|" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [70, 130, 90, 150] ShowName off IconShape "round" Inputs "|+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum10" Ports [2, 1] Position [185, 600, 205, 620] ShowName off IconShape "round" Inputs "-|-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [330, 330, 350, 350] Orientation "left" NamePlacement "alternate" ShowName off IconShape "round" Inputs "++|" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum3" Ports [2, 1] Position [270, 130, 290, 150] ShowName off IconShape "round" Inputs "++|" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum4" Ports [3, 1] Position [485, 130, 505, 150] ShowName off IconShape "round" Inputs "-+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum5" Ports [2, 1] Position [685, 130, 705, 150] ShowName off IconShape "round" Inputs "|++" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum6" Ports [2, 1] Position [505, 330, 525, 350] Orientation "left" NamePlacement "alternate" ShowName off IconShape "round" Inputs "++|" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum7" Ports [3, 1] Position [320, 475, 340, 495] ShowName off IconShape "round" Inputs "--+" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum8" Ports [2, 1] Position [630, 600, 650, 620] ShowName off IconShape "round" Inputs "|+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum9" Ports [2, 1] Position [405, 600, 425, 620] ShowName off IconShape "round" Inputs "|++" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Scope Name "i_kd 1" Ports [1] Position [560, 275, 590, 305] Floating off Location [6, 53, 1030, 743] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "-0.1" YMax "0.1" SaveName "ScopeData22" DataFormat "StructureWithTime" MaxDataPoints "50000" SampleTime "0" } Block { BlockType Scope Name "psi_d" Ports [1] Position [935, 400, 965, 430] Orientation "up" Floating off Location [10, 54, 1690, 1024] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "-1" YMax "1" SaveName "ScopeData18" DataFormat "StructureWithTime" MaxDataPoints "50000" SampleTime "0" } Block { BlockType Display Name "psi_ds 1" Ports [1] Position [785, 540, 875, 570] Orientation "down" NamePlacement "alternate" Decimation "1" Lockdown off } Block { BlockType Display Name "psi_ds 1" Ports [1] Position [115, 200, 205, 230] Orientation "up" Decimation "1" Lockdown off } Block { BlockType Scope Name "psi_kd" Ports [1] Position [765, 50, 795, 80] Floating off Location [6, 53, 1030, 743] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "0" YMax "1.2" SaveName "ScopeData20" DataFormat "StructureWithTime" MaxDataPoints "50000" SampleTime "0" } Block { BlockType Display Name "psi_kd1" Ports [1] Position [585, 15, 675, 45] Orientation "up" Decimation "1" Lockdown off } Block { BlockType Scope Name "psi_kd2" Ports [1] Position [505, 75, 535, 105] Orientation "up" Floating off Location [6, 53, 1030, 743] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "-3.15e-007" YMax "-2.85e-007" SaveName "ScopeData23" DataFormat "StructureWithTime" MaxDataPoints "50000" SampleTime "0" } Block { BlockType Display Name "psi_qpp 2" Ports [1] Position [515, 650, 605, 680] Orientation "down" NamePlacement "alternate" Decimation "1" Lockdown off } Block { BlockType Scope Name "psi_qpp1" Ports [1] Position [555, 540, 585, 570] Orientation "up" Floating off Location [6, 53, 1030, 743] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "-1" YMax "1" SaveName "ScopeData21" DataFormat "StructureWithTime" MaxDataPoints "50000" SampleTime "0" } Block { BlockType Scope Name "psi_qs 1" Ports [1] Position [810, 670, 840, 700] Orientation "down" NamePlacement "alternate" Floating off Location [6, 53, 1030, 743] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData19" DataFormat "StructureWithTime" SampleTime "0" } Block { BlockType Outport Name "psi_ds" Position [975, 487, 1005, 503] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "psi_qs" Position [860, 605, 890, 615] NamePlacement "alternate" Port "2" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Integrator" SrcPort 1 DstBlock "1/T_d0p" DstPort 1 } Line { SrcBlock "Sum2" SrcPort 1 Points [-125, 0] Branch { Points [-120, 0] DstBlock "Sum1" DstPort 2 } Branch { Points [0, 170] DstBlock "Sum7" DstPort 3 } } Line { SrcBlock "I_ds" SrcPort 1 Points [-100, 0] Branch { DstBlock "L_L" DstPort 1 } Branch { Points [-160, 0] Branch { Points [45, 0] Branch { DstBlock "Sum6" DstPort 2 } Branch { DstBlock "L_dp - L_L" DstPort 1 } } Branch { Points [0, 85; -275, 0] DstBlock "Sum7" DstPort 1 } } } Line { SrcBlock "V_fd" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "I_qs" SrcPort 1 Points [-105, 0] Branch { DstBlock " L_qpp" DstPort 1 } Branch { DstBlock " " DstPort 1 } } Line { SrcBlock "1/T_d0p" SrcPort 1 DstBlock "Sum3" DstPort 2 } Line { SrcBlock "E_qp0" SrcPort 1 DstBlock "Sum3" DstPort 1 } Line { SrcBlock "Sum3" SrcPort 1 Points [0, 0; 30, 0] Branch { Points [10, 0] Branch { Points [-10, 0] DstBlock "E_qp" DstPort 1 } Branch { Points [65, 0] Branch { Points [30, 0] Branch { Points [0, 90; -80, 0] DstBlock "Product" DstPort 2 } Branch { DstBlock "Sum4" DstPort 2 } } Branch { DstBlock "E_qp2" DstPort 1 } } } Branch { DstBlock "Fcn" DstPort 1 } } Line { SrcBlock "L_du - L_dp" SrcPort 1 DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Fcn" SrcPort 1 Points [0, 45] Branch { DstBlock "Product" DstPort 1 } Branch { Points [-165, 0] Branch { DstBlock "psi_ds 1" DstPort 1 } Branch { Points [-35, 0; 0, 170] Branch { Points [0, 105; 260, 0] DstBlock "Mux" DstPort 2 } Branch { DstBlock "1+S_e1" DstPort 1 } } } } Line { SrcBlock "Integrator1" SrcPort 1 DstBlock "1/T_d0pp" DstPort 1 } Line { SrcBlock "Sum6" SrcPort 1 DstBlock "L_du - L_dp" DstPort 1 } Line { SrcBlock "1/L_dopp" SrcPort 1 Points [0, 20] Branch { Points [0, 10] Branch { DstBlock "Sum6" DstPort 1 } Branch { Points [-35, 0; 0, 100; -175, 0] DstBlock "Sum7" DstPort 2 } } Branch { DstBlock "i_kd 1" DstPort 1 } } Line { SrcBlock "Sum4" SrcPort 1 Points [0, 0; 5, 0] Branch { DstBlock "1/L_dopp" DstPort 1 } Branch { Points [5, 0] Branch { DstBlock "Integrator1" DstPort 1 } Branch { DstBlock "psi_kd2" DstPort 1 } } } Line { SrcBlock "L_dp - L_L" SrcPort 1 Points [0, -45; -155, 0] DstBlock "Sum4" DstPort 3 } Line { SrcBlock "Sum7" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "1/T_d0pp" SrcPort 1 DstBlock "Sum5" DstPort 1 } Line { SrcBlock "psi_kd0" SrcPort 1 DstBlock "Sum5" DstPort 2 } Line { SrcBlock "Sum5" SrcPort 1 Points [0, -75] Branch { DstBlock "psi_kd" DstPort 1 } Branch { Points [-80, 0; 0, -10] Branch { Points [0, 10; -135, 0] DstBlock "Sum4" DstPort 1 } Branch { DstBlock "psi_kd1" DstPort 1 } } } Line { SrcBlock "L_L" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "(i_fd+i_kd-i_ds)L_md" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 Points [45, 0] Branch { Points [5, 0] DstBlock "psi_ds 1" DstPort 1 } Branch { DstBlock "IC1" DstPort 1 } } Line { SrcBlock "Sum8" SrcPort 1 DstBlock "IC" DstPort 1 } Line { SrcBlock " L_qpp" SrcPort 1 DstBlock "Sum8" DstPort 2 } Line { SrcBlock "Integrator2" SrcPort 1 DstBlock "1/T_q0pp" DstPort 1 } Line { SrcBlock "Sum9" SrcPort 1 Points [100, 0] Branch { Points [0, -45; -335, 0] DstBlock "Sum10" DstPort 1 } Branch { Points [30, 0] Branch { Points [10, 0] Branch { DstBlock "Sum8" DstPort 1 } Branch { DstBlock "psi_qpp1" DstPort 1 } } Branch { DstBlock "psi_qpp 2" DstPort 1 } } } Line { SrcBlock "1/T_q0pp" SrcPort 1 DstBlock "Sum9" DstPort 1 } Line { SrcBlock "psi_qpp" SrcPort 1 DstBlock "Sum9" DstPort 2 } Line { SrcBlock "Sum10" SrcPort 1 DstBlock "Integrator2" DstPort 1 } Line { SrcBlock " " SrcPort 1 Points [-110, 0] DstBlock "Sum10" DstPort 2 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "(i_fd+i_kd-i_ds)L_md" DstPort 1 } Line { SrcBlock "IC" SrcPort 1 Points [35, 0] Branch { DstBlock "psi_qs" DstPort 1 } Branch { DstBlock "psi_qs 1" DstPort 1 } } Line { SrcBlock "IC1" SrcPort 1 Points [15, 0] Branch { DstBlock "psi_ds" DstPort 1 } Branch { DstBlock "psi_d" DstPort 1 } } Annotation { Name "1+Se" Position [292, 239] } Annotation { Name "-i_kd" Position [535, 312] } Annotation { Name "i_fd" Position [196, 327] } Annotation { Name "i_ds" Position [615, 324] } Annotation { Name "psi_kd" Position [732, 115] } Annotation { Name "1+Se" Position [356, 518] } } } Block { BlockType SubSystem Name "Stator Voltage Equations" Ports [3, 2] Position [490, 212, 590, 448] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off MaskHideContents off System { Name "Stator Voltage Equations" Location [171, 289, 1183, 939] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "psi_ds" Position [30, 128, 60, 142] IconDisplay "Port number" } Block { BlockType Inport Name "w_re" Position [25, 188, 55, 202] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "psi_qs" Position [35, 278, 65, 292] Port "3" IconDisplay "Port number" } Block { BlockType Gain Name "-1" Position [340, 263, 385, 297] Gain "-1" } Block { BlockType Product Name "w_re*psi_ds" Ports [2, 1] Position [255, 126, 300, 159] CollapseMode "All dimensions" InputSameDT off RndMeth "Floor" } Block { BlockType Product Name "w_re*psi_qs" Ports [2, 1] Position [255, 261, 300, 294] CollapseMode "All dimensions" InputSameDT off RndMeth "Floor" } Block { BlockType Outport Name "V_qs" Position [430, 138, 460, 152] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "V_ds" Position [420, 273, 450, 287] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "w_re" SrcPort 1 Points [15, 0] Branch { Points [0, -45] DstBlock "w_re*psi_ds" DstPort 2 } Branch { Points [0, 75] DstBlock "w_re*psi_qs" DstPort 1 } } Line { SrcBlock "w_re*psi_ds" SrcPort 1 DstBlock "V_qs" DstPort 1 } Line { SrcBlock "psi_ds" SrcPort 1 DstBlock "w_re*psi_ds" DstPort 1 } Line { SrcBlock "psi_qs" SrcPort 1 DstBlock "w_re*psi_qs" DstPort 2 } Line { SrcBlock "w_re*psi_qs" SrcPort 1 DstBlock "-1" DstPort 1 } Line { SrcBlock "-1" SrcPort 1 DstBlock "V_ds" DstPort 1 } } } Block { BlockType SubSystem Name "System Equations" Ports [4, 2] Position [790, 160, 885, 530] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off MaskHideContents off System { Name "System Equations" Location [-32, 167, 980, 817] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "V_qs" Position [170, 360, 200, 380] NamePlacement "alternate" IconDisplay "Port number" } Block { BlockType Inport Name "|V_dqsys|" Position [695, 195, 725, 205] Orientation "left" NamePlacement "alternate" Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "gamma" Position [840, 200, 870, 210] Orientation "left" NamePlacement "alternate" Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "V_ds" Position [175, 52, 205, 68] Port "4" IconDisplay "Port number" } Block { BlockType Gain Name "1/X_sys" Position [330, 157, 435, 213] Orientation "left" NamePlacement "alternate" Gain "1/X_sys" } Block { BlockType Gain Name "1/X_sys1" Position [355, 441, 435, 489] Orientation "left" Gain "1/X_sys" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [450, 355, 480, 385] Orientation "down" NamePlacement "alternate" ShowName off IconShape "round" Inputs "+|-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [455, 45, 485, 75] Orientation "down" NamePlacement "alternate" ShowName off IconShape "round" Inputs "-|+" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Trigonometry Name "cos(gamma)" Ports [1, 1] Position [730, 360, 760, 390] Orientation "left" NamePlacement "alternate" Operator "cos" } Block { BlockType Scope Name "i_d1" Ports [1] Position [234, 495, 266, 525] Orientation "down" Floating off Location [6, 45, 1030, 739] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData16" DataFormat "StructureWithTime" MaxDataPoints "50000" SampleTime "0" } Block { BlockType Scope Name "i_d2" Ports [1] Position [279, 400, 311, 430] Orientation "down" Floating off Location [6, 45, 1030, 739] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData24" DataFormat "StructureWithTime" MaxDataPoints "50000" SampleTime "0" } Block { BlockType Scope Name "i_q1" Ports [1] Position [244, 220, 276, 250] Orientation "down" Floating off Location [6, 45, 1030, 739] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData10" DataFormat "StructureWithTime" MaxDataPoints "50000" SampleTime "0" } Block { BlockType Trigonometry Name "sin(gamma)" Ports [1, 1] Position [715, 35, 745, 65] Orientation "left" NamePlacement "alternate" } Block { BlockType Product Name "|V_dqsys|*cos(gamma)" Ports [2, 1] Position [580, 350, 630, 385] Orientation "left" NamePlacement "alternate" CollapseMode "All dimensions" InputSameDT off RndMeth "Floor" } Block { BlockType Product Name "|Vdqsys|*sin(gamma)" Ports [2, 1] Position [580, 40, 630, 75] Orientation "left" NamePlacement "alternate" CollapseMode "All dimensions" InputSameDT off RndMeth "Floor" } Block { BlockType Outport Name "i_qs" Position [170, 180, 200, 190] Orientation "left" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "i_ds" Position [170, 460, 200, 470] Orientation "left" NamePlacement "alternate" Port "2" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "|V_dqsys|" SrcPort 1 Points [0, 0; -10, 0] Branch { Points [0, -135] DstBlock "|Vdqsys|*sin(gamma)" DstPort 2 } Branch { Points [0, 160] DstBlock "|V_dqsys|*cos(gamma)" DstPort 1 } } Line { SrcBlock "cos(gamma)" SrcPort 1 DstBlock "|V_dqsys|*cos(gamma)" DstPort 2 } Line { SrcBlock "sin(gamma)" SrcPort 1 DstBlock "|Vdqsys|*sin(gamma)" DstPort 1 } Line { SrcBlock "1/X_sys1" SrcPort 1 Points [-100, 0] Branch { DstBlock "i_d1" DstPort 1 } Branch { DstBlock "i_ds" DstPort 1 } } Line { SrcBlock "Sum1" SrcPort 1 Points [0, 75] DstBlock "1/X_sys1" DstPort 1 } Line { SrcBlock "Sum2" SrcPort 1 Points [0, 105] DstBlock "1/X_sys" DstPort 1 } Line { SrcBlock "gamma" SrcPort 1 Points [0, 0; -25, 0] Branch { Points [0, -155] DstBlock "sin(gamma)" DstPort 1 } Branch { Points [0, 170] DstBlock "cos(gamma)" DstPort 1 } } Line { SrcBlock "V_ds" SrcPort 1 DstBlock "Sum2" DstPort 1 } Line { SrcBlock "|Vdqsys|*sin(gamma)" SrcPort 1 DstBlock "Sum2" DstPort 2 } Line { SrcBlock "1/X_sys" SrcPort 1 Points [-65, 0] Branch { DstBlock "i_qs" DstPort 1 } Branch { DstBlock "i_q1" DstPort 1 } } Line { SrcBlock "|V_dqsys|*cos(gamma)" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "V_qs" SrcPort 1 Points [90, 0] Branch { DstBlock "Sum1" DstPort 1 } Branch { DstBlock "i_d2" DstPort 1 } } Annotation { Name "V_dsys" Position [535, 78] } Annotation { Name "V_qsys" Position [536, 388] } } } Block { BlockType Trigonometry Name "Trigonometric\nFunction" Ports [2, 1] Position [650, 302, 680, 333] Operator "atan2" } Block { BlockType Scope Name "V_fd1" Ports [1] Position [70, 285, 100, 315] Orientation "down" NamePlacement "alternate" Floating off Location [5, 49, 1029, 739] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "1.93358" YMax "1.93372" SaveName "ScopeData7" DataFormat "StructureWithTime" MaxDataPoints "50000" SampleTime "0" } Block { BlockType Scope Name "angle v_dqs" Ports [1] Position [670, 235, 700, 265] Orientation "up" Floating off Location [5, 53, 1029, 743] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "0" YMax "1.2" SaveName "ScopeData25" DataFormat "StructureWithTime" MaxDataPoints "50000" SampleTime "0" } Block { BlockType Scope Name "i_ds1" Ports [1] Position [100, 430, 130, 460] Floating off Location [5, 53, 1029, 743] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "0" YMax "1.5" SaveName "ScopeData5" DataFormat "StructureWithTime" MaxDataPoints "50000" SampleTime "0" } Block { BlockType Scope Name "i_qs2" Ports [1] Position [110, 150, 140, 180] Orientation "up" Floating off Location [5, 53, 1029, 743] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData6" DataFormat "StructureWithTime" MaxDataPoints "50000" SampleTime "0" } Block { BlockType Scope Name "psi_ds1" Ports [1] Position [330, 110, 360, 140] Orientation "up" Floating off Location [6, 53, 1030, 743] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } DataFormat "StructureWithTime" MaxDataPoints "50000" SampleTime "0" } Block { BlockType Scope Name "psi_qs1" Ports [1] Position [335, 520, 365, 550] Orientation "down" NamePlacement "alternate" Floating off Location [6, 53, 1030, 743] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData3" DataFormat "StructureWithTime" MaxDataPoints "50000" SampleTime "0" } Block { BlockType Outport Name "V_qs" Position [660, 163, 690, 177] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "V_ds" Position [660, 433, 690, 447] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "psi_ds" Position [375, 273, 405, 287] Port "3" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "i_qs" Position [945, 250, 975, 260] Port "4" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "psi_qs" Position [380, 358, 410, 372] Port "5" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "i_ds" Position [945, 435, 975, 445] Port "6" IconDisplay "Port number" BusOutputAsStruct off } Line { Labels [1, 0] SrcBlock "v_fd" SrcPort 1 Points [30, 0] Branch { DstBlock "V_fd1" DstPort 1 } Branch { DstBlock "S/G field and psi equations" DstPort 2 } } Line { SrcBlock "E_qp0" SrcPort 1 DstBlock "S/G field and psi equations" DstPort 3 } Line { SrcBlock "S/G field and psi equations" SrcPort 2 Points [5, 0; 5, 0] Branch { Points [15, 0; 0, 5] Branch { DstBlock "psi_qs" DstPort 1 } Branch { DstBlock "Stator Voltage Equations" DstPort 3 } } Branch { Points [0, 90] Branch { DstBlock "psi_qs1" DstPort 1 } Branch { DstBlock "Display2" DstPort 1 } } } Line { SrcBlock "S/G field and psi equations" SrcPort 1 Points [15, 0; -10, 0] Branch { Points [10, 0; 5, 0] Branch { DstBlock "psi_ds" DstPort 1 } Branch { DstBlock "Stator Voltage Equations" DstPort 1 } } Branch { Points [0, -100; 0, 35] Branch { DstBlock "psi_ds1" DstPort 1 } Branch { DstBlock "Display3" DstPort 1 } } } Line { SrcBlock "w_re" SrcPort 1 DstBlock "Stator Voltage Equations" DstPort 2 } Line { Labels [1, 0] SrcBlock "Stator Voltage Equations" SrcPort 2 Points [30, 0] Branch { Points [0, 0; 0, 50] Branch { Points [0, 40] DstBlock "System Equations" DstPort 4 } Branch { DstBlock "V_ds" DstPort 1 } } Branch { Points [0, 0; 0, -65] DstBlock "Trigonometric\nFunction" DstPort 2 } } Line { SrcBlock "|V_dqsys|" SrcPort 1 DstBlock "System Equations" DstPort 2 } Line { SrcBlock "gamma" SrcPort 1 DstBlock "System Equations" DstPort 3 } Line { SrcBlock "psi_kd0" SrcPort 1 Points [20, 0; 0, -145] DstBlock "S/G field and psi equations" DstPort 5 } Line { SrcBlock "psi_qpp" SrcPort 1 Points [-35, 0; 0, -110] DstBlock "S/G field and psi equations" DstPort 6 } Line { SrcBlock "System Equations" SrcPort 2 Points [25, 0] Branch { DstBlock "i_ds" DstPort 1 } Branch { Points [0, 160; -780, 0] Branch { Points [-70, 0; 0, -155] Branch { Labels [1, 0] Points [0, -95] DstBlock "S/G field and psi equations" DstPort 4 } Branch { DstBlock "i_ds1" DstPort 1 } } Branch { Points [0, 40] DstBlock "Display1" DstPort 1 } } } Line { SrcBlock "System Equations" SrcPort 1 Points [25, 0] Branch { DstBlock "i_qs" DstPort 1 } Branch { Points [0, -205; -855, 0; 0, 150; 65, 0] Branch { DstBlock "i_qs2" DstPort 1 } Branch { Points [55, 0; 0, 0] Branch { DstBlock "S/G field and psi equations" DstPort 1 } Branch { DstBlock "Display" DstPort 1 } } } } Line { SrcBlock "Trigonometric\nFunction" SrcPort 1 DstBlock "angle v_dqs" DstPort 1 } Line { SrcBlock "Stator Voltage Equations" SrcPort 1 Points [30, 0] Branch { Points [0, 40] DstBlock "Trigonometric\nFunction" DstPort 1 } Branch { Points [0, -60] Branch { DstBlock "System Equations" DstPort 1 } Branch { Points [0, -40] DstBlock "V_qs" DstPort 1 } } } } } Block { BlockType Display Name "S_sys" Ports [1] Position [1070, 235, 1160, 265] Decimation "1" Lockdown off } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [605, 555, 625, 575] ShowName off IconShape "round" Inputs "+|-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [685, 555, 705, 575] ShowName off IconShape "round" Inputs "|-+" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [1055, 555, 1075, 575] ShowName off IconShape "round" Inputs "++|" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum3" Ports [2, 1] Position [135, 565, 155, 585] ShowName off IconShape "round" Inputs "|++" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType SubSystem Name "System Power" Ports [0, 3] Position [920, 109, 980, 281] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off MaskHideContents off System { Name "System Power" Location [2, 77, 1014, 727] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType ComplexToMagnitudeAngle Name "Complex to\nMagnitude-Angle" Ports [1, 2] Position [240, 184, 285, 226] Output "Magnitude and angle" } Block { BlockType ComplexToRealImag Name "Complex to\nReal-Imag" Ports [1, 2] Position [570, 115, 640, 235] Output "Real and imag" } Block { BlockType From Name "From1" Position [65, 156, 105, 184] CloseFcn "tagdialog Close" GotoTag "i_ds" TagVisibility "global" } Block { BlockType From Name "From2" Position [65, 221, 105, 249] CloseFcn "tagdialog Close" GotoTag "i_qs" TagVisibility "global" } Block { BlockType From Name "From6" Position [255, 101, 295, 129] CloseFcn "tagdialog Close" GotoTag "v_bus" TagVisibility "global" } Block { BlockType From Name "From8" Position [140, 380, 180, 410] Orientation "up" CloseFcn "tagdialog Close" GotoTag "gamma" TagVisibility "global" } Block { BlockType MagnitudeAngleToComplex Name "Magnitude-Angle\nto Complex" Ports [2, 1] Position [435, 143, 485, 207] Input "Magnitude and angle" } Block { BlockType Product Name "Product2" Ports [2, 1] Position [325, 141, 370, 174] CollapseMode "All dimensions" InputSameDT off RndMeth "Floor" } Block { BlockType RealImagToComplex Name "Real-Imag to\nComplex" Ports [2, 1] Position [150, 135, 190, 270] } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [320, 325, 340, 345] ShowName off IconShape "round" Inputs "-+|" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum4" Ports [2, 1] Position [150, 325, 170, 345] ShowName off IconShape "round" Inputs "|+-" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Constant Name "pi/2" Position [65, 320, 95, 350] Value "pi/2" } Block { BlockType Outport Name "P_sys" Position [695, 138, 725, 152] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Q_sys" Position [690, 198, 720, 212] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "S_sys" Position [385, 65, 415, 75] Orientation "up" Port "3" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "From1" SrcPort 1 DstBlock "Real-Imag to\nComplex" DstPort 1 } Line { SrcBlock "From2" SrcPort 1 DstBlock "Real-Imag to\nComplex" DstPort 2 } Line { SrcBlock "Real-Imag to\nComplex" SrcPort 1 DstBlock "Complex to\nMagnitude-Angle" DstPort 1 } Line { SrcBlock "Complex to\nMagnitude-Angle" SrcPort 1 Points [10, 0; 0, -30] DstBlock "Product2" DstPort 2 } Line { SrcBlock "From6" SrcPort 1 Points [0, 35] DstBlock "Product2" DstPort 1 } Line { SrcBlock "Product2" SrcPort 1 Points [25, 0] Branch { DstBlock "Magnitude-Angle\nto Complex" DstPort 1 } Branch { DstBlock "S_sys" DstPort 1 } } Line { SrcBlock "Magnitude-Angle\nto Complex" SrcPort 1 DstBlock "Complex to\nReal-Imag" DstPort 1 } Line { SrcBlock "Complex to\nReal-Imag" SrcPort 1 DstBlock "P_sys" DstPort 1 } Line { SrcBlock "Complex to\nReal-Imag" SrcPort 2 DstBlock "Q_sys" DstPort 1 } Line { SrcBlock "pi/2" SrcPort 1 DstBlock "Sum4" DstPort 1 } Line { SrcBlock "From8" SrcPort 1 DstBlock "Sum4" DstPort 2 } Line { SrcBlock "Complex to\nMagnitude-Angle" SrcPort 2 Points [40, 0] DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum4" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 Points [50, 0; 0, -145] DstBlock "Magnitude-Angle\nto Complex" DstPort 2 } Annotation { Name "System Power Block" Position [631, 39] } Annotation { Name "angle of I_dq" Position [288, 290] } Annotation { Name "angle of V_dq" Position [255, 350] } } } Block { BlockType Scope Name "T_e" Ports [1] Position [650, 605, 680, 635] Orientation "down" NamePlacement "alternate" Floating off Location [6, 53, 1030, 743] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "0" YMax "1.5" SaveName "ScopeData11" DataFormat "StructureWithTime" MaxDataPoints "50000" SampleTime "0" } Block { BlockType Scope Name "T_m" Ports [1] Position [680, 770, 710, 800] Orientation "down" NamePlacement "alternate" Floating off Location [6, 53, 1030, 743] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "0" YMax "1.5" SaveName "ScopeData12" DataFormat "StructureWithTime" MaxDataPoints "50000" SampleTime "0" } Block { BlockType Constant Name "T_m0" Position [1010, 720, 1040, 750] Orientation "left" NamePlacement "alternate" Value "T_m0" } Block { BlockType ToFile Name "To File" Position [1270, 605, 1330, 635] Filename "EA.mat" MatrixName "opd" } Block { BlockType SubSystem Name "Turbine and Govenor" Ports [3, 1] Position [740, 654, 815, 816] Orientation "left" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off MaskHideContents off System { Name "Turbine and Govenor" Location [6, 77, 834, 747] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Delta_wr" Position [745, 272, 775, 288] Orientation "left" IconDisplay "Port number" } Block { BlockType Inport Name "T_m0" Position [85, 200, 115, 220] Orientation "down" Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Load Reference" Position [750, 342, 780, 358] Orientation "left" Port "3" IconDisplay "Port number" } Block { BlockType Gain Name "1/R_p" Position [585, 260, 655, 300] Orientation "left" NamePlacement "alternate" Gain "1/R_P" } Block { BlockType TransferFcn Name "Gates" Position [285, 260, 345, 300] Orientation "left" NamePlacement "alternate" Denominator "[T_g 1]" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [520, 270, 540, 290] Orientation "left" NamePlacement "alternate" ShowName off IconShape "round" Inputs "|-+" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum5" Ports [2, 1] Position [90, 270, 110, 290] Orientation "left" NamePlacement "alternate" ShowName off IconShape "round" Inputs "++|" CollapseMode "All dimensions" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType TransferFcn Name "Transient Droop" Position [375, 261, 490, 299] Orientation "left" NamePlacement "alternate" Numerator "[T_R 1]" Denominator "[T_R*R_T/R_P 1]" } Block { BlockType TransferFcn Name "Turbine" Position [175, 260, 235, 300] Orientation "left" NamePlacement "alternate" Numerator "[-T_w 1]" Denominator "[0.5*T_w 1]" } Block { BlockType Outport Name "T_m" Position [15, 270, 45, 290] Orientation "left" NamePlacement "alternate" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "T_m0" SrcPort 1 DstBlock "Sum5" DstPort 1 } Line { SrcBlock "Turbine" SrcPort 1 DstBlock "Sum5" DstPort 2 } Line { SrcBlock "Sum5" SrcPort 1 DstBlock "T_m" DstPort 1 } Line { SrcBlock "Gates" SrcPort 1 DstBlock "Turbine" DstPort 1 } Line { SrcBlock "Delta_wr" SrcPort 1 DstBlock "1/R_p" DstPort 1 } Line { SrcBlock "Load Reference" SrcPort 1 Points [-215, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "1/R_p" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Transient Droop" DstPort 1 } Line { SrcBlock "Transient Droop" SrcPort 1 DstBlock "Gates" DstPort 1 } Annotation { Name "H_g(s)" Position [309, 319] } Annotation { Name "H_t(s)=(-sT_w+1)/(s0.5T_w+1)" Position [99, 396] } Annotation { Name "H_t(s)" Position [199, 316] } Annotation { Name "H_g(s)=1/(sT_g+1)" Position [299, 396] } Annotation { Name "H_td(s)=(sT_R+1)/(s(R_T/R_p)T_R + 1)" Position [574, 396] } Annotation { Name "T_w := water starting time" Position [108, 429] } Annotation { Name "T_g := gate time constant " Position [340, 429] } Annotation { Name "T_R := reset time " Position [552, 432] } Annotation { Name "R_T := tempory droop " Position [560, 465] } Annotation { Name "R_P := permanent droop" Position [565, 497] } Annotation { Name "H_td(s)" Position [429, 322] } } } Block { BlockType Constant Name "V_dq_cmd" Position [555, 235, 630, 265] NamePlacement "alternate" Value "V_dq_cmd" } Block { BlockType Display Name "V_dq_cmd1" Ports [1] Position [620, 160, 710, 190] Orientation "up" ForegroundColor "blue" Decimation "1" Lockdown off } Block { BlockType Constant Name "V_fd0" Position [575, 385, 650, 415] NamePlacement "alternate" Value "V_fd0" } Block { BlockType Display Name "V_fd0a" Ports [1] Position [630, 440, 720, 470] Orientation "down" ForegroundColor "blue" NamePlacement "alternate" Decimation "1" Lockdown off } Block { BlockType Display Name "V_fd0a1" Ports [1] Position [565, 45, 655, 75] Orientation "up" ForegroundColor "blue" Decimation "1" Lockdown off } Block { BlockType Scope Name "delta_wr" Ports [1] Position [915, 505, 945, 535] Orientation "up" Floating off Location [6, 53, 1030, 743] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "-0.1" YMax "0.1" SaveName "ScopeData8" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "gamma" Ports [1] Position [1225, 549, 1255, 581] Floating off Location [11, 81, 983, 727] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "-100" YMax "200" SaveName "ScopeData9" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Display Name "gamma 1" Ports [1] Position [1155, 660, 1245, 690] Orientation "down" NamePlacement "alternate" Decimation "1" Lockdown off } Block { BlockType Display Name "gamma 2" Ports [1] Position [1120, 410, 1210, 440] ForegroundColor "blue" Decimation "1" Lockdown off } Block { BlockType Display Name "gamma 3" Ports [1] Position [1255, 455, 1345, 485] ForegroundColor "blue" Decimation "1" Lockdown off } Block { BlockType Constant Name "mE_qp0" Position [90, 370, 165, 400] NamePlacement "alternate" Value "mE_qp0" } Block { BlockType Display Name "mE_qp0a" Ports [1] Position [260, 340, 350, 370] Orientation "up" ForegroundColor "blue" NamePlacement "alternate" Decimation "1" Lockdown off } Block { BlockType Display Name "psi_kd 0" Ports [1] Position [235, 615, 325, 645] Orientation "up" ForegroundColor "blue" Decimation "1" Lockdown off } Block { BlockType Constant Name "psi_kd0" Position [110, 654, 175, 686] Value "psi_kd0" } Block { BlockType Display Name "psi_qpp 0" Ports [1] Position [255, 790, 345, 820] Orientation "down" ForegroundColor "blue" NamePlacement "alternate" Decimation "1" Lockdown off } Block { BlockType Constant Name "psi_qpp0" Position [120, 750, 180, 780] Value "psi_qpp0" } Block { BlockType Gain Name "w_B" Position [875, 548, 920, 582] Gain "377" } Block { BlockType Constant Name "w_e" Position [315, 465, 345, 495] Value "1.0" } Block { BlockType Step Name "|V_dqsys|" Position [30, 560, 60, 590] Time "t_fault" Before "V_sys" After "0.0" SampleTime "0" } Block { BlockType Step Name "|V_dqsys|1" Position [25, 615, 55, 645] Time "t_fault+t_clear" After "V_sys" SampleTime "0" } Line { SrcBlock "S/G Electrical" SrcPort 4 Points [5, 0] Branch { Points [10, 0; 0, -95] DstBlock "Product1" DstPort 2 } Branch { Labels [1, 0] DstBlock "Goto5" DstPort 1 } } Line { SrcBlock "S/G Electrical" SrcPort 5 DstBlock "Product" DstPort 1 } Line { SrcBlock "S/G Electrical" SrcPort 6 Points [10, 0; 0, -10] Branch { Points [0, -85] DstBlock "Product" DstPort 2 } Branch { Points [0, 5] DstBlock "Goto" DstPort 1 } } Line { SrcBlock "Product1" SrcPort 1 Points [25, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 Points [20, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Inertia and\nLoad Damping" DstPort 1 } Line { SrcBlock "Inertia and\nLoad Damping" SrcPort 1 Points [0, 0; 30, 0] Branch { Points [0, 115] DstBlock "Turbine and Govenor" DstPort 1 } Branch { DstBlock "w_B" DstPort 1 } } Line { SrcBlock "Sum2" SrcPort 1 Points [0, 0; 10, 0] Branch { Points [5, 0] Branch { Points [0, 365; -805, 0; 0, -70] DstBlock "S/G Electrical" DstPort 7 } Branch { Points [10, 0] Branch { DstBlock "180/3.1416" DstPort 1 } Branch { Points [0, -65] DstBlock "Goto7" DstPort 1 } } } Branch { Points [0, -95] DstBlock "gamma 3" DstPort 1 } } Line { SrcBlock "180/3.1416" SrcPort 1 Points [20, 0] Branch { DstBlock "gamma" DstPort 1 } Branch { Points [5, 0; -5, 0; 0, 55] Branch { DstBlock "gamma 1" DstPort 1 } Branch { DstBlock "To File" DstPort 1 } } } Line { SrcBlock "|V_dqsys|" SrcPort 1 DstBlock "Sum3" DstPort 1 } Line { SrcBlock "Sum3" SrcPort 1 Points [45, 0] Branch { DstBlock "S/G Electrical" DstPort 4 } Branch { DstBlock "Goto6" DstPort 1 } } Line { SrcBlock "|V_dqsys|1" SrcPort 1 Points [85, 0] DstBlock "Sum3" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 Points [0, 0; 10, 0] Branch { Points [25, 0] DstBlock "T_e" DstPort 1 } Branch { DstBlock "Sum1" DstPort 1 } } Line { SrcBlock "Integrator" SrcPort 1 DstBlock "Sum2" DstPort 2 } Line { SrcBlock "w_e" SrcPort 1 DstBlock "S/G Electrical" DstPort 3 } Line { SrcBlock "Turbine and Govenor" SrcPort 1 Points [0, 0; -5, 0] Branch { Points [-35, 0] Branch { DstBlock "T_m" DstPort 1 } Branch { DstBlock "Sum1" DstPort 2 } } Branch { DstBlock "P_m1" DstPort 1 } } Line { SrcBlock "S/G Electrical" SrcPort 3 DstBlock "Product1" DstPort 1 } Line { SrcBlock "w_B" SrcPort 1 Points [0, 0; 5, 0] Branch { DstBlock "Integrator" DstPort 1 } Branch { DstBlock "delta_wr" DstPort 1 } } Line { SrcBlock " " SrcPort 1 DstBlock "Turbine and Govenor" DstPort 3 } Line { SrcBlock "Excitor" SrcPort 1 Points [60, 0; 0, -225; -220, 0] Branch { DstBlock "V_fd0a1" DstPort 1 } Branch { Points [-240, 0] DstBlock "S/G Electrical" DstPort 1 } } Line { SrcBlock "S/G Electrical" SrcPort 2 Points [20, 0; 0, -60] DstBlock "Excitor" DstPort 3 } Line { SrcBlock "S/G Electrical" SrcPort 1 DstBlock "Excitor" DstPort 2 } Line { SrcBlock "psi_kd0" SrcPort 1 Points [100, 0] Branch { DstBlock "S/G Electrical" DstPort 5 } Branch { DstBlock "psi_kd 0" DstPort 1 } } Line { SrcBlock "V_fd0" SrcPort 1 Points [20, 0] Branch { DstBlock "Excitor" DstPort 4 } Branch { DstBlock "V_fd0a" DstPort 1 } } Line { SrcBlock " gamma0" SrcPort 1 Points [0, 20] Branch { Points [0, -5] DstBlock "gamma 2" DstPort 1 } Branch { DstBlock "Sum2" DstPort 1 } } Line { SrcBlock "mE_qp0" SrcPort 1 Points [135, 0] Branch { DstBlock "S/G Electrical" DstPort 2 } Branch { DstBlock "mE_qp0a" DstPort 1 } } Line { SrcBlock "T_m0" SrcPort 1 Points [-90, 0] Branch { DstBlock "Turbine and Govenor" DstPort 2 } Branch { DstBlock "P_m" DstPort 1 } } Line { SrcBlock "System Power" SrcPort 1 DstBlock "P_sys" DstPort 1 } Line { SrcBlock "System Power" SrcPort 2 DstBlock "Q_sys" DstPort 1 } Line { SrcBlock "System Power" SrcPort 3 DstBlock "S_sys" DstPort 1 } Line { Labels [1, 0] SrcBlock "psi_qpp0" SrcPort 1 Points [115, 0] Branch { DstBlock "S/G Electrical" DstPort 6 } Branch { DstBlock "psi_qpp 0" DstPort 1 } } Line { SrcBlock "V_dq_cmd" SrcPort 1 Points [30, 0] Branch { DstBlock "Excitor" DstPort 1 } Branch { DstBlock "V_dq_cmd1" DstPort 1 } } Annotation { Name "T_e" Position [654, 551] } Annotation { Name "delta0+alpha0" Position [1046, 352] } } }