power_wind_dfig_det.mdl
资源名称:DFIGFarm.rar [点击查看]
上传用户:sdgangguan
上传日期:2017-10-18
资源大小:179k
文件大小:311k
源码类别:
能源行业(电力石油煤炭)
开发平台:
Matlab
- Model {
- Name "power_wind_dfig_det"
- Version 6.3
- MdlSubVersion 0
- GraphicalInterface {
- NumRootInports 0
- NumRootOutports 0
- ParameterArgumentNames ""
- ComputedModelVersion "1.61"
- NumModelReferences 0
- NumTestPointedSignals 0
- }
- SavedCharacterEncoding "ibm-5348_P100-1997"
- PreLoadFcn "power_wind_dfig_data"
- 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
- RecordCoverage off
- CovPath "/"
- CovSaveName "covdata"
- CovMetricSettings "dw"
- CovNameIncrementing off
- CovHtmlReporting on
- covSaveCumulativeToWorkspaceVar on
- CovSaveSingleToWorkspaceVar on
- CovCumulativeVarName "covCumulativeData"
- CovCumulativeReport off
- CovReportOnPause 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
- InitFcn "load power_wind_dfig_det_xinitnTs_Power=5e-6;nTs_"
- "Control=100e-6;"
- Created "Thu Apr 07 13:17:44 2005"
- Creator "batserve"
- UpdateHistory "UpdateHistoryNever"
- ModifiedByFormat "%<Auto>"
- LastModifiedBy "yaogang"
- ModifiedDateFormat "%<Auto>"
- LastModifiedDate "Fri Apr 06 16:40:39 2007"
- ModelVersionFormat "1.%<AutoIncrement:61>"
- ConfigurationManager "None"
- LinearizationMsg "none"
- Profile off
- ParamWorkspaceSource "MATLABWorkspace"
- AccelSystemTargetFile "accel.tlc"
- AccelTemplateMakefile "accel_default_tmf"
- AccelMakeCommand "make_rtw"
- TryForcingSFcnDF off
- 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 off
- BufferReuse on
- StrictBusMsg "None"
- ProdHWDeviceType "32-bit Generic"
- ShowModelReferenceBlockVersion off
- ShowModelReferenceBlockIO off
- Array {
- Type "Handle"
- Dimension 1
- Simulink.ConfigSet {
- $ObjectID 1
- Version "1.1.0"
- Array {
- Type "Handle"
- Dimension 7
- Simulink.SolverCC {
- $ObjectID 2
- Version "1.1.0"
- StartTime "0.0"
- StopTime "0.2"
- AbsTol "auto"
- FixedStep "auto"
- InitialStep "auto"
- MaxNumMinSteps "-1"
- MaxOrder 5
- ExtrapolationOrder 4
- NumberNewtonIterations 1
- MaxStep "auto"
- MinStep "auto"
- RelTol "1e-3"
- SolverMode "SingleTasking"
- Solver "FixedStepDiscrete"
- SolverName "FixedStepDiscrete"
- ZeroCrossControl "UseLocalSettings"
- AlgebraicLoopSolver "TrustRegion"
- SolverResetMethod "Fast"
- PositivePriorityOrder off
- AutoInsertRateTranBlk off
- SampleTimeConstraint "Unconstrained"
- RateTranMode "Deterministic"
- }
- Simulink.DataIOCC {
- $ObjectID 3
- Version "1.1.0"
- Decimation "1"
- ExternalInput "[t, u]"
- FinalStateName "xFinal"
- InitialState "xInitial"
- LimitDataPoints on
- MaxDataPoints "1000"
- LoadExternalInput off
- LoadInitialState on
- SaveFinalState on
- SaveFormat "StructureWithTime"
- SaveOutput on
- SaveState off
- SignalLogging on
- InspectSignalLogs off
- SaveTime on
- StateSaveName "xout"
- TimeSaveName "tout"
- OutputSaveName "yout"
- SignalLoggingName "logsout"
- 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.1.0"
- BlockReduction on
- BooleanDataType on
- ConditionallyExecuteInputs on
- InlineParams off
- InlineInvariantSignals on
- OptimizeBlockIOStorage on
- BufferReuse on
- EnforceIntegerDowncast on
- ExpressionFolding on
- FoldNonRolledExpr on
- LocalBlockOutputs on
- ParameterPooling 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.1.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"
- SolverPrmCheckMsg "warning"
- InheritedTsInSrcMsg "warning"
- DiscreteInheritContinuousMsg "warning"
- MultiTaskDSMMsg "warning"
- MultiTaskRateTransMsg "error"
- SingleTaskRateTransMsg "none"
- TasksWithSamePriorityMsg "warning"
- SigSpecEnsureSampleTimeMsg "warning"
- CheckMatrixSingularityMsg "none"
- IntegerOverflowMsg "warning"
- Int32ToFloatConvMsg "warning"
- ParameterDowncastMsg "error"
- ParameterOverflowMsg "error"
- ParameterUnderflowMsg "none"
- ParameterPrecisionLossMsg "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"
- }
- Simulink.HardwareCC {
- $ObjectID 6
- Version "1.1.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 off
- ProdEqTarget on
- }
- Simulink.ModelReferenceCC {
- $ObjectID 7
- Version "1.1.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.1.0"
- SystemTargetFile "grt.tlc"
- GenCodeOnly off
- MakeCommand "make_rtw"
- 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"
- Array {
- Type "Handle"
- Dimension 2
- Simulink.CodeAppCC {
- $ObjectID 9
- Array {
- Type "Cell"
- Dimension 9
- Cell "IgnoreCustomStorageClasses"
- Cell "InsertBlockDesc"
- Cell "SFDataObjDesc"
- Cell "SimulinkDataObjDesc"
- Cell "DefineNamingRule"
- Cell "SignalNamingRule"
- Cell "ParamNamingRule"
- Cell "InlinedPrmAccess"
- Cell "CustomSymbolStr"
- PropName "DisabledProps"
- }
- Version "1.1.0"
- ForceParamTrailComments off
- GenerateComments on
- IgnoreCustomStorageClasses on
- IncHierarchyInIds off
- MaxIdLength 31
- PreserveName off
- PreserveNameWithParent off
- ShowEliminatedStatement off
- IncAutoGenComments off
- SimulinkDataObjDesc off
- SFDataObjDesc off
- IncDataTypeInIds off
- PrefixModelToSubsysFcnNames on
- CustomSymbolStr "$R$N$M"
- MangleLength 1
- 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 12
- Cell "IncludeMdlTerminateFcn"
- Cell "CombineOutputUpdateFcns"
- Cell "SuppressErrorStatus"
- Cell "ERTCustomFileBanners"
- Cell "GenerateSampleERTMain"
- Cell "MultiInstanceERTCode"
- Cell "PurelyIntegerCode"
- Cell "SupportNonFinite"
- Cell "SupportComplex"
- Cell "SupportAbsoluteTime"
- Cell "SupportContinuousTime"
- Cell "SupportNonInlinedSFcns"
- PropName "DisabledProps"
- }
- Version "1.1.0"
- TargetFcnLib "ansi_tfl_tmw.mat"
- TargetLibSuffix ""
- TargetPreCompLibLocation ""
- GenFloatMathFcnCalls "ANSI_C"
- UtilityFuncGeneration "Auto"
- GenerateFullHeader on
- GenerateSampleERTMain 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
- ExtMode off
- ExtModeStaticAlloc off
- ExtModeTesting off
- ExtModeStaticAllocSize 1000000
- ExtModeTransport 0
- ExtModeMexFile "ext_comm"
- RTWCAPISignals off
- RTWCAPIParams off
- RTWCAPIStates off
- GenerateASAP2 off
- }
- PropName "Components"
- }
- }
- PropName "Components"
- }
- Name "Configuration"
- SimulationMode "normal"
- CurrentDlgPage "Data Import//Export"
- }
- 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 BusSelector
- OutputAsBus off
- }
- Block {
- BlockType Clock
- DisplayTime off
- }
- 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
- OutDataTypeMode "Inherit from 'Constant value'"
- OutDataType "sfix(16)"
- ConRadixGroup "Use specified scaling"
- OutScaling "2^0"
- SampleTime "inf"
- }
- Block {
- BlockType DataTypeConversion
- OutDataTypeMode "Inherit via back propagation"
- OutDataType "sfix(16)"
- OutScaling "2^0"
- LockScale off
- ConvertRealWorld "Real World Value (RWV)"
- RndMeth "Zero"
- SaturateOnIntegerOverflow on
- SampleTime "-1"
- }
- Block {
- BlockType Demux
- Outputs "4"
- DisplayOption "none"
- BusSelectionMode off
- }
- Block {
- BlockType DigitalClock
- SampleTime "1"
- }
- Block {
- BlockType DiscreteIntegrator
- IntegratorMethod "Integration: Forward Euler"
- gainval "1.0"
- ExternalReset "none"
- InitialConditionSource "internal"
- InitialCondition "0"
- InitialConditionMode "State and output"
- SampleTime "1"
- OutDataTypeMode "Inherit via internal rule"
- OutDataType "sfix(16)"
- OutScaling "2^0"
- LockScale off
- RndMeth "Floor"
- SaturateOnIntegerOverflow off
- LimitOutput off
- UpperSaturationLimit "inf"
- LowerSaturationLimit "-inf"
- ShowSaturationPort off
- ShowStatePort off
- IgnoreLimit off
- StateMustResolveToSignalObject off
- RTWStateStorageClass "Auto"
- }
- 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 Ground
- }
- 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 Logic
- Operator "AND"
- Inputs "2"
- AllPortsSameDT on
- OutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
- "tion)"
- LogicDataType "uint(8)"
- SampleTime "-1"
- }
- Block {
- BlockType Lookup
- InputValues "[-4:5]"
- OutputValues " rand(1,10)-0.5"
- LookUpMeth "Interpolation-Extrapolation"
- OutDataTypeMode "Same as input"
- OutDataType "sfix(16)"
- OutScaling "2^0"
- LockScale off
- RndMeth "Floor"
- SaturateOnIntegerOverflow on
- SampleTime "-1"
- LUTDesignTableMode "Redesign Table"
- LUTDesignDataSource "Block Dialog"
- LUTDesignFunctionName "sqrt(x)"
- LUTDesignUseExistingBP on
- LUTDesignRelError "0.01"
- LUTDesignAbsError "1e-6"
- }
- 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 MultiPortSwitch
- Inputs "4"
- zeroidx off
- InputSameDT on
- OutDataTypeMode "Inherit via internal rule"
- RndMeth "Floor"
- SaturateOnIntegerOverflow on
- SampleTime "-1"
- }
- 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 PMComponent
- SubClassName "unknown"
- }
- Block {
- BlockType PMIOPort
- }
- Block {
- BlockType Product
- Inputs "2"
- Multiplication "Element-wise(.*)"
- InputSameDT on
- OutDataTypeMode "Same as first input"
- OutDataType "sfix(16)"
- OutScaling "2^0"
- LockScale off
- RndMeth "Zero"
- SaturateOnIntegerOverflow on
- SampleTime "-1"
- }
- Block {
- BlockType RateLimiter
- RisingSlewLimit "1"
- FallingSlewLimit "-1"
- SampleTimeMode "continuous"
- InitialCondition "0"
- LinearizeAsGain on
- }
- Block {
- BlockType RealImagToComplex
- Input "Real and imag"
- ConstantPart "0"
- SampleTime "-1"
- }
- Block {
- BlockType Reference
- }
- Block {
- BlockType RelationalOperator
- Operator ">="
- InputSameDT on
- LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
- "tion)"
- LogicDataType "uint(8)"
- ZeroCross on
- SampleTime "-1"
- }
- Block {
- BlockType Rounding
- Operator "floor"
- 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 Selector
- InputType "Vector"
- IndexMode "One-based"
- ElementSrc "Internal"
- Elements "1"
- RowSrc "Internal"
- Rows "1"
- ColumnSrc "Internal"
- Columns "1"
- InputPortWidth "-1"
- IndexIsStartValue off
- OutputPortSize "1"
- }
- Block {
- BlockType "S-Function"
- FunctionName "system"
- SFunctionModules "''"
- PortCounts "[]"
- }
- Block {
- BlockType Signum
- ZeroCross on
- SampleTime "-1"
- }
- Block {
- BlockType Step
- Time "1"
- Before "0"
- After "1"
- SampleTime "-1"
- VectorParams1D on
- ZeroCross on
- }
- Block {
- BlockType SubSystem
- ShowPortLabels on
- Permissions "ReadWrite"
- PermitHierarchicalResolution "All"
- SystemSampleTime "-1"
- RTWFcnNameOpts "Auto"
- RTWFileNameOpts "Auto"
- SimViewingDevice off
- DataTypeOverride "UseLocalSettings"
- MinMaxOverflowLogging "UseLocalSettings"
- }
- Block {
- BlockType Sum
- IconShape "rectangular"
- Inputs "++"
- InputSameDT on
- OutDataTypeMode "Same as first input"
- OutDataType "sfix(16)"
- OutScaling "2^0"
- LockScale off
- RndMeth "Floor"
- SaturateOnIntegerOverflow on
- SampleTime "-1"
- }
- Block {
- BlockType Switch
- Criteria "u2 >= Threshold"
- Threshold "0"
- InputSameDT on
- OutDataTypeMode "Inherit via internal rule"
- RndMeth "Floor"
- SaturateOnIntegerOverflow on
- ZeroCross on
- SampleTime "-1"
- }
- Block {
- BlockType Terminator
- }
- Block {
- BlockType Trigonometry
- Operator "sin"
- OutputSignalType "auto"
- SampleTime "-1"
- }
- Block {
- BlockType UnitDelay
- X0 "0"
- SampleTime "1"
- StateMustResolveToSignalObject off
- RTWStateStorageClass "Auto"
- }
- }
- 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 "power_wind_dfig_det"
- Location [175, 159, 1156, 758]
- Open on
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- ReportName "simulink-default.rpt"
- Block {
- BlockType Reference
- Name "120 kV"
- Ports [0, 0, 0, 0, 0, 1, 3]
- Position [40, 69, 85, 111]
- BackgroundColor "yellow"
- SourceBlock "powerlib/ElectricalnSources/Three-PhasenProgr"
- "ammablenVoltage Source"
- SourceType "Three-Phase Programmable Voltage Source"
- ShowPortLabels on
- PositiveSequence "[120e3 0 60]"
- VariationEntity "Amplitude"
- VariationType "Table of time-amplitude pairs"
- VariationStep "-0.15"
- VariationRate "10"
- VariationMagnitude "0.3"
- VariationFrequency "2"
- VariationTiming "[1 1.5]"
- VariationPhaseA off
- Amplitudes "[1 0.8 1.0]"
- TimeValues "[0 0.03 0.13]"
- HarmonicGeneration off
- HarmonicA "[1 -0.1 0 1]"
- HarmonicB "[2 0.15 35 2]"
- Timing "[5 5.5]"
- }
- Block {
- BlockType Reference
- Name "120 kV/25 kVn47 MVA"
- Ports [0, 0, 0, 0, 0, 3, 3]
- Position [225, 65, 280, 115]
- BackgroundColor "yellow"
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Three-PhasenTransformern(Tw"
- "o Windings)"
- SourceType "Three-Phase Transformer (Two Windings)"
- ShowPortLabels on
- NominalPower "[47e6 60 ]"
- Winding1Connection "Yg"
- Winding1 "[ 120e3 0.08/30 0.08 ]"
- Winding2Connection "Delta (D1)"
- Winding2 "[ 25e3 0.08/30 0.08]"
- SetSaturation off
- Rm "500"
- Lm "500"
- Saturation "[ 0,0 ; 0.005,1.2 ; 1.0,1.4 ]"
- Hysteresis off
- DataFile "'basic_model'"
- SetInitialFlux off
- InitialFluxes "[ 0.8 , -0.8 , 0.7 ]"
- Measurements "None"
- TransfoNumber "0"
- MoreParameters off
- BreakLoop off
- }
- Block {
- BlockType Reference
- Name "25 kV/ 575 Vn6*2 MVA"
- Ports [0, 0, 0, 0, 0, 3, 3]
- Position [505, 65, 550, 115]
- BackgroundColor "yellow"
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Three-PhasenTransformern(Tw"
- "o Windings)"
- SourceType "Three-Phase Transformer (Two Windings)"
- ShowPortLabels on
- NominalPower "[2e6*6 60]"
- Winding1Connection "Yg"
- Winding1 "[25e3 , 0.025/30 , 0.025]"
- Winding2Connection "Delta (D1)"
- Winding2 "[ 575, 0.025/30 , 0.025]"
- SetSaturation off
- Rm "500"
- Lm "inf"
- Saturation "[ 0,0 ; 0.0024,1.2 ; 1.0,1.52 ]"
- Hysteresis off
- DataFile "'hysteresis'"
- SetInitialFlux off
- InitialFluxes "[ 0.8 , -0.8 , 0.7 ]"
- Measurements "None"
- TransfoNumber "0"
- MoreParameters off
- BreakLoop off
- }
- Block {
- BlockType Reference
- Name "2500 MVAnX0/X1=3"
- Ports [0, 0, 0, 0, 0, 3, 3]
- Position [110, 68, 165, 112]
- BackgroundColor "yellow"
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Three-PhasenMutual Inductanc"
- "enZ1-Z0"
- SourceType "Three-Phase Mutual Inductance Z1-Z0"
- PhysicalDomain "powersysdomain"
- SubClassName "unknown"
- LeftPortType "p1"
- RightPortType "p1"
- LConnTagsString "a|b|c"
- RConnTagsString "A|B|C"
- PositiveSequence "[0.1 1.0/(2*pi*60)] *120e3^2/2500e6"
- ZeroSequence "[0.3 3.0/(2*pi*60)] *120e3^2/2500e6"
- }
- Block {
- BlockType Reference
- Name "3.3ohms "
- Ports [0, 0, 0, 0, 0, 1, 1]
- Position [289, 210, 311, 230]
- Orientation "down"
- SourceBlock "powerlib/Elements/Series RLC Branch"
- SourceType "Series RLC Branch"
- PhysicalDomain "powersysdomain"
- SubClassName "unknown"
- LeftPortType "p1"
- RightPortType "p1"
- LConnTagsString "__new0"
- RConnTagsString "__new0"
- BranchType "R"
- Resistance "3.3"
- Inductance "[]"
- SetiL0 off
- InitialCurrent "0"
- Capacitance "[]"
- Setx0 off
- InitialVoltage "0"
- Measurements "None"
- }
- Block {
- BlockType Reference
- Name "30 km line"
- Ports [0, 0, 0, 0, 0, 3, 3]
- Position [390, 68, 470, 112]
- BackgroundColor "yellow"
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Three-PhasenPI Section Line"
- SourceType "Three-Phase PI Section Line"
- PhysicalDomain "powersysdomain"
- SubClassName "unknown"
- LeftPortType "p1"
- RightPortType "p1"
- LConnTagsString "a|b|c"
- RConnTagsString "A|B|C"
- Frequency "60"
- Resistances "[0.1153 0.413]"
- Inductances "[1.05e-3 3.32e-3]"
- Capacitances "[11.33e-009 5.01e-009]"
- Length "30"
- }
- Block {
- BlockType Reference
- Name "B120n(120 kV)"
- Ports [0, 0, 0, 0, 0, 3, 3]
- Position [190, 67, 195, 113]
- BackgroundColor "black"
- SourceBlock "powerlib/Measurements/Three-PhasenV-I Measurem"
- "ent"
- SourceType "Three-Phase VI Measurement"
- ShowPortLabels on
- VoltageMeasurement "no"
- SetLabelV off
- LabelV "Vabc_B120"
- Vpu off
- CurrentMeasurement "no"
- SetLabelI on
- LabelI "Iabc_B120"
- Ipu off
- Pbase "100e6"
- Vbase "120e3"
- OutputType "Complex"
- PhasorSimulation off
- PSBequivalent "0"
- }
- Block {
- BlockType Reference
- Name "B25n(25 kV)"
- Ports [0, 0, 0, 0, 0, 3, 3]
- Position [345, 67, 350, 113]
- BackgroundColor "black"
- SourceBlock "powerlib/Measurements/Three-PhasenV-I Measurem"
- "ent"
- SourceType "Three-Phase VI Measurement"
- ShowPortLabels on
- VoltageMeasurement "phase-to-ground"
- SetLabelV on
- LabelV "Vabc_B25"
- Vpu on
- CurrentMeasurement "yes"
- SetLabelI on
- LabelI "Iabc_B25"
- Ipu on
- Pbase "10e6"
- Vbase "25e3"
- OutputType "Complex"
- PhasorSimulation off
- PSBequivalent "0"
- }
- Block {
- BlockType Reference
- Name "B575n(575 V)"
- Ports [0, 0, 0, 0, 0, 3, 3]
- Position [630, 70, 635, 110]
- BackgroundColor "black"
- SourceBlock "powerlib/Measurements/Three-PhasenV-I Measurem"
- "ent"
- SourceType "Three-Phase VI Measurement"
- ShowPortLabels on
- VoltageMeasurement "phase-to-ground"
- SetLabelV on
- LabelV "Vabc_B575"
- Vpu on
- CurrentMeasurement "yes"
- SetLabelI on
- LabelI "Iabc_B575"
- Ipu on
- Pbase "6*1.5e6/0.9"
- Vbase "575"
- OutputType "Complex"
- PhasorSimulation off
- PSBequivalent "0"
- }
- Block {
- BlockType BusSelector
- Name "BusnSelector"
- Ports [1, 4]
- Position [855, 15, 860, 135]
- ShowName off
- OutputSignals "Vdc,wr,P,Q"
- Port {
- PortNumber 1
- Name "<Vdc>"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 2
- Name "<wr>"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 3
- Name "<P>"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 4
- Name "<Q>"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Demux
- Name "Demux"
- Ports [1, 2]
- Position [790, 304, 795, 351]
- BackgroundColor "black"
- ShowName off
- Outputs "2"
- DisplayOption "bar"
- Port {
- PortNumber 1
- Name "P (MW)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 2
- Name "Q (Mvar)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Reference
- Name "Discrete nTotal HarmonicnDistorsion"
- Ports [1, 1]
- Position [395, 313, 455, 367]
- SourceBlock "powerlib_extras/DiscretenMeasurements/Discrete"
- " nTotal HarmonicnDistorsion"
- SourceType "Discrete Total Harmonic Distortion "
- ShowPortLabels on
- Freq "60"
- Ts "Ts_Power"
- }
- Block {
- BlockType Reference
- Name "Filtern0.9 MvarnQ=50"
- Ports [0, 0, 0, 0, 0, 3]
- Position [660, 155, 690, 195]
- Orientation "down"
- BackgroundColor "yellow"
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Three-PhasenSeries RLC Load"
- SourceType "Three-Phase Series RLC Load"
- PhysicalDomain "powersysdomain"
- SubClassName "unknown"
- LeftPortType "p1"
- RightPortType "p1"
- LConnTagsString "A|B|C"
- Configuration "Y (grounded)"
- NominalVoltage "575"
- NominalFrequency "60"
- ActivePower "6*150e3/50"
- InductivePower "0"
- CapacitivePower "6*150e3"
- Measurements "None"
- }
- Block {
- BlockType From
- Name "From1"
- Position [625, 406, 695, 424]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Vabc_B25"
- Port {
- PortNumber 1
- Name "Vabc_B25 (pu)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType From
- Name "From2"
- Position [625, 431, 695, 449]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Iabc_B25"
- Port {
- PortNumber 1
- Name "Iabc_B25 (pu)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType From
- Name "From3"
- Position [725, 355, 760, 375]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Vdc"
- Port {
- PortNumber 1
- Name "Vdc (V)"
- PropagatedSignals "Vdc"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType From
- Name "From4"
- Position [725, 381, 760, 399]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "wr"
- Port {
- PortNumber 1
- Name "wr (pu)"
- PropagatedSignals "wr"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType From
- Name "From5"
- Position [625, 256, 695, 274]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Vabc_B575"
- Port {
- PortNumber 1
- Name "Vabc_B575 (pu)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType From
- Name "From6"
- Position [625, 281, 695, 299]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Iabc_B575"
- Port {
- PortNumber 1
- Name "Iabc_B575 (pu)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType From
- Name "From7"
- Position [625, 332, 665, 348]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Q_pu"
- }
- Block {
- BlockType From
- Name "From8"
- Position [625, 312, 665, 328]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "P_pu"
- }
- Block {
- BlockType From
- Name "From9"
- Position [225, 331, 295, 349]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Vabc_B25"
- }
- Block {
- BlockType Goto
- Name "Goto1"
- Position [900, 81, 935, 99]
- ShowName off
- GotoTag "P_pu"
- TagVisibility "local"
- }
- Block {
- BlockType Goto
- Name "Goto2"
- Position [905, 20, 935, 40]
- ShowName off
- GotoTag "Vdc"
- TagVisibility "local"
- }
- Block {
- BlockType Goto
- Name "Goto3"
- Position [905, 50, 935, 70]
- ShowName off
- GotoTag "wr"
- TagVisibility "local"
- }
- Block {
- BlockType Goto
- Name "Goto5"
- Position [900, 111, 935, 129]
- ShowName off
- GotoTag "Q_pu"
- TagVisibility "local"
- }
- Block {
- BlockType Reference
- Name "Ground1"
- Ports [0, 0, 0, 0, 0, 1]
- Position [14, 110, 26, 125]
- Orientation "down"
- ShowName off
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Ground"
- SourceType "Ground"
- PhysicalDomain "powersysdomain"
- SubClassName "unknown"
- LeftPortType "p1"
- RightPortType "p1"
- LConnTagsString "a"
- }
- Block {
- BlockType Reference
- Name "Ground3"
- Ports [0, 0, 0, 0, 0, 1]
- Position [294, 250, 306, 265]
- Orientation "down"
- ShowName off
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Ground"
- SourceType "Ground"
- PhysicalDomain "powersysdomain"
- SubClassName "unknown"
- LeftPortType "p1"
- RightPortType "p1"
- LConnTagsString "a"
- }
- Block {
- BlockType Reference
- Name "GroundingnTransformernX0=4.7 Ohms"
- Ports [0, 0, 0, 0, 0, 4, 3]
- Position [230, 155, 280, 205]
- Orientation "left"
- BackgroundColor "yellow"
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Three-PhasenTransformern(Tw"
- "o Windings)"
- SourceType "Three-Phase Transformer (Two Windings)"
- ShowPortLabels on
- NominalPower "[100e6 60]"
- Winding1Connection "Yn"
- Winding1 "[ 25e3 4.7/(25e3^2/100e6)/30 4.7/(25e3^2/10"
- "0e6)]"
- Winding2Connection "Delta (D11)"
- Winding2 "[ 25e3 1e-6 0]"
- SetSaturation off
- Rm "500"
- Lm "500"
- Saturation "[ 0,0 ; 0.005,1.2 ; 1.0,1.4 ]"
- Hysteresis off
- DataFile "'basic_model'"
- SetInitialFlux off
- InitialFluxes "[ 0.8 , -0.8 , 0.7 ]"
- Measurements "None"
- TransfoNumber "0"
- MoreParameters off
- BreakLoop off
- }
- Block {
- BlockType Reference
- Name "Loadn500 kW"
- Ports [0, 0, 0, 0, 0, 3]
- Position [575, 155, 605, 195]
- Orientation "down"
- BackgroundColor "yellow"
- NamePlacement "alternate"
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Three-PhasenSeries RLC Load"
- SourceType "Three-Phase Series RLC Load"
- PhysicalDomain "powersysdomain"
- SubClassName "unknown"
- LeftPortType "p1"
- RightPortType "p1"
- LConnTagsString "A|B|C"
- Configuration "Y (grounded)"
- NominalVoltage "575"
- NominalFrequency "60"
- ActivePower "500e3"
- InductivePower "0"
- CapacitivePower "0"
- Measurements "None"
- }
- Block {
- BlockType Gain
- Name "MW"
- Position [715, 307, 765, 353]
- Gain "6*1.5/0.9"
- }
- Block {
- BlockType SubSystem
- Name "More info"
- Ports []
- Position [880, 495, 907, 520]
- ForegroundColor "blue"
- DropShadow on
- OpenFcn "web('power_wind_dfig_det.html')"
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskDisplay "disp('?')"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- System {
- Name "More info"
- Location [125, 254, 937, 641]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- }
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [2, 1]
- Position [690, 311, 695, 349]
- ShowName off
- Inputs "2"
- DisplayOption "bar"
- }
- Block {
- BlockType Scope
- Name "Scope"
- Ports [8]
- Position [865, 241, 930, 464]
- BackgroundColor "green"
- Floating off
- Location [404, 142, 1022, 899]
- Open off
- NumInputPorts "8"
- ZoomMode "yonly"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- axes2 "%<SignalLabel>"
- axes3 "%<SignalLabel>"
- axes4 "%<SignalLabel>"
- axes5 "%<SignalLabel>"
- axes6 "%<SignalLabel>"
- axes7 "%<SignalLabel>"
- axes8 "%<SignalLabel>"
- }
- TimeRange "0.2"
- YMin "-1.5~-0.75~2~-5~1100~1~-1.5~-1"
- YMax "1.5~0.75~8~5~1300~1.2~1.5~1"
- SaveToWorkspace on
- DataFormat "StructureWithTime"
- LimitDataPoints off
- SampleTime "0"
- }
- Block {
- BlockType Selector
- Name "Selector"
- Ports [1, 1]
- Position [320, 321, 360, 359]
- ShowName off
- Elements "[1]"
- InputPortWidth "3"
- }
- Block {
- BlockType Display
- Name "THD Va_B25"
- Ports [1]
- Position [485, 325, 575, 355]
- Decimation "200"
- Lockdown off
- }
- Block {
- BlockType SubSystem
- Name "Wind TurbinenDoubly-Fed Induction Generatorn("
- "Detailed Model)"
- Ports [1, 1, 0, 0, 0, 3]
- Position [765, 18, 830, 132]
- BackgroundColor "lightBlue"
- DialogController "PMDialogs.PMDefaultMaskDlg"
- LoadFcn "%find_system(gcs,'FollowLinks', 'on', 'LookUnde"
- "rMasks', 'all');"
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "Wind TurbinenDoubly-Fed Induction Generator"
- "n(Detailed Model)"
- Location [46, 74, 985, 962]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "Wind (m/s) "
- Position [560, 543, 590, 557]
- IconDisplay "Port number"
- }
- Block {
- BlockType Reference
- Name "Asynchronous Machinenpu Units"
- Ports [1, 1, 0, 0, 0, 3, 3]
- Position [505, 104, 620, 216]
- BackgroundColor "yellow"
- SourceBlock "powerlib/Machines/Asynchronous Machinenpu "
- "Units"
- SourceType "Asynchronous Machine"
- ShowPortLabels "on"
- PresetModel "No"
- MechanicalLoad "Torque Tm"
- ShowDetailedParameters "on"
- RotorType "Wound"
- ReferenceFrame "Stationary"
- NominalParameters "[ Pnom Vnom Fnom ]"
- Stator "[ Rs Lls]"
- Rotor "[ Rr Llr]"
- Lm "Lm"
- Mechanical "[H F p]"
- InitialConditions "[-0.1 0 0 0 0 0 0 0]"
- Units "0"
- LoadFlowParameters "0"
- SimulateSaturation "off"
- Saturation "[ 0 0 ; 0 0 ]"
- }
- Block {
- BlockType Reference
- Name "B1"
- Ports [0, 2, 0, 0, 0, 3, 3]
- Position [85, 36, 90, 214]
- BackgroundColor "black"
- SourceBlock "powerlib/Measurements/Three-PhasenV-I Meas"
- "urement"
- SourceType "Three-Phase VI Measurement"
- ShowPortLabels "on"
- VoltageMeasurement "phase-to-ground"
- SetLabelV "off"
- LabelV "Vabc_B1"
- Vpu "on"
- CurrentMeasurement "yes"
- SetLabelI "off"
- LabelI "Iabc_Beol"
- Ipu "on"
- Pbase "Pnom"
- Vbase "Vnom"
- OutputType "Complex"
- PhasorSimulation "off"
- PSBequivalent "0"
- }
- Block {
- BlockType Reference
- Name "B_grid_conv"
- Ports [0, 1, 0, 0, 0, 3, 3]
- Position [345, 294, 350, 406]
- BackgroundColor "black"
- SourceBlock "powerlib/Measurements/Three-PhasenV-I Meas"
- "urement"
- SourceType "Three-Phase VI Measurement"
- ShowPortLabels "on"
- VoltageMeasurement "no"
- SetLabelV "off"
- LabelV "Vabc_B1"
- Vpu "off"
- CurrentMeasurement "yes"
- SetLabelI "off"
- LabelI "Iabc_Beol"
- Ipu "on"
- Pbase "Pnom"
- Vbase "Vnom"
- OutputType "Complex"
- PhasorSimulation "off"
- PSBequivalent "0"
- }
- Block {
- BlockType Reference
- Name "B_rotor_conv"
- Ports [0, 1, 0, 0, 0, 3, 3]
- Position [670, 331, 675, 409]
- BackgroundColor "black"
- SourceBlock "powerlib/Measurements/Three-PhasenV-I Meas"
- "urement"
- SourceType "Three-Phase VI Measurement"
- ShowPortLabels "on"
- VoltageMeasurement "no"
- SetLabelV "off"
- LabelV "Vabc_B1"
- Vpu "on"
- CurrentMeasurement "yes"
- SetLabelI "off"
- LabelI "Iabc_Beol"
- Ipu "on"
- Pbase "Pnom"
- Vbase "Vnom"
- OutputType "Complex"
- PhasorSimulation "off"
- PSBequivalent "0"
- }
- Block {
- BlockType Reference
- Name "B_stator"
- Ports [0, 1, 0, 0, 0, 3, 3]
- Position [290, 104, 295, 216]
- BackgroundColor "black"
- SourceBlock "powerlib/Measurements/Three-PhasenV-I Meas"
- "urement"
- SourceType "Three-Phase VI Measurement"
- ShowPortLabels "on"
- VoltageMeasurement "no"
- SetLabelV "off"
- LabelV "Vabc_B1"
- Vpu "off"
- CurrentMeasurement "yes"
- SetLabelI "off"
- LabelI "Iabc_Beol"
- Ipu "on"
- Pbase "Pnom"
- Vbase "Vnom"
- OutputType "Complex"
- PhasorSimulation "off"
- PSBequivalent "0"
- }
- Block {
- BlockType BusSelector
- Name "BusnSelector"
- Ports [1, 2]
- Position [650, 95, 655, 135]
- ShowName off
- OutputSignals "Mechanical.Rotor speed (wm),Mechanical.Roto"
- "r angle thetam (rad)"
- Port {
- PortNumber 1
- Name "<Rotor speed (wm)>"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 2
- Name "<Rotor angle thetam (rad)>"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Reference
- Name "C1"
- Ports [0, 0, 0, 0, 0, 1, 1]
- Position [480, 345, 500, 375]
- Orientation "down"
- BackgroundColor "cyan"
- NamePlacement "alternate"
- SourceBlock "powerlib/Elements/Series RLC Branch"
- SourceType "Series RLC Branch"
- PhysicalDomain "powersysdomain"
- SubClassName "unknown"
- LeftPortType "p1"
- RightPortType "p1"
- LConnTagsString "__new0"
- RConnTagsString "__new0"
- BranchType "C"
- Resistance "[]"
- Inductance "[]"
- SetiL0 "off"
- InitialCurrent "0"
- Capacitance "C_DClink"
- Setx0 "on"
- InitialVoltage "Vdc_nom"
- Measurements "Branch voltage"
- }
- Block {
- BlockType SubSystem
- Name "Control System"
- Ports [10, 4]
- Position [160, 464, 290, 856]
- ForegroundColor "blue"
- BackgroundColor "lightBlue"
- FontName "Arial"
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskPromptString "Converter maximum power (p.u.):|Nominal DC "
- "bus voltage (V):|DC bus capacitor (F):|Tracking characteristic speeds: [speed"
- "_A(pu) ... speed_D(pu)]|Power at point C (pu/mechanical power):|Pitch angle c"
- "ontroller gain [Kp]:|Maximum pitch angle (deg):|Maximum rate of change of pit"
- "ch angle (deg/s):|Reactive power regulator gains: [Kp Ki]|DC bus voltage regu"
- "lator gains: [Kp Ki]|Grid-side converter current regulator gains: [Kp Ki]|Rot"
- "or-side converter current regulator gains: [Kp Ki]|Maximum rate of change of "
- "reference reactive power (p.u./s):|Maximum rate of change of reference torque"
- " (p.u./s):|Maximum rate of change of converter reference currents (p.u./s):"
- MaskStyleString "edit,edit,edit,edit,edit,edit,edit,edit,edi"
- "t,edit,edit,edit,edit,edit,edit"
- MaskTunableValueString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,o"
- "n"
- MaskCallbackString "||||||||||||||"
- MaskEnableString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,o"
- "n"
- MaskVisibilityString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,o"
- "n"
- MaskToolTipString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,o"
- "n"
- MaskVarAliasString ",,,,,,,,,,,,,,"
- MaskVariables "Pmax=@1;Vdc_nom=@2;capacitor=@3;speed_ABCD="
- "@4;power_C=@5;pitch_gain=@6;pitch_max=@7;pitch_rate=@8;Kpi_Q=@9;Kpi_dc_reg=@1"
- "0;Kpi_grid_side_cur_reg=@11;Kpi_rotor_side_cur_reg=@12;Q_slew_rate=@13;torque"
- "_slew_rate=@14;current_slew_rate=@15;"
- MaskInitialization "%Imax_grid_conv=Pmax_pu/Vnom_pu=Pmax_pu/1;"
- "nImax_grid_conv=Pmax;nn%Points for reference power curvenspeed_A=speed_AB"
- "CD(1); %pu of synchronous speednspeed_B=speed_ABCD(2); %pu of synchronous sp"
- "eednspeed_C=speed_ABCD(3); %pu of synchronous speednspeed_D=speed_ABCD(4); "
- "%pu of synchronous speednnpower_A=0; %pu of mechanical powernpower_B=power"
- "_C*(speed_B/speed_C)^3; %pu of mechanical powernpower_D=1; %pu of mechanical"
- " powernn%Controler gainsnKp_Q=Kpi_Q(1);nKi_Q=Kpi_Q(2);nKp_dc_reg=Kpi_dc_"
- "reg(1);nKi_dc_reg=Kpi_dc_reg(2);nKp_grid_side_cur_reg=Kpi_grid_side_cur_reg"
- "(1);nKi_grid_side_cur_reg=Kpi_grid_side_cur_reg(2);nKp_rotor_side_cur_reg=K"
- "pi_rotor_side_cur_reg(1);nKi_rotor_side_cur_reg=Kpi_rotor_side_cur_reg(2);n"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "0.5|Vdc_nom|C_DClink|[0.7 0.71 1.2 1.21]|po"
- "wer_C|500|45|2|[0.05 5]|[0.002 0.05]|[2.5 500]|[0.3 8]|100|1|200"
- MaskTabNameString ",,,,,,,,,,,,,,"
- System {
- Name "Control System"
- Location [109, 290, 1024, 846]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "Vabc_B1"
- Position [35, 58, 65, 72]
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Q_ref"
- Position [35, 283, 65, 297]
- Port "2"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Iq_grid_conv_ref"
- Position [35, 328, 65, 342]
- Port "3"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "wr"
- Position [35, 418, 65, 432]
- Port "4"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Iabc_grid_conv"
- Position [35, 103, 65, 117]
- Port "5"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Iabc_stator"
- Position [35, 193, 65, 207]
- Port "6"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Iabc_rotor"
- Position [35, 238, 65, 252]
- Port "7"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Q_B1"
- Position [35, 373, 65, 387]
- Port "8"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Vdc"
- Position [35, 148, 65, 162]
- Port "9"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "angle_rotor"
- Position [35, 463, 65, 477]
- Port "10"
- IconDisplay "Port number"
- }
- Block {
- BlockType SubSystem
- Name "Control"
- Ports [10, 4]
- Position [435, 35, 575, 500]
- ForegroundColor "blue"
- BackgroundColor "lightBlue"
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "Control"
- Location [56, 90, 1089, 895]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "Vabc_B1"
- Position [40, 63, 70, 77]
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Iabc_grid_conv"
- Position [255, 98, 285, 112]
- Port "2"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Vdc"
- Position [345, 303, 375, 317]
- Port "3"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Iabc_stator"
- Position [430, 508, 460, 522]
- Port "4"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Iabc_rotor"
- Position [430, 548, 460, 562]
- Port "5"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Q_ref"
- Position [430, 628, 460, 642]
- Port "6"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Iq_grid_conv_ref"
- Position [425, 203, 455, 217]
- Port "7"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Q_B1"
- Position [430, 668, 460, 682]
- Port "8"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "wr"
- Position [300, 828, 330, 842]
- Port "9"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "angle_rotor"
- Position [430, 708, 460, 722]
- Port "10"
- IconDisplay "Port number"
- }
- Block {
- BlockType Saturate
- Name "0-pitch_max"
- Position [515, 820, 545, 850]
- UpperLimit "pitch_max"
- LowerLimit "0"
- }
- Block {
- BlockType Constant
- Name "Constant2"
- Position [345, 860, 400, 880]
- ShowName off
- Value "speed_D"
- }
- Block {
- BlockType Reference
- Name "Discreten3-phase PLL"
- Ports [1, 3]
- Position [130, 135, 195, 205]
- BackgroundColor "lightBlue"
- SourceBlock "powerlib_extras/Discrete nControl "
- "Blocks/Discreten3-phase PLL"
- SourceType "Discrete 3-phase PLL"
- ShowPortLabels "on"
- Fmin "45"
- Par_Init "[-45 60]"
- ParK "[60 1400]"
- Ts "Ts_Control"
- }
- Block {
- BlockType SubSystem
- Name "Grid-side converternControl system"
- Ports [6, 1]
- Position [495, 50, 640, 265]
- BackgroundColor "lightBlue"
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "Grid-side converternControl syst"
- "em"
- Location [44, 154, 987, 655]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "Vabc_B1"
- Position [205, 178, 235, 192]
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Iabc_grid_conv"
- Position [205, 208, 235, 222]
- Port "2"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Theta"
- Position [205, 148, 235, 162]
- Port "3"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Vdc"
- Position [55, 323, 85, 337]
- Port "4"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Iq_ref"
- Position [270, 338, 300, 352]
- Port "5"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Freq"
- Position [485, 248, 515, 262]
- Port "6"
- IconDisplay "Port number"
- }
- Block {
- BlockType SubSystem
- Name "Current regulator"
- Ports [4, 1]
- Position [555, 145, 640, 320]
- BackgroundColor "lightBlue"
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "Current regulator"
- Location [462, 257, 1164, 847]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "Vdqs"
- Position [30, 63, 60, 77]
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Idq"
- Position [145, 238, 175, 252]
- Port "2"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Freq"
- Position [25, 503, 55, 517]
- Port "3"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Idq_ref"
- Position [145, 163, 175, 177]
- Port "4"
- IconDisplay "Port number"
- }
- Block {
- BlockType Constant
- Name "Constant1"
- Position [365, 67, 405, 83]
- ShowName off
- Value "L_RL"
- }
- Block {
- BlockType Constant
- Name "Constant2"
- Position [360, 417, 400, 433]
- ShowName off
- Value "L_RL"
- }
- Block {
- BlockType Constant
- Name "Constant3"
- Position [365, 132, 405, 148]
- ShowName off
- Value "R_RL"
- }
- Block {
- BlockType Constant
- Name "Constant4"
- Position [360, 372, 400, 388]
- ShowName off
- Value "R_RL"
- }
- Block {
- BlockType Demux
- Name "Demux"
- Ports [1, 2]
- Position [210, 224, 215, 266]
- BackgroundColor "black"
- ShowName off
- Outputs "2"
- Port {
- PortNumber 1
- Name "Id"
- PropagatedSignals "Vd"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 2
- Name "Iq"
- PropagatedSignals "Vq"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Demux
- Name "Demux1"
- Ports [1, 2]
- Position [210, 149, 215, 191]
- BackgroundColor "black"
- ShowName off
- Outputs "2"
- Port {
- PortNumber 1
- Name "Id_ref"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 2
- Name "Iq_ref"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Demux
- Name "Demux2"
- Ports [1, 2]
- Position [90, 49, 95, 91]
- BackgroundColor "black"
- ShowName off
- Outputs "2"
- Port {
- PortNumber 1
- Name "Vd"
- PropagatedSignals "Vd"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 2
- Name "Vq"
- PropagatedSignals "Vq"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Demux
- Name "Demux3"
- Ports [1, 2]
- Position [465, 209, 470, 251]
- BackgroundColor "black"
- ShowName off
- Outputs "2"
- Port {
- PortNumber 1
- Name "vd'"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 2
- Name "vq'"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Reference
- Name "DiscretenPI Controller"
- Ports [1, 1]
- Position [405, 215, 435, 245]
- BackgroundColor "lightBlue"
- ShowName off
- SourceBlock "powerlib_extras/Discrete nContro"
- "l Blocks/DiscretenPI Controller"
- SourceType "Discrete PI Controller"
- ShowPortLabels "on"
- Kp "Kpi_grid_side_cur_reg(1)"
- Ki "Kpi_grid_side_cur_reg(2)"
- Par_Limits "[1.1 -1.1]"
- Init "0"
- Ts "Ts_Control"
- }
- Block {
- BlockType Product
- Name "Divide3"
- Ports [2, 1]
- Position [90, 502, 120, 533]
- ShowName off
- Inputs "*/"
- InputSameDT off
- OutDataTypeMode "Inherit via internal rule"
- OutScaling "2^-10"
- RndMeth "Floor"
- SaturateOnIntegerOverflow off
- }
- Block {
- BlockType Constant
- Name "Fnom"
- Position [25, 535, 55, 565]
- Value "Fnom"
- }
- Block {
- BlockType From
- Name "From1"
- Position [360, 437, 400, 453]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "w_pu"
- }
- Block {
- BlockType From
- Name "From10"
- Position [365, 153, 395, 167]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "idr"
- }
- Block {
- BlockType From
- Name "From2"
- Position [360, 353, 390, 367]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "iqr"
- }
- Block {
- BlockType From
- Name "From3"
- Position [365, 108, 395, 122]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "iqr"
- }
- Block {
- BlockType From
- Name "From4"
- Position [365, 87, 405, 103]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "w_pu"
- }
- Block {
- BlockType From
- Name "From5"
- Position [360, 398, 390, 412]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "idr"
- }
- Block {
- BlockType Goto
- Name "Goto1"
- Position [150, 512, 200, 528]
- ShowName off
- GotoTag "w_pu"
- TagVisibility "local"
- }
- Block {
- BlockType Goto
- Name "Goto2"
- Position [270, 364, 300, 376]
- ShowName off
- GotoTag "iqr"
- TagVisibility "local"
- }
- Block {
- BlockType Goto
- Name "Goto3"
- Position [270, 129, 300, 141]
- ShowName off
- GotoTag "idr"
- TagVisibility "local"
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [2, 1]
- Position [615, 205, 620, 240]
- ShowName off
- Inputs "2"
- DisplayOption "bar"
- }
- Block {
- BlockType Mux
- Name "Mux1"
- Ports [2, 1]
- Position [375, 208, 380, 252]
- ShowName off
- Inputs "2"
- DisplayOption "bar"
- }
- Block {
- BlockType Product
- Name "Product"
- Ports [3, 1]
- Position [440, 66, 460, 124]
- ShowName off
- Inputs "3"
- RndMeth "Floor"
- }
- Block {
- BlockType Product
- Name "Product1"
- Ports [3, 1]
- Position [435, 395, 455, 455]
- ShowName off
- Inputs "3"
- RndMeth "Floor"
- }
- Block {
- BlockType Product
- Name "Product2"
- Ports [2, 1]
- Position [440, 129, 460, 171]
- ShowName off
- RndMeth "Floor"
- }
- Block {
- BlockType Product
- Name "Product3"
- Ports [2, 1]
- Position [435, 349, 455, 391]
- ShowName off
- RndMeth "Floor"
- }
- Block {
- BlockType Sum
- Name "Sum1"
- Ports [2, 1]
- Position [545, 175, 565, 195]
- ShowName off
- IconShape "round"
- Inputs "|+-"
- }
- Block {
- BlockType Sum
- Name "Sum2"
- Ports [2, 1]
- Position [300, 320, 330, 350]
- ShowName off
- IconShape "round"
- Inputs "-+|"
- }
- Block {
- BlockType Sum
- Name "Sum3"
- Ports [3, 1]
- Position [485, 45, 515, 75]
- ShowName off
- IconShape "round"
- Inputs "||++-"
- }
- Block {
- BlockType Sum
- Name "Sum4"
- Ports [2, 1]
- Position [300, 145, 330, 175]
- ShowName off
- IconShape "round"
- Inputs "|+-"
- }
- Block {
- BlockType Sum
- Name "Sum5"
- Ports [3, 1]
- Position [485, 380, 515, 410]
- ShowName off
- IconShape "round"
- Inputs "|--+"
- }
- Block {
- BlockType Sum
- Name "Sum6"
- Ports [2, 1]
- Position [545, 250, 565, 270]
- ShowName off
- IconShape "round"
- Inputs "|-+"
- }
- Block {
- BlockType Outport
- Name "Vdq*"
- Position [655, 218, 685, 232]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "Constant2"
- SrcPort 1
- DstBlock "Product1"
- DstPort 2
- }
- Line {
- Name "vd'"
- Labels [0, 1]
- SrcBlock "Demux3"
- SrcPort 1
- Points [80, 0]
- DstBlock "Sum1"
- DstPort 2
- }
- Line {
- SrcBlock "DiscretenPI Controller"
- SrcPort 1
- DstBlock "Demux3"
- DstPort 1
- }
- Line {
- SrcBlock "Mux1"
- SrcPort 1
- DstBlock "DiscretenPI Controller"
- DstPort 1
- }
- Line {
- Name "Vd"
- Labels [-1, 1]
- SrcBlock "Demux2"
- SrcPort 1
- DstBlock "Sum3"
- DstPort 1
- }
- Line {
- SrcBlock "Constant1"
- SrcPort 1
- DstBlock "Product"
- DstPort 1
- }
- Line {
- SrcBlock "Vdqs"
- SrcPort 1
- DstBlock "Demux2"
- DstPort 1
- }
- Line {
- Name "Iq_ref"
- SrcBlock "Demux1"
- SrcPort 2
- Points [30, 0; 0, 155]
- Branch {
- Labels [-1, 1]
- DstBlock "Sum2"
- DstPort 2
- }
- Branch {
- Points [0, 35]
- DstBlock "Goto2"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Idq_ref"
- SrcPort 1
- DstBlock "Demux1"
- DstPort 1
- }
- Line {
- Name "Id_ref"
- Labels [1, 0]
- SrcBlock "Demux1"
- SrcPort 1
- Points [30, 0]
- Branch {
- DstBlock "Sum4"
- DstPort 1
- }
- Branch {
- Points [0, -25]
- DstBlock "Goto3"
- DstPort 1
- }
- }
- Line {
- Name "Iq"
- Labels [2, 1]
- SrcBlock "Demux"
- SrcPort 2
- Points [95, 0]
- DstBlock "Sum2"
- DstPort 1
- }
- Line {
- Name "Id"
- Labels [2, 0]
- SrcBlock "Demux"
- SrcPort 1
- Points [95, 0]
- DstBlock "Sum4"
- DstPort 2
- }
- Line {
- SrcBlock "Idq"
- SrcPort 1
- DstBlock "Demux"
- DstPort 1
- }
- Line {
- SrcBlock "Sum6"
- SrcPort 1
- Points [30, 0]
- DstBlock "Mux"
- DstPort 2
- }
- Line {
- SrcBlock "Sum1"
- SrcPort 1
- Points [30, 0]
- DstBlock "Mux"
- DstPort 1
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- DstBlock "Vdq*"
- DstPort 1
- }
- Line {
- Name "vq'"
- Labels [0, 0]
- SrcBlock "Demux3"
- SrcPort 2
- Points [55, 0]
- DstBlock "Sum6"
- DstPort 1
- }
- Line {
- SrcBlock "Product"
- SrcPort 1
- Points [14, 0]
- DstBlock "Sum3"
- DstPort 2
- }
- Line {
- SrcBlock "Constant3"
- SrcPort 1
- DstBlock "Product2"
- DstPort 1
- }
- Line {
- SrcBlock "Constant4"
- SrcPort 1
- DstBlock "Product3"
- DstPort 2
- }
- Line {
- SrcBlock "Product1"
- SrcPort 1
- Points [14, 0]
- DstBlock "Sum5"
- DstPort 2
- }
- Line {
- Name "Vq"
- Labels [-1, 0]
- SrcBlock "Demux2"
- SrcPort 2
- Points [25, 0; 0, 385; 375, 0]
- DstBlock "Sum5"
- DstPort 3
- }
- Line {
- SrcBlock "Product2"
- SrcPort 1
- Points [35, 0]
- DstBlock "Sum3"
- DstPort 3
- }
- Line {
- SrcBlock "Product3"
- SrcPort 1
- Points [14, 0]
- DstBlock "Sum5"
- DstPort 1
- }
- Line {
- SrcBlock "Sum5"
- SrcPort 1
- Points [35, 0]
- DstBlock "Sum6"
- DstPort 2
- }
- Line {
- SrcBlock "Sum3"
- SrcPort 1
- Points [10, 0]
- DstBlock "Sum1"
- DstPort 1
- }
- Line {
- SrcBlock "Sum4"
- SrcPort 1
- Points [10, 0; 0, 60]
- DstBlock "Mux1"
- DstPort 1
- }
- Line {
- SrcBlock "Sum2"
- SrcPort 1
- Points [10, 0; 0, -95]
- DstBlock "Mux1"
- DstPort 2
- }
- Line {
- SrcBlock "Freq"
- SrcPort 1
- DstBlock "Divide3"
- DstPort 1
- }
- Line {
- SrcBlock "Fnom"
- SrcPort 1
- Points [10, 0; 0, -25]
- DstBlock "Divide3"
- DstPort 2
- }
- Line {
- SrcBlock "Divide3"
- SrcPort 1
- DstBlock "Goto1"
- DstPort 1
- }
- Line {
- SrcBlock "From1"
- SrcPort 1
- DstBlock "Product1"
- DstPort 3
- }
- Line {
- SrcBlock "From4"
- SrcPort 1
- DstBlock "Product"
- DstPort 2
- }
- Line {
- SrcBlock "From3"
- SrcPort 1
- DstBlock "Product"
- DstPort 3
- }
- Line {
- SrcBlock "From10"
- SrcPort 1
- DstBlock "Product2"
- DstPort 2
- }
- Line {
- SrcBlock "From2"
- SrcPort 1
- DstBlock "Product3"
- DstPort 1
- }
- Line {
- SrcBlock "From5"
- SrcPort 1
- DstBlock "Product1"
- DstPort 1
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "DC bus voltagenRegulator"
- Ports [2, 1]
- Position [165, 276, 240, 349]
- BackgroundColor "lightBlue"
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "DC bus voltagenRegulator"
- Location [660, 722, 1116, 896]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "Vdc_ref"
- Position [80, 33, 110, 47]
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Vdc"
- Position [80, 83, 110, 97]
- Port "2"
- IconDisplay "Port number"
- }
- Block {
- BlockType Reference
- Name "DiscretenPI Controller"
- Ports [1, 1]
- Position [205, 25, 235, 55]
- BackgroundColor "lightBlue"
- ShowName off
- SourceBlock "powerlib_extras/Discrete nContro"
- "l Blocks/DiscretenPI Controller"
- SourceType "Discrete PI Controller"
- ShowPortLabels "on"
- Kp "Kpi_dc_reg(1)"
- Ki "Kpi_dc_reg(2)"
- Par_Limits "[1 -1]*Imax_grid_conv"
- Init "0"
- Ts "Ts_Control"
- }
- Block {
- BlockType RateLimiter
- Name "Rate Limiter"
- Position [275, 25, 305, 55]
- RisingSlewLimit "current_slew_rate"
- FallingSlewLimit "-current_slew_rate"
- }
- Block {
- BlockType Sum
- Name "Sum7"
- Ports [2, 1]
- Position [160, 30, 180, 50]
- ShowName off
- IconShape "round"
- Inputs "|+-"
- }
- Block {
- BlockType Outport
- Name "Id_ref"
- Position [345, 33, 375, 47]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "Sum7"
- SrcPort 1
- DstBlock "DiscretenPI Controller"
- DstPort 1
- }
- Line {
- SrcBlock "Vdc_ref"
- SrcPort 1
- DstBlock "Sum7"
- DstPort 1
- }
- Line {
- SrcBlock "DiscretenPI Controller"
- SrcPort 1
- DstBlock "Rate Limiter"
- DstPort 1
- }
- Line {
- SrcBlock "Vdc"
- SrcPort 1
- Points [55, 0]
- DstBlock "Sum7"
- DstPort 2
- }
- Line {
- SrcBlock "Rate Limiter"
- SrcPort 1
- DstBlock "Id_ref"
- DstPort 1
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "Idq references"
- Ports [1, 1]
- Position [445, 300, 520, 360]
- BackgroundColor "lightBlue"
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "Idq references"
- Location [248, 180, 861, 552]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "Id*Iq*"
- Position [30, 233, 60, 247]
- IconDisplay "Port number"
- }
- Block {
- BlockType Reference
- Name "Cartesian tonPolar"
- Ports [2, 2]
- Position [215, 200, 250, 280]
- SourceBlock "simulink_extras/Transformations/C"
- "artesian tonPolar"
- SourceType "Cart2Polar"
- ShowPortLabels "on"
- }
- Block {
- BlockType Demux
- Name "Demux"
- Ports [1, 2]
- Position [100, 202, 105, 278]
- BackgroundColor "black"
- ShowName off
- Outputs "2"
- }
- Block {
- BlockType Constant
- Name "Igrid_conv_max^2"
- Position [150, 56, 215, 74]
- Value "Imax_grid_conv^2"
- }
- Block {
- BlockType Math
- Name "MathnFunction"
- Ports [1, 1]
- Position [210, 119, 230, 141]
- ShowName off
- Operator "square"
- }
- Block {
- BlockType Math
- Name "MathnFunction1"
- Ports [1, 1]
- Position [285, 54, 305, 76]
- ShowName off
- Operator "sqrt"
- Port {
- PortNumber 1
- Name "Iq"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [2, 1]
- Position [390, 306, 395, 344]
- ShowName off
- Inputs "2"
- DisplayOption "bar"
- }
- Block {
- BlockType Mux
- Name "Mux1"
- Ports [2, 1]
- Position [390, 146, 395, 184]
- ShowName off
- Inputs "2"
- DisplayOption "bar"
- }
- Block {
- BlockType Product
- Name "Product"
- Ports [2, 1]
- Position [335, 41, 350, 59]
- ShowName off
- RndMeth "Floor"
- }
- Block {
- BlockType RateLimiter
- Name "Rate Limiter"
- Position [495, 205, 525, 235]
- RisingSlewLimit "current_slew_rate"
- FallingSlewLimit "-current_slew_rate"
- }
- Block {
- BlockType Signum
- Name "Sign"
- Position [210, 21, 230, 39]
- ZeroCross off
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [2, 1]
- Position [245, 55, 265, 75]
- ShowName off
- IconShape "round"
- Inputs "|+-"
- }
- Block {
- BlockType Switch
- Name "Switch"
- Position [435, 205, 465, 235]
- Threshold "Imax_grid_conv"
- }
- Block {
- BlockType Terminator
- Name "Terminator"
- Position [270, 252, 280, 268]
- ShowName off
- }
- Block {
- BlockType Outport
- Name "Idq_ref"
- Position [555, 213, 585, 227]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "Id*Iq*"
- SrcPort 1
- DstBlock "Demux"
- DstPort 1
- }
- Line {
- SrcBlock "Sign"
- SrcPort 1
- Points [85, 0]
- DstBlock "Product"
- DstPort 1
- }
- Line {
- Name "Iq"
- Labels [0, 0]
- SrcBlock "MathnFunction1"
- SrcPort 1
- Points [10, 0]
- DstBlock "Product"
- DstPort 2
- }
- Line {
- SrcBlock "Switch"
- SrcPort 1
- DstBlock "Rate Limiter"
- DstPort 1
- }
- Line {
- SrcBlock "Mux1"
- SrcPort 1
- Points [10, 0; 0, 45]
- DstBlock "Switch"
- DstPort 1
- }
- Line {
- SrcBlock "Sum"
- SrcPort 1
- DstBlock "MathnFunction1"
- DstPort 1
- }
- Line {
- SrcBlock "MathnFunction"
- SrcPort 1
- Points [20, 0]
- DstBlock "Sum"
- DstPort 2
- }
- Line {
- SrcBlock "Igrid_conv_max^2"
- SrcPort 1
- DstBlock "Sum"
- DstPort 1
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- Points [10, 0; 0, -95]
- DstBlock "Switch"
- DstPort 3
- }
- Line {
- SrcBlock "Cartesian tonPolar"
- SrcPort 1
- DstBlock "Switch"
- DstPort 2
- }
- Line {
- SrcBlock "Cartesian tonPolar"
- SrcPort 2
- DstBlock "Terminator"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 1
- Points [75, 0]
- Branch {
- Points [5, 0]
- Branch {
- Points [0, 95]
- DstBlock "Mux"
- DstPort 1
- }
- Branch {
- DstBlock "Cartesian tonPolar"
- DstPort 1
- }
- }
- Branch {
- Points [0, -65]
- Branch {
- Points [0, -25]
- DstBlock "MathnFunction"
- DstPort 1
- }
- Branch {
- Points [155, 0]
- DstBlock "Mux1"
- DstPort 1
- }
- }
- }
- Line {
- SrcBlock "Demux"
- SrcPort 2
- Points [20, 0]
- Branch {
- Points [0, -230]
- DstBlock "Sign"
- DstPort 1
- }
- Branch {
- Points [50, 0]
- Branch {
- Points [0, 75]
- DstBlock "Mux"
- DstPort 2
- }
- Branch {
- DstBlock "Cartesian tonPolar"
- DstPort 2
- }
- }
- }
- Line {
- SrcBlock "Rate Limiter"
- SrcPort 1
- DstBlock "Idq_ref"
- DstPort 1
- }
- Line {
- SrcBlock "Product"
- SrcPort 1
- Points [10, 0; 0, 125]
- DstBlock "Mux1"
- DstPort 2
- }
- }
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [2, 1]
- Position [405, 298, 410, 362]
- ShowName off
- Inputs "2"
- DisplayOption "bar"
- }
- Block {
- BlockType RateLimiter
- Name "Rate Limiter"
- Position [330, 330, 360, 360]
- RisingSlewLimit "current_slew_rate"
- FallingSlewLimit "-current_slew_rate"
- }
- Block {
- BlockType SubSystem
- Name "Subsystem1"
- Ports [3, 1]
- Position [700, 193, 810, 277]
- BackgroundColor "lightBlue"
- ShowName off
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "Subsystem1"
- Location [25, 171, 999, 568]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "Theta"
- Position [595, 163, 625, 177]
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Vdq*"
- Position [35, 83, 65, 97]
- Port "2"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Vdc"
- Position [270, 218, 300, 232]
- Port "3"
- IconDisplay "Port number"
- }
- Block {
- BlockType Saturate
- Name "0-1"
- Position [435, 65, 465, 95]
- NamePlacement "alternate"
- UpperLimit "1"
- LowerLimit "0"
- }
- Block {
- BlockType Saturate
- Name "Avoid divisionnby zero"
- Position [320, 165, 350, 195]
- Orientation "up"
- UpperLimit "1e6"
- LowerLimit "1e-6"
- }
- Block {
- BlockType Reference
- Name "Cartesian tonPolar1"
- Ports [2, 2]
- Position [145, 53, 180, 122]
- SourceBlock "simulink_extras/Transformations/C"
- "artesian tonPolar"
- SourceType "Cart2Polar"
- ShowPortLabels "on"
- }
- Block {
- BlockType Demux
- Name "Demux1"
- Ports [1, 2]
- Position [110, 51, 115, 124]
- BackgroundColor "black"
- ShowName off
- Outputs "2"
- }
- Block {
- BlockType Constant
- Name "K"
- Position [210, 121, 320, 139]
- Value "Vnom*2*sqrt(2/3)"
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [3, 1]
- Position [605, 66, 610, 144]
- ShowName off
- Inputs "3"
- DisplayOption "bar"
- Port {
- PortNumber 1
- Name "Vdq0"
- PropagatedSignals ", , "
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Mux
- Name "Mux1"
- Ports [2, 1]
- Position [730, 158, 735, 207]
- ShowName off
- Inputs "2"
- DisplayOption "bar"
- }
- Block {
- BlockType Reference
- Name "Polar tonCartesian"
- Ports [2, 2]
- Position [510, 66, 550, 119]
- SourceBlock "simulink_extras/Transformations/P"
- "olar tonCartesian"
- SourceType "Polar2Cart"
- ShowPortLabels "on"
- }
- Block {
- BlockType Product
- Name "Product1"
- Ports [3, 1]
- Position [360, 63, 380, 97]
- ShowName off
- Inputs "**/"
- RndMeth "Floor"
- Port {
- PortNumber 1
- Name "m"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Trigonometry
- Name "TrigonometricnFunction2"
- Ports [1, 1]
- Position [675, 159, 705, 181]
- ShowName off
- }
- Block {
- BlockType Trigonometry
- Name "TrigonometricnFunction3"
- Ports [1, 1]
- Position [675, 184, 705, 206]
- ShowName off
- Operator "cos"
- }
- Block {
- BlockType Constant
- Name "V0"
- Position [570, 123, 580, 137]
- ShowName off
- Value "0"
- }
- Block {
- BlockType Reference
- Name "dq0_to_abcnTransformation"
- Ports [2, 1]
- Position [765, 91, 830, 149]
- SourceBlock "powerlib_extras/Measurements/dq0_"
- "to_abcnTransformation"
- SourceType "dq0 to abc Transformation"
- ShowPortLabels "on"
- }
- Block {
- BlockType Outport
- Name "Uctrl_grid_conv"
- Position [880, 113, 910, 127]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "Mux1"
- SrcPort 1
- Points [5, 0; 0, -50]
- DstBlock "dq0_to_abcnTransformation"
- DstPort 2
- }
- Line {
- SrcBlock "TrigonometricnFunction2"
- SrcPort 1
- DstBlock "Mux1"
- DstPort 1
- }
- Line {
- SrcBlock "TrigonometricnFunction3"
- SrcPort 1
- DstBlock "Mux1"
- DstPort 2
- }
- Line {
- SrcBlock "V0"
- SrcPort 1
- DstBlock "Mux"
- DstPort 3
- }
- Line {
- SrcBlock "dq0_to_abcnTransformation"
- SrcPort 1
- DstBlock "Uctrl_grid_conv"
- DstPort 1
- }
- Line {
- SrcBlock "Polar tonCartesian"
- SrcPort 1
- DstBlock "Mux"
- DstPort 1
- }
- Line {
- SrcBlock "Polar tonCartesian"
- SrcPort 2
- DstBlock "Mux"
- DstPort 2
- }
- Line {
- Name "Vdq0"
- Labels [0, 0]
- SrcBlock "Mux"
- SrcPort 1
- DstBlock "dq0_to_abcnTransformation"
- DstPort 1
- }
- Line {
- SrcBlock "0-1"
- SrcPort 1
- DstBlock "Polar tonCartesian"
- DstPort 1
- }
- Line {
- Name "m"
- Labels [1, 0]
- SrcBlock "Product1"
- SrcPort 1
- DstBlock "0-1"
- DstPort 1
- }
- Line {
- SrcBlock "Vdc"
- SrcPort 1
- Points [30, 0]
- DstBlock "Avoid divisionnby zero"
- DstPort 1
- }
- Line {
- SrcBlock "K"
- SrcPort 1
- Points [0, -50]
- DstBlock "Product1"
- DstPort 2
- }
- Line {
- SrcBlock "Avoid divisionnby zero"
- SrcPort 1
- Points [0, -70]
- DstBlock "Product1"
- DstPort 3
- }
- Line {
- SrcBlock "Vdq*"
- SrcPort 1
- DstBlock "Demux1"
- DstPort 1
- }
- Line {
- SrcBlock "Theta"
- SrcPort 1
- Points [0, 0; 20, 0]
- Branch {
- DstBlock "TrigonometricnFunction2"
- DstPort 1
- }
- Branch {
- Points [0, 25]
- DstBlock "TrigonometricnFunction3"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Demux1"
- SrcPort 1
- DstBlock "Cartesian tonPolar1"
- DstPort 1
- }
- Line {
- SrcBlock "Demux1"
- SrcPort 2
- DstBlock "Cartesian tonPolar1"
- DstPort 2
- }
- Line {
- SrcBlock "Cartesian tonPolar1"
- SrcPort 1
- DstBlock "Product1"
- DstPort 1
- }
- Line {
- SrcBlock "Cartesian tonPolar1"
- SrcPort 2
- DstBlock "Polar tonCartesian"
- DstPort 2
- }
- Annotation {
- Name "Required value for modulation ind"
- "ex "m" to obtain 1 pu generated voltage by the converter:"
- Position [397, 280]
- UseDisplayTextAsClickCallback off
- FontSize 12
- }
- Annotation {
- Name "m = Vnom * 2*sqrt(2/3) / Vdc"
- Position [227, 310]
- UseDisplayTextAsClickCallback off
- FontSize 12
- }
- Annotation {
- Name "Where Vnom = RMS ph-ph nominal "
- "voltage "
- Position [272, 340]
- UseDisplayTextAsClickCallback off
- FontSize 12
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "Transformationnabc --> dq"
- Ports [3, 2]
- Position [285, 140, 355, 230]
- BackgroundColor "lightBlue"
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "Transformationnabc --> dq"
- Location [264, 289, 823, 663]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "Theta"
- Position [40, 88, 70, 102]
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Vabc"
- Position [210, 73, 240, 87]
- Port "2"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Iabc"
- Position [215, 223, 245, 237]
- Port "3"
- IconDisplay "Port number"
- }
- Block {
- BlockType Demux
- Name "Demux1"
- Ports [1, 2]
- Position [380, 218, 385, 267]
- BackgroundColor "black"
- ShowName off
- Outputs "[2 1]"
- }
- Block {
- BlockType Demux
- Name "Demux3"
- Ports [1, 2]
- Position [380, 68, 385, 117]
- BackgroundColor "black"
- ShowName off
- Outputs "[2 1]"
- }
- Block {
- BlockType Mux
- Name "Mux1"
- Ports [2, 1]
- Position [175, 83, 180, 132]
- ShowName off
- Inputs "2"
- DisplayOption "bar"
- }
- Block {
- BlockType Terminator
- Name "Terminator1"
- Position [405, 249, 415, 261]
- ShowName off
- }
- Block {
- BlockType Terminator
- Name "Terminator3"
- Position [405, 99, 415, 111]
- ShowName off
- }
- Block {
- BlockType Trigonometry
- Name "TrigonometricnFunction2"
- Ports [1, 1]
- Position [120, 84, 150, 106]
- ShowName off
- }
- Block {
- BlockType Trigonometry
- Name "TrigonometricnFunction3"
- Ports [1, 1]
- Position [120, 109, 150, 131]
- ShowName off
- Operator "cos"
- }
- Block {
- BlockType Reference
- Name "abc_to_dq0"
- Ports [2, 1]
- Position [275, 66, 340, 124]
- SourceBlock "powerlib_extras/Measurements/abc_"
- "to_dq0nTransformation"
- SourceType "abc to dq0 Transformation"
- ShowPortLabels "on"
- }
- Block {
- BlockType Reference
- Name "abc_to_dq0 "
- Ports [2, 1]
- Position [280, 216, 345, 274]
- SourceBlock "powerlib_extras/Measurements/abc_"
- "to_dq0nTransformation"
- SourceType "abc to dq0 Transformation"
- ShowPortLabels "on"
- }
- Block {
- BlockType Outport
- Name "Vdq"
- Position [445, 73, 475, 87]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "Idq"
- Position [440, 223, 470, 237]
- Port "2"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "Theta"
- SrcPort 1
- Points [0, 0; 20, 0]
- Branch {
- Points [0, 25]
- DstBlock "TrigonometricnFunction3"
- DstPort 1
- }
- Branch {
- DstBlock "TrigonometricnFunction2"
- DstPort 1
- }
- }
- Line {
- SrcBlock "abc_to_dq0"
- SrcPort 1
- DstBlock "Demux3"
- DstPort 1
- }
- Line {
- SrcBlock "Vabc"
- SrcPort 1
- DstBlock "abc_to_dq0"
- DstPort 1
- }
- Line {
- SrcBlock "abc_to_dq0 "
- SrcPort 1
- DstBlock "Demux1"
- DstPort 1
- }
- Line {
- SrcBlock "TrigonometricnFunction2"
- SrcPort 1
- DstBlock "Mux1"
- DstPort 1
- }
- Line {
- SrcBlock "TrigonometricnFunction3"
- SrcPort 1
- DstBlock "Mux1"
- DstPort 2
- }
- Line {
- SrcBlock "Mux1"
- SrcPort 1
- Points [0, 0; 5, 0]
- Branch {
- Points [0, 150]
- DstBlock "abc_to_dq0 "
- DstPort 2
- }
- Branch {
- DstBlock "abc_to_dq0"
- DstPort 2
- }
- }
- Line {
- SrcBlock "Demux3"
- SrcPort 2
- DstBlock "Terminator3"
- DstPort 1
- }
- Line {
- SrcBlock "Demux3"
- SrcPort 1
- DstBlock "Vdq"
- DstPort 1
- }
- Line {
- SrcBlock "Demux1"
- SrcPort 2
- DstBlock "Terminator1"
- DstPort 1
- }
- Line {
- SrcBlock "Demux1"
- SrcPort 1
- DstBlock "Idq"
- DstPort 1
- }
- Line {
- SrcBlock "Iabc"
- SrcPort 1
- DstBlock "abc_to_dq0 "
- DstPort 1
- }
- }
- }
- Block {
- BlockType Constant
- Name "Vdc_ref (V)"
- Position [45, 284, 100, 306]
- NamePlacement "alternate"
- Value "Vdc_nom"
- }
- Block {
- BlockType Outport
- Name "Uctrl_grid_conv"
- Position [860, 228, 890, 242]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "Transformationnabc --> dq"
- SrcPort 1
- DstBlock "Current regulator"
- DstPort 1
- }
- Line {
- SrcBlock "Theta"
- SrcPort 1
- Points [20, 0]
- Branch {
- DstBlock "Transformationnabc --> dq"
- DstPort 1
- }
- Branch {
- Points [0, -60; 415, 0; 0, 110]
- DstBlock "Subsystem1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Vdc"
- SrcPort 1
- Points [15, 0]
- Branch {
- Points [0, 65; 570, 0; 0, -130]
- DstBlock "Subsystem1"
- DstPort 3
- }
- Branch {
- DstBlock "DC bus voltagenRegulator"
- DstPort 2
- }
- }
- Line {
- SrcBlock "DC bus voltagenRegulator"
- SrcPort 1
- DstBlock "Mux"
- DstPort 1
- }
- Line {
- SrcBlock "Transformationnabc --> dq"
- SrcPort 2
- DstBlock "Current regulator"
- DstPort 2
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- DstBlock "Idq references"
- DstPort 1
- }
- Line {
- SrcBlock "Rate Limiter"
- SrcPort 1
- DstBlock "Mux"
- DstPort 2
- }
- Line {
- SrcBlock "Iq_ref"
- SrcPort 1
- DstBlock "Rate Limiter"
- DstPort 1
- }
- Line {
- SrcBlock "Vabc_B1"
- SrcPort 1
- DstBlock "Transformationnabc --> dq"
- DstPort 2
- }
- Line {
- SrcBlock "Iabc_grid_conv"
- SrcPort 1
- DstBlock "Transformationnabc --> dq"
- DstPort 3
- }
- Line {
- SrcBlock "Subsystem1"
- SrcPort 1
- DstBlock "Uctrl_grid_conv"
- DstPort 1
- }
- Line {
- SrcBlock "Vdc_ref (V)"
- SrcPort 1
- DstBlock "DC bus voltagenRegulator"
- DstPort 1
- }
- Line {
- SrcBlock "Current regulator"
- SrcPort 1
- DstBlock "Subsystem1"
- DstPort 2
- }
- Line {
- SrcBlock "Idq references"
- SrcPort 1
- Points [5, 0; 0, -30]
- DstBlock "Current regulator"
- DstPort 4
- }
- Line {
- SrcBlock "Freq"
- SrcPort 1
- DstBlock "Current regulator"
- DstPort 3
- }
- Annotation {
- Name "Grid-side converter control syste"
- "m"
- Position [452, 36]
- UseDisplayTextAsClickCallback off
- FontName "Arial"
- FontSize 14
- FontWeight "bold"
- }
- }
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [2, 1]
- Position [210, 306, 215, 344]
- Orientation "left"
- ShowName off
- Inputs "2"
- DisplayOption "bar"
- }
- Block {
- BlockType RateLimiter
- Name "Rate Limiter "
- Position [595, 820, 615, 850]
- RisingSlewLimit "pitch_rate"
- FallingSlewLimit "-pitch_rate"
- }
- Block {
- BlockType SubSystem
- Name "Rotor-side converternControl syste"
- "m"
- Ports [10, 1]
- Position [490, 375, 640, 775]
- BackgroundColor "lightBlue"
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "Rotor-side converternControl sys"
- "tem"
- Location [9, 79, 1263, 695]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "wr"
- Position [605, 378, 635, 392]
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Vdc"
- Position [1000, 278, 1030, 292]
- Port "2"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Theta"
- Position [25, 303, 55, 317]
- Port "3"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Iabc_stator"
- Position [25, 373, 55, 387]
- Port "4"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Iabc_rotor"
- Position [25, 338, 55, 352]
- Port "5"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Iabc_grid_conv"
- Position [25, 408, 55, 422]
- Port "6"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Q_ref"
- Position [595, 53, 625, 67]
- Port "7"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Q_B1"
- Position [595, 93, 625, 107]
- Port "8"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "angle_rotor"
- Position [25, 443, 55, 457]
- Port "9"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Freq"
- Position [580, 163, 610, 177]
- Port "10"
- IconDisplay "Port number"
- }
- Block {
- BlockType SubSystem
- Name "CurrentnRegulator"
- Ports [5, 1]
- Position [890, 187, 975, 303]
- BackgroundColor "lightBlue"
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "CurrentnRegulator"
- Location [191, 104, 1136, 867]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "Idqr_ref"
- Position [165, 368, 195, 382]
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Idq_r"
- Position [170, 468, 200, 482]
- Port "2"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Idq_s"
- Position [240, 193, 270, 207]
- Port "3"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "wr"
- Position [240, 298, 270, 312]
- Port "4"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Freq"
- Position [170, 253, 200, 267]
- Port "5"
- IconDisplay "Port number"
- }
- Block {
- BlockType Demux
- Name "Demux"
- Ports [1, 2]
- Position [230, 456, 235, 494]
- BackgroundColor "black"
- ShowName off
- Outputs "2"
- Port {
- PortNumber 1
- Name "Idr"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 2
- Name "Iqr"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Demux
- Name "Demux1"
- Ports [1, 2]
- Position [230, 356, 235, 394]
- BackgroundColor "black"
- ShowName off
- Outputs "2"
- Port {
- PortNumber 1
- Name "Idr*"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 2
- Name "Iqr*"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Demux
- Name "Demux2"
- Ports [1, 2]
- Position [295, 181, 300, 219]
- BackgroundColor "black"
- ShowName off
- Outputs "2"
- }
- Block {
- BlockType Demux
- Name "Demux3"
- Ports [1, 2]
- Position [585, 349, 590, 411]
- BackgroundColor "black"
- ShowName off
- Outputs "2"
- Port {
- PortNumber 1
- Name "vd'"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 2
- Name "vq'"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Reference
- Name "DiscretenPI Controller"
- Ports [1, 1]
- Position [510, 365, 540, 395]
- BackgroundColor "lightBlue"
- ShowName off
- SourceBlock "powerlib_extras/Discrete nContro"
- "l Blocks/DiscretenPI Controller"
- SourceType "Discrete PI Controller"
- ShowPortLabels "on"
- Kp "Kpi_rotor_side_cur_reg(1)"
- Ki "Kpi_rotor_side_cur_reg(2)"
- Par_Limits "[0.1 -0.1]"
- Init "0"
- Ts "Ts_Control"
- }
- Block {
- BlockType Product
- Name "Divide3"
- Ports [2, 1]
- Position [235, 252, 265, 283]
- ShowName off
- Inputs "*/"
- InputSameDT off
- OutDataTypeMode "Inherit via internal rule"
- OutScaling "2^-10"
- RndMeth "Floor"
- SaturateOnIntegerOverflow off
- }
- Block {
- BlockType Constant
- Name "Fnom"
- Position [170, 285, 200, 315]
- Value "Fnom"
- }
- Block {
- BlockType From
- Name "From1"
- Position [460, 228, 490, 242]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "iqr"
- }
- Block {
- BlockType From
- Name "From10"
- Position [460, 153, 490, 167]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "idr"
- }
- Block {
- BlockType From
- Name "From2"
- Position [460, 188, 490, 202]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "w_wr"
- }
- Block {
- BlockType From
- Name "From3"
- Position [460, 298, 490, 312]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "iqs"
- }
- Block {
- BlockType From
- Name "From4"
- Position [460, 258, 490, 272]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "w_wr"
- }
- Block {
- BlockType From
- Name "From5"
- Position [460, 488, 490, 502]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "idr"
- }
- Block {
- BlockType From
- Name "From6"
- Position [460, 448, 490, 462]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "w_wr"
- }
- Block {
- BlockType From
- Name "From7"
- Position [460, 563, 490, 577]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "ids"
- }
- Block {
- BlockType From
- Name "From8"
- Position [460, 523, 490, 537]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "w_wr"
- }
- Block {
- BlockType From
- Name "From9"
- Position [460, 633, 490, 647]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "iqr"
- }
- Block {
- BlockType Goto
- Name "Goto1"
- Position [365, 262, 415, 278]
- ShowName off
- GotoTag "w_wr"
- TagVisibility "local"
- }
- Block {
- BlockType Goto
- Name "Goto2"
- Position [330, 614, 360, 626]
- ShowName off
- GotoTag "iqr"
- TagVisibility "local"
- }
- Block {
- BlockType Goto
- Name "Goto3"
- Position [330, 329, 360, 341]
- ShowName off
- GotoTag "idr"
- TagVisibility "local"
- }
- Block {
- BlockType Goto
- Name "Goto4"
- Position [325, 184, 355, 196]
- ShowName off
- GotoTag "ids"
- TagVisibility "local"
- }
- Block {
- BlockType Goto
- Name "Goto5"
- Position [325, 204, 355, 216]
- ShowName off
- GotoTag "iqs"
- TagVisibility "local"
- }
- Block {
- BlockType Constant
- Name "Llr+Lm1"
- Position [460, 206, 500, 224]
- ShowName off
- Value "Llr+Lm"
- }
- Block {
- BlockType Constant
- Name "Llr+Lm2"
- Position [460, 466, 500, 484]
- ShowName off
- Value "Llr+Lm"
- }
- Block {
- BlockType Constant
- Name "Lm1"
- Position [460, 276, 500, 294]
- ShowName off
- Value "Lm"
- }
- Block {