power_wind_ig.mdl
资源名称:DFIGFarm.rar [点击查看]
上传用户:sdgangguan
上传日期:2017-10-18
资源大小:179k
文件大小:676k
源码类别:
能源行业(电力石油煤炭)
开发平台:
Matlab
- Model {
- Name "power_wind_ig"
- Version 6.3
- MdlSubVersion 0
- GraphicalInterface {
- NumRootInports 0
- NumRootOutports 0
- ParameterArgumentNames ""
- ComputedModelVersion "1.259"
- NumModelReferences 0
- NumTestPointedSignals 0
- }
- SavedCharacterEncoding "ibm-5348_P100-1997"
- 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_ig_xinit"
- Created "Wed Apr 28 15:37:51 2004"
- Creator "batserve"
- UpdateHistory "UpdateHistoryNever"
- ModifiedByFormat "%<Auto>"
- LastModifiedBy "batserve"
- ModifiedDateFormat "%<Auto>"
- LastModifiedDate "Mon Aug 8 15:01:24 2005"
- ModelVersionFormat "1.%<AutoIncrement:259>"
- 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 "20"
- AbsTol "1e-3"
- FixedStep "auto"
- InitialStep "auto"
- MaxNumMinSteps "-1"
- MaxOrder 5
- ExtrapolationOrder 4
- NumberNewtonIterations 1
- MaxStep "1/60"
- MinStep "auto"
- RelTol "1e-4"
- SolverMode "Auto"
- Solver "ode23tb"
- SolverName "ode23tb"
- 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 "Array"
- 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 on
- CheckExecutionContextRuntimeOutputMsg on
- 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 BusCreator
- Inputs "4"
- DisplayOption "none"
- UseBusObject off
- BusObject "BusObject"
- NonVirtualBus off
- }
- 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 Derivative
- LinearizePole "inf"
- }
- Block {
- BlockType Display
- Format "short"
- Decimation "10"
- Floating off
- SampleTime "-1"
- }
- Block {
- BlockType EnablePort
- StatesWhenEnabling "held"
- ShowOutputPort off
- ZeroCross on
- }
- 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 HitCross
- HitCrossingOffset "0"
- HitCrossingDirection "either"
- ShowOutputPort on
- ZeroCross on
- 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
- }
- 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 Memory
- X0 "0"
- InheritSampleTime off
- LinearizeMemory off
- StateMustResolveToSignalObject off
- RTWStateStorageClass "Auto"
- }
- Block {
- BlockType MinMax
- Function "min"
- Inputs "1"
- InputSameDT on
- OutDataTypeMode "Inherit via internal rule"
- OutDataType "sfix(16)"
- OutScaling "2^0"
- LockScale off
- RndMeth "Floor"
- SaturateOnIntegerOverflow on
- ZeroCross on
- SampleTime "-1"
- }
- 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 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 Sin
- SineType "Time based"
- TimeSource "Use simulation time"
- Amplitude "1"
- Bias "0"
- Frequency "1"
- Phase "0"
- Samples "10"
- Offset "0"
- SampleTime "-1"
- VectorParams1D on
- }
- Block {
- BlockType StateSpace
- A "1"
- B "1"
- C "1"
- D "1"
- X0 "0"
- AbsoluteTolerance "auto"
- Realization "auto"
- }
- 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 TransportDelay
- DelayTime "1"
- InitialOutput "0"
- BufferSize "1024"
- FixedBuffer off
- TransDelayFeedthrough off
- PadeOrder "0"
- }
- 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"
- }
- LineDefaults {
- FontName "Helvetica"
- FontSize 9
- FontWeight "normal"
- FontAngle "normal"
- }
- System {
- Name "power_wind_ig"
- Location [32, 88, 932, 697]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- ReportName "simulink-default.rpt"
- Block {
- BlockType Scope
- Name " Wind Turbines"
- Ports [5]
- Position [505, 333, 565, 497]
- BackgroundColor "green"
- Floating off
- Location [477, 60, 993, 710]
- Open off
- NumInputPorts "5"
- ZoomMode "yonly"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- axes2 "%<SignalLabel>"
- axes3 "%<SignalLabel>"
- axes4 "%<SignalLabel>"
- axes5 "%<SignalLabel>"
- }
- TimeRange "20"
- YMin "0~0~0.999~6~0"
- YMax "4~3~1.01~12~10"
- DataFormat "StructureWithTime"
- LimitDataPoints off
- SampleTime "0"
- }
- Block {
- BlockType Reference
- Name "120 kV"
- Ports [0, 0, 0, 0, 0, 1, 3]
- Position [55, 84, 100, 126]
- BackgroundColor "yellow"
- SourceBlock "powerlib/ElectricalnSources/Three-PhasenProgr"
- "ammablenVoltage Source"
- SourceType "Three-Phase Programmable Voltage Source"
- ShowPortLabels on
- PositiveSequence "[120e3 0 60]"
- VariationEntity "None"
- VariationType "Table of time-amplitude pairs"
- VariationStep "-0.15"
- VariationRate "10"
- VariationMagnitude "0.3"
- VariationFrequency "2"
- VariationTiming "[5 5.5]"
- VariationPhaseA off
- Amplitudes "[1.0 0.5 1.0 ]"
- TimeValues "[0 10 10.1]"
- 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 [205, 80, 260, 130]
- 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 km line"
- Ports [0, 0, 0, 0, 0, 3, 3]
- Position [345, 83, 425, 127]
- 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 "25"
- }
- Block {
- BlockType Reference
- Name "2500 MVAnX0/X1=3"
- Ports [0, 0, 0, 0, 0, 3, 3]
- Position [120, 83, 175, 127]
- 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 [284, 225, 306, 245]
- 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 "B25n(25 kV)"
- Ports [0, 0, 0, 0, 0, 3, 3]
- Position [495, 82, 500, 128]
- 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 on
- PSBequivalent "0"
- }
- Block {
- BlockType Scope
- Name "B25 Bus"
- Ports [5]
- Position [235, 341, 295, 489]
- BackgroundColor "green"
- Floating off
- Location [26, 59, 461, 711]
- Open off
- NumInputPorts "5"
- ZoomMode "yonly"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- axes2 "%<SignalLabel>"
- axes3 "%<SignalLabel>"
- axes4 "%<SignalLabel>"
- axes5 "%<SignalLabel>"
- }
- TimeRange "20"
- YMin "0.95~0~0~0.97~0.4"
- YMax "1.05~10~3~1.04~1.1"
- SaveName "ScopeData1"
- DataFormat "StructureWithTime"
- LimitDataPoints off
- SampleTime "0"
- }
- Block {
- BlockType SubSystem
- Name "B25_WF BusnData acquisition"
- Ports [0, 5]
- Position [25, 341, 95, 489]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- Port {
- PortNumber 1
- Name "Vabc_B25 (pu)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 2
- Name "P_B25 (MW)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 3
- Name "Q_B25 (Mvar)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 4
- Name "V_B25 pos. seq. (pu)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 5
- Name "I_B25 pos. seq. (pu/10 MVA) "
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- System {
- Name "B25_WF BusnData acquisition"
- Location [276, 91, 945, 603]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Gain
- Name "-1"
- Position [525, 202, 555, 228]
- Gain "-1"
- }
- Block {
- BlockType Reference
- Name "3-PhasenActive & Reactive Powern(Phasor T"
- "ype)"
- Ports [2, 1]
- Position [220, 139, 275, 201]
- SourceBlock "powerlib_extras/PhasornLibrary/3-PhasenAc"
- "tive & Reactive Powern(Phasor Type)"
- SourceType "3-Phase Active & Reactive Power (Phasor Typ"
- "e)"
- ShowPortLabels on
- }
- Block {
- BlockType ComplexToMagnitudeAngle
- Name "Complex tonMagnitude-Angle "
- Ports [1, 1]
- Position [175, 29, 195, 51]
- ShowName off
- Output "Magnitude"
- }
- Block {
- BlockType Constant
- Name "Constant"
- Position [370, 245, 400, 265]
- ShowName off
- Value "0"
- }
- Block {
- BlockType Demux
- Name "Demux"
- Ports [1, 2]
- Position [365, 134, 370, 201]
- BackgroundColor "black"
- ShowName off
- Outputs "2"
- }
- Block {
- BlockType From
- Name "From"
- Position [50, 30, 115, 50]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Vabc_B25"
- }
- Block {
- BlockType From
- Name "From2"
- Position [40, 176, 110, 194]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Iabc_B25"
- }
- Block {
- BlockType Gain
- Name "MW"
- Position [295, 146, 345, 194]
- Gain "-1/1e6"
- }
- Block {
- BlockType SubSystem
- Name "Mean Value1"
- Ports [2, 1]
- Position [435, 144, 490, 171]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskType "Mean value"
- MaskDescription "This block uses the running window averagin"
- "g technique to compute the mean value of the input signal over the specified "
- "period.n"
- MaskPromptString "Averaging period (s):"
- MaskStyleString "edit"
- MaskTunableValueString "on"
- MaskEnableString "on"
- MaskVisibilityString "on"
- MaskToolTipString "on"
- MaskVariables "Period=@1;"
- MaskInitialization "n"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "1/60"
- System {
- Name "Mean Value1"
- Location [220, 282, 763, 473]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "In"
- Position [20, 73, 50, 87]
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Init"
- Position [380, 143, 410, 157]
- Port "2"
- IconDisplay "Port number"
- }
- Block {
- BlockType Gain
- Name "Gain"
- Position [310, 73, 385, 117]
- Gain "1/Period"
- }
- Block {
- BlockType Step
- Name "Step"
- Position [370, 25, 400, 55]
- Time "Period+eps"
- SampleTime "0"
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [2, 1]
- Position [250, 69, 270, 116]
- Inputs "+-"
- }
- Block {
- BlockType Switch
- Name "Switch"
- Position [435, 90, 465, 120]
- Threshold "0.5"
- InputSameDT off
- }
- Block {
- BlockType TransportDelay
- Name "TransportnDelay"
- Position [175, 90, 205, 120]
- DelayTime "Period"
- }
- Block {
- BlockType Integrator
- Name "integrator"
- Ports [1, 1]
- Position [85, 59, 115, 101]
- IgnoreLimit off
- }
- Block {
- BlockType Outport
- Name "Mean"
- Position [490, 98, 520, 112]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "TransportnDelay"
- SrcPort 1
- DstBlock "Sum"
- DstPort 2
- }
- Line {
- SrcBlock "integrator"
- SrcPort 1
- Points [0, 0; 25, 0]
- Branch {
- Points [0, 25]
- DstBlock "TransportnDelay"
- DstPort 1
- }
- Branch {
- DstBlock "Sum"
- DstPort 1
- }
- }
- Line {
- SrcBlock "In"
- SrcPort 1
- DstBlock "integrator"
- DstPort 1
- }
- Line {
- SrcBlock "Sum"
- SrcPort 1
- DstBlock "Gain"
- DstPort 1
- }
- Line {
- SrcBlock "Gain"
- SrcPort 1
- DstBlock "Switch"
- DstPort 1
- }
- Line {
- SrcBlock "Switch"
- SrcPort 1
- DstBlock "Mean"
- DstPort 1
- }
- Line {
- SrcBlock "Step"
- SrcPort 1
- Points [10, 0; 0, 65]
- DstBlock "Switch"
- DstPort 2
- }
- Line {
- SrcBlock "Init"
- SrcPort 1
- Points [0, -35]
- DstBlock "Switch"
- DstPort 3
- }
- Annotation {
- Name "Mean value"
- Position [48, 26]
- UseDisplayTextAsClickCallback off
- FontSize 12
- FontWeight "bold"
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "Mean Value2"
- Ports [2, 1]
- Position [435, 199, 490, 226]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskType "Mean value"
- MaskDescription "This block uses the running window averagin"
- "g technique to compute the mean value of the input signal over the specified "
- "period.n"
- MaskPromptString "Averaging period (s):"
- MaskStyleString "edit"
- MaskTunableValueString "on"
- MaskEnableString "on"
- MaskVisibilityString "on"
- MaskToolTipString "on"
- MaskVariables "Period=@1;"
- MaskInitialization "n"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "1/60"
- System {
- Name "Mean Value2"
- Location [220, 282, 763, 473]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "In"
- Position [20, 73, 50, 87]
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Init"
- Position [380, 143, 410, 157]
- Port "2"
- IconDisplay "Port number"
- }
- Block {
- BlockType Gain
- Name "Gain"
- Position [310, 73, 385, 117]
- Gain "1/Period"
- }
- Block {
- BlockType Step
- Name "Step"
- Position [370, 25, 400, 55]
- Time "Period+eps"
- SampleTime "0"
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [2, 1]
- Position [250, 69, 270, 116]
- Inputs "+-"
- }
- Block {
- BlockType Switch
- Name "Switch"
- Position [435, 90, 465, 120]
- Threshold "0.5"
- InputSameDT off
- }
- Block {
- BlockType TransportDelay
- Name "TransportnDelay"
- Position [175, 90, 205, 120]
- DelayTime "Period"
- }
- Block {
- BlockType Integrator
- Name "integrator"
- Ports [1, 1]
- Position [85, 59, 115, 101]
- IgnoreLimit off
- }
- Block {
- BlockType Outport
- Name "Mean"
- Position [490, 98, 520, 112]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "Init"
- SrcPort 1
- Points [0, -35]
- DstBlock "Switch"
- DstPort 3
- }
- Line {
- SrcBlock "Step"
- SrcPort 1
- Points [10, 0; 0, 65]
- DstBlock "Switch"
- DstPort 2
- }
- Line {
- SrcBlock "Switch"
- SrcPort 1
- DstBlock "Mean"
- DstPort 1
- }
- Line {
- SrcBlock "Gain"
- SrcPort 1
- DstBlock "Switch"
- DstPort 1
- }
- Line {
- SrcBlock "Sum"
- SrcPort 1
- DstBlock "Gain"
- DstPort 1
- }
- Line {
- SrcBlock "In"
- SrcPort 1
- DstBlock "integrator"
- DstPort 1
- }
- Line {
- SrcBlock "integrator"
- SrcPort 1
- Points [0, 0; 25, 0]
- Branch {
- DstBlock "Sum"
- DstPort 1
- }
- Branch {
- Points [0, 25]
- DstBlock "TransportnDelay"
- DstPort 1
- }
- }
- Line {
- SrcBlock "TransportnDelay"
- SrcPort 1
- DstBlock "Sum"
- DstPort 2
- }
- Annotation {
- Name "Mean value"
- Position [48, 26]
- UseDisplayTextAsClickCallback off
- FontSize 12
- FontWeight "bold"
- }
- }
- }
- Block {
- BlockType Reference
- Name "Sequence Analyzern(Phasor Type)"
- Ports [1, 2]
- Position [220, 271, 270, 324]
- SourceBlock "powerlib_extras/PhasornLibrary/Sequence An"
- "alyzern(Phasor Type)"
- SourceType "Sequence Analyzer (Phasor Type)"
- ShowPortLabels on
- seq "Positive"
- }
- Block {
- BlockType Reference
- Name "Sequence Analyzern(Phasor Type)1"
- Ports [1, 2]
- Position [220, 356, 270, 409]
- SourceBlock "powerlib_extras/PhasornLibrary/Sequence An"
- "alyzern(Phasor Type)"
- SourceType "Sequence Analyzer (Phasor Type)"
- ShowPortLabels on
- seq "Positive"
- }
- Block {
- BlockType Terminator
- Name "Terminator"
- Position [290, 302, 305, 318]
- ShowName off
- }
- Block {
- BlockType Terminator
- Name "Terminator1"
- Position [290, 387, 305, 403]
- ShowName off
- }
- Block {
- BlockType Gain
- Name "pu->A"
- Position [180, 174, 200, 196]
- Gain "10e6/sqrt(3)/25e3*sqrt(2)"
- }
- Block {
- BlockType Gain
- Name "pu->V"
- Position [180, 144, 200, 166]
- NamePlacement "alternate"
- Gain "25e3*sqrt(2)/sqrt(3)"
- }
- Block {
- BlockType Outport
- Name "Vabc_B25 "
- Position [245, 33, 275, 47]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "P_B25"
- Position [530, 153, 560, 167]
- Port "2"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "Q_B25"
- Position [590, 208, 620, 222]
- Port "3"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "V1_B25"
- Position [335, 278, 365, 292]
- Port "4"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "I1_B25"
- Position [335, 363, 365, 377]
- Port "5"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "pu->A"
- SrcPort 1
- DstBlock "3-PhasenActive & Reactive Powern(Phasor T"
- "ype)"
- DstPort 2
- }
- Line {
- SrcBlock "pu->V"
- SrcPort 1
- DstBlock "3-PhasenActive & Reactive Powern(Phasor T"
- "ype)"
- DstPort 1
- }
- Line {
- SrcBlock "3-PhasenActive & Reactive Powern(Phasor T"
- "ype)"
- SrcPort 1
- DstBlock "MW"
- DstPort 1
- }
- Line {
- SrcBlock "Complex tonMagnitude-Angle "
- SrcPort 1
- DstBlock "Vabc_B25 "
- DstPort 1
- }
- Line {
- SrcBlock "From"
- SrcPort 1
- Points [20, 0]
- Branch {
- Points [0, 115]
- Branch {
- Points [0, 145]
- DstBlock "Sequence Analyzern(Phasor Type)"
- DstPort 1
- }
- Branch {
- DstBlock "pu->V"
- DstPort 1
- }
- }
- Branch {
- DstBlock "Complex tonMagnitude-Angle "
- DstPort 1
- }
- }
- Line {
- SrcBlock "From2"
- SrcPort 1
- Points [10, 0]
- Branch {
- Points [0, 200]
- DstBlock "Sequence Analyzern(Phasor Type)1"
- DstPort 1
- }
- Branch {
- DstBlock "pu->A"
- DstPort 1
- }
- }
- Line {
- SrcBlock "MW"
- SrcPort 1
- DstBlock "Demux"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 1
- DstBlock "Mean Value1"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 2
- Points [0, 20]
- DstBlock "Mean Value2"
- DstPort 1
- }
- Line {
- SrcBlock "Constant"
- SrcPort 1
- Points [5, 0; 0, -35]
- Branch {
- Points [0, -55]
- DstBlock "Mean Value1"
- DstPort 2
- }
- Branch {
- DstBlock "Mean Value2"
- DstPort 2
- }
- }
- Line {
- SrcBlock "Mean Value1"
- SrcPort 1
- DstBlock "P_B25"
- DstPort 1
- }
- Line {
- SrcBlock "Mean Value2"
- SrcPort 1
- DstBlock "-1"
- DstPort 1
- }
- Line {
- SrcBlock "Sequence Analyzern(Phasor Type)"
- SrcPort 1
- DstBlock "V1_B25"
- DstPort 1
- }
- Line {
- SrcBlock "Sequence Analyzern(Phasor Type)"
- SrcPort 2
- DstBlock "Terminator"
- DstPort 1
- }
- Line {
- SrcBlock "Sequence Analyzern(Phasor Type)1"
- SrcPort 1
- DstBlock "I1_B25"
- DstPort 1
- }
- Line {
- SrcBlock "Sequence Analyzern(Phasor Type)1"
- SrcPort 2
- DstBlock "Terminator1"
- DstPort 1
- }
- Line {
- SrcBlock "-1"
- SrcPort 1
- DstBlock "Q_B25"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Goto
- Name "Goto"
- Position [770, 95, 810, 115]
- ShowName off
- GotoTag "m"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto1"
- Position [765, 246, 825, 264]
- ShowName off
- GotoTag "mstatcom"
- TagVisibility "global"
- }
- Block {
- BlockType Reference
- Name "Ground1"
- Ports [0, 0, 0, 0, 0, 1]
- Position [29, 125, 41, 140]
- 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 [289, 265, 301, 280]
- 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 [205, 165, 255, 215]
- 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 "Manual Switch"
- Ports [2, 1]
- Position [545, 212, 575, 248]
- SourceBlock "simulink/SignalnRouting/Manual Switch"
- SourceType "Manual Switch"
- ShowPortLabels on
- sw "1"
- action "0"
- }
- Block {
- BlockType Constant
- Name "No trip"
- Position [480, 195, 500, 215]
- Value "0"
- }
- Block {
- BlockType Reference
- Name "STATCOMn(Phasor Type)"
- Ports [1, 1, 0, 0, 0, 3]
- Position [665, 219, 745, 286]
- BackgroundColor "cyan"
- FontName "Arial"
- SourceBlock "factslib/Power-Electronics BasednFACTS/Static "
- "SynchronousnCompensatorn(Phasor Type)"
- SourceType "Static Synchronous Compensator (Phasor Type)"
- ShowPortLabels on
- ShowParameters "Power data"
- SystemNominal "[ 25e3, 60 ]"
- Pnom_SH "3e6"
- RL_SH "[ 0.22/30, 0.22 ]"
- Iinit_SH "[0, 0 ]"
- VnomDC "40000/10"
- C_DC "375e-6*(3/100)*10^2"
- OpMode_SH "Voltage regulation"
- ExternalVref off
- Vref_SH "1.00"
- MaxRateChangeVref_SH "10"
- Droop_SH "0.03"
- Par_VacReg "[5 1000]"
- Qref_SH "0"
- MaxRateChangeQref_SH "2"
- Par_VdcReg "[0.1e-3 20e-3]"
- Par_IReg_SH "[0.3 10 0.22]"
- }
- Block {
- BlockType SubSystem
- Name "STATCOMnData acquisition"
- Ports [0, 2]
- Position [600, 340, 655, 400]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- Port {
- PortNumber 1
- Name "Vm (pu)"
- PropagatedSignals "Vm (pu)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 2
- Name "Generated Q (Mvar)"
- PropagatedSignals "Generated Q (Mvar)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- System {
- Name "STATCOMnData acquisition"
- Location [169, 195, 666, 421]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType BusSelector
- Name "BusnSelector"
- Ports [1, 2]
- Position [180, 55, 185, 135]
- ShowName off
- OutputSignals "Control.Vm (pu),Control.Qm (pu)"
- Port {
- PortNumber 1
- Name "<Vm (pu)>"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 2
- Name "<Qm (pu)>"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType From
- Name "From11"
- Position [50, 84, 110, 106]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "mstatcom"
- }
- Block {
- BlockType Gain
- Name "pu->Mvar"
- Position [260, 100, 290, 130]
- Gain "-3e6/1e6"
- Port {
- PortNumber 1
- Name "Generated Q (Mvar)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Outport
- Name "Vm (pu)"
- Position [400, 68, 430, 82]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "Q (Mvar)"
- Position [400, 108, 430, 122]
- Port "2"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- Name "<Vm (pu)>"
- Labels [0, 0]
- SrcBlock "BusnSelector"
- SrcPort 1
- DstBlock "Vm (pu)"
- DstPort 1
- }
- Line {
- Name "<Qm (pu)>"
- Labels [0, 0]
- SrcBlock "BusnSelector"
- SrcPort 2
- DstBlock "pu->Mvar"
- DstPort 1
- }
- Line {
- Name "Generated Q (Mvar)"
- Labels [0, 0]
- SrcBlock "pu->Mvar"
- SrcPort 1
- DstBlock "Q (Mvar)"
- DstPort 1
- }
- Line {
- SrcBlock "From11"
- SrcPort 1
- DstBlock "BusnSelector"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Scope
- Name "Statcom"
- Ports [2]
- Position [770, 338, 815, 402]
- BackgroundColor "green"
- Floating off
- Location [100, 218, 735, 563]
- Open off
- NumInputPorts "2"
- ZoomMode "yonly"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- axes2 "%<SignalLabel>"
- }
- TimeRange "20"
- YMin "0.97~0"
- YMax "1~2"
- SaveName "ScopeData2"
- DataFormat "StructureWithTime"
- LimitDataPoints off
- SampleTime "0"
- }
- Block {
- BlockType Constant
- Name "Trip"
- Position [480, 230, 500, 250]
- }
- Block {
- BlockType SubSystem
- Name "Wind Farm"
- Ports [0, 1, 0, 0, 0, 3]
- Position [670, 62, 735, 148]
- BackgroundColor "lightBlue"
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskDisplay "plot(0,0,118,100)nplot([56 62],[4 4],[56 57],["
- "4 52],[62 61],[4 52])nplot([57 59 61],[52 52.5 52])nplot([61 61.5 62 63 63]"
- ",[52 52.2 52.5 54 56])nplot([63 59 57.6 57.3 56 55],[56 58 57.8 55.6 54.2 54"
- "])nplot([55 57],[54 52],[57.3 63],[55.6 54])nplot([57.6 57 55 54.7 60 81],["
- "57.6 57.3 58 59.4 64 82])nplot([81 83 84 84.2 83 81],[82 83.6 83.4 83 80.8 7"
- "8.7])nplot([81 60.5 57.6],[78.7 60 57.6])nplot([54.7 53 51 51.3 52.5],[59.4"
- " 58.8 58 56 55])nplot([52.5 53.7 54.5 55],[55 54.9 54.6 54])nplot([51 47 35"
- " 33 32 33 35],[58 59 66 67.7 68.5 68.4 68])nplot([35 45 52 53 53.7],[68 64 6"
- "1 60 59.2])nplot([52.5 51 50.8 51.5 55],[55 26 21 26 54])"
- MaskIconFrame on
- MaskIconOpaque off
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- System {
- Name "Wind Farm"
- Location [97, 64, 1082, 807]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Reference
- Name " 66ohms "
- Ports [0, 0, 0, 0, 0, 1, 1]
- Position [309, 635, 331, 655]
- Orientation "down"
- 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 "R"
- Resistance "66"
- Inductance "[]"
- SetiL0 off
- InitialCurrent "0"
- Capacitance "[]"
- Setx0 off
- InitialVoltage "0"
- Measurements "None"
- }
- Block {
- BlockType Reference
- Name "1 km line 1 "
- Ports [0, 0, 0, 0, 0, 3, 3]
- Position [145, 113, 215, 157]
- BackgroundColor "yellow"
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Three-PhasenPI Section L"
- "ine"
- 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 "1"
- }
- Block {
- BlockType Reference
- Name "1 km line 2"
- Ports [0, 0, 0, 0, 0, 3, 3]
- Position [155, 332, 225, 378]
- BackgroundColor "yellow"
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Three-PhasenPI Section L"
- "ine"
- 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 "1"
- }
- Block {
- BlockType Reference
- Name "1 km line 3"
- Ports [0, 0, 0, 0, 0, 3, 3]
- Position [145, 563, 225, 607]
- BackgroundColor "yellow"
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Three-PhasenPI Section L"
- "ine"
- 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 "1"
- }
- Block {
- BlockType Reference
- Name "25 kV/ 575 Vn4 MVA"
- Ports [0, 0, 0, 0, 0, 3, 4]
- Position [240, 110, 285, 160]
- BackgroundColor "yellow"
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Three-PhasenTransformer"
- "n(Two Windings)"
- SourceType "Three-Phase Transformer (Two Windings)"
- ShowPortLabels on
- NominalPower "[4e6 60]"
- Winding1Connection "Yg"
- Winding1 "[25e3 , 0.025/30 , 0.025]"
- Winding2Connection "Yn"
- 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 "25 kV/ 575 Vn4 MVA "
- Ports [0, 0, 0, 0, 0, 3, 4]
- Position [260, 330, 305, 380]
- BackgroundColor "yellow"
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Three-PhasenTransformer"
- "n(Two Windings)"
- SourceType "Three-Phase Transformer (Two Windings)"
- ShowPortLabels on
- NominalPower "[4e6 60]"
- Winding1Connection "Yg"
- Winding1 "[25e3 , 0.025/30 , 0.025]"
- Winding2Connection "Yn"
- 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 "25 kV/ 575 Vn4 MVA "
- Ports [0, 0, 0, 0, 0, 3, 4]
- Position [255, 560, 300, 610]
- BackgroundColor "yellow"
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Three-PhasenTransformer"
- "n(Two Windings)"
- SourceType "Three-Phase Transformer (Two Windings)"
- ShowPortLabels on
- NominalPower "[4e6 60]"
- Winding1Connection "Yg"
- Winding1 "[25e3 , 0.025/30 , 0.025]"
- Winding2Connection "Yn"
- 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 "400 kvar"
- Ports [0, 0, 0, 0, 0, 3]
- Position [335, 195, 365, 235]
- Orientation "down"
- BackgroundColor "yellow"
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Three-PhasenSeries RLC L"
- "oad"
- SourceType "Three-Phase Series RLC Load"
- PhysicalDomain "powersysdomain"
- SubClassName "unknown"
- LeftPortType "p1"
- RightPortType "p1"
- LConnTagsString "A|B|C"
- Configuration "Delta"
- NominalVoltage "575"
- NominalFrequency "60"
- ActivePower "0"
- InductivePower "0"
- CapacitivePower "400e3"
- Measurements "None"
- }
- Block {
- BlockType Reference
- Name "400 kvar "
- Ports [0, 0, 0, 0, 0, 3]
- Position [500, 410, 530, 450]
- Orientation "down"
- BackgroundColor "yellow"
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Three-PhasenSeries RLC L"
- "oad"
- SourceType "Three-Phase Series RLC Load"
- PhysicalDomain "powersysdomain"
- SubClassName "unknown"
- LeftPortType "p1"
- RightPortType "p1"
- LConnTagsString "A|B|C"
- Configuration "Delta"
- NominalVoltage "575"
- NominalFrequency "60"
- ActivePower "0"
- InductivePower "0"
- CapacitivePower "400e3"
- Measurements "None"
- }
- Block {
- BlockType Reference
- Name "400 kvar "
- Ports [0, 0, 0, 0, 0, 3]
- Position [340, 645, 370, 685]
- Orientation "down"
- BackgroundColor "yellow"
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Three-PhasenSeries RLC L"
- "oad"
- SourceType "Three-Phase Series RLC Load"
- PhysicalDomain "powersysdomain"
- SubClassName "unknown"
- LeftPortType "p1"
- RightPortType "p1"
- LConnTagsString "A|B|C"
- Configuration "Delta"
- NominalVoltage "575"
- NominalFrequency "60"
- ActivePower "0"
- InductivePower "0"
- CapacitivePower "400e3"
- Measurements "None"
- }
- Block {
- BlockType Reference
- Name "66ohms "
- Ports [0, 0, 0, 0, 0, 1, 1]
- Position [294, 185, 316, 205]
- Orientation "down"
- 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 "R"
- Resistance "66"
- Inductance "[]"
- SetiL0 off
- InitialCurrent "0"
- Capacitance "[]"
- Setx0 off
- InitialVoltage "0"
- Measurements "None"
- }
- Block {
- BlockType Reference
- Name "66ohms "
- Ports [0, 0, 0, 0, 0, 1, 1]
- Position [309, 405, 331, 425]
- Orientation "down"
- 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 "R"
- Resistance "66"
- Inductance "[]"
- SetiL0 off
- InitialCurrent "0"
- Capacitance "[]"
- Setx0 off
- InitialVoltage "0"
- Measurements "None"
- }
- Block {
- BlockType Reference
- Name "B575_1n(575 V)"
- Ports [0, 0, 0, 0, 0, 3, 3]
- Position [400, 115, 405, 155]
- BackgroundColor "black"
- SourceBlock "powerlib/Measurements/Three-PhasenV-I Meas"
- "urement"
- SourceType "Three-Phase VI Measurement"
- ShowPortLabels on
- VoltageMeasurement "phase-to-ground"
- SetLabelV on
- LabelV "Vabc_B575_1"
- Vpu on
- CurrentMeasurement "yes"
- SetLabelI on
- LabelI "Iabc_B575_1"
- Ipu on
- Pbase "2*1.5e6/0.9"
- Vbase "575"
- OutputType "Complex"
- PhasorSimulation on
- PSBequivalent "0"
- }
- Block {
- BlockType Reference
- Name "B575_2n(575 V)"
- Ports [0, 0, 0, 0, 0, 3, 3]
- Position [565, 335, 570, 375]
- BackgroundColor "black"
- SourceBlock "powerlib/Measurements/Three-PhasenV-I Meas"
- "urement"
- SourceType "Three-Phase VI Measurement"
- ShowPortLabels on
- VoltageMeasurement "phase-to-ground"
- SetLabelV on
- LabelV "Vabc_B575_2"
- Vpu on
- CurrentMeasurement "yes"
- SetLabelI on
- LabelI "Iabc_B575_2"
- Ipu on
- Pbase "2*1.5e6/0.9"
- Vbase "575"
- OutputType "Complex"
- PhasorSimulation on
- PSBequivalent "0"
- }
- Block {
- BlockType Reference
- Name "B575_3n(575 V)"
- Ports [0, 0, 0, 0, 0, 3, 3]
- Position [405, 565, 410, 605]
- BackgroundColor "black"
- SourceBlock "powerlib/Measurements/Three-PhasenV-I Meas"
- "urement"
- SourceType "Three-Phase VI Measurement"
- ShowPortLabels on
- VoltageMeasurement "phase-to-ground"
- SetLabelV on
- LabelV "Vabc_B575_3"
- Vpu on
- CurrentMeasurement "yes"
- SetLabelI on
- LabelI "Iabc_B575_3"
- Ipu on
- Pbase "2*1.5e6/0.9"
- Vbase "575"
- OutputType "Complex"
- PhasorSimulation on
- PSBequivalent "0"
- }
- Block {
- BlockType SubSystem
- Name "Data acquisition"
- Ports [0, 1]
- Position [715, 525, 755, 585]
- ForegroundColor "blue"
- DropShadow on
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "Data acquisition"
- Location [169, 325, 903, 1008]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType BusSelector
- Name "BusnSelector1"
- Ports [1, 4]
- Position [140, 19, 145, 116]
- ShowName off
- OutputSignals "P (pu),Q (pu),wr (pu),Pitch_angle (deg)"
- Port {
- PortNumber 1
- Name "<P (pu)>"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 2
- Name "<Q (pu)>"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 3
- Name "<wr (pu)>"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 4
- Name "<Pitch_angle (deg)>"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType BusSelector
- Name "BusnSelector2"
- Ports [1, 4]
- Position [405, 20, 410, 115]
- ShowName off
- OutputSignals "P (pu),Q (pu),wr (pu),Pitch_angle (deg)"
- Port {
- PortNumber 1
- Name "<P (pu)>"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 2
- Name "<Q (pu)>"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 3
- Name "<wr (pu)>"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 4
- Name "<Pitch_angle (deg)>"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType BusSelector
- Name "BusnSelector3"
- Ports [1, 4]
- Position [140, 140, 145, 235]
- ShowName off
- OutputSignals "P (pu),Q (pu),wr (pu),Pitch_angle (deg)"
- Port {
- PortNumber 1
- Name "<P (pu)>"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 2
- Name "<Q (pu)>"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 3
- Name "<wr (pu)>"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 4
- Name "<Pitch_angle (deg)>"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType From
- Name "From1"
- Position [45, 306, 110, 324]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "P1"
- }
- Block {
- BlockType From
- Name "From10"
- Position [45, 551, 110, 569]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Q3"
- }
- Block {
- BlockType From
- Name "From13"
- Position [340, 416, 405, 434]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "wr3"
- Port {
- PortNumber 1
- Name "wr3 (pu)"
- PropagatedSignals "wr (pu)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType From
- Name "From15"
- Position [340, 366, 405, 384]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "wr1"
- Port {
- PortNumber 1
- Name "wr1 (pu)"
- PropagatedSignals "wr (pu)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType From
- Name "From16"
- Position [340, 391, 405, 409]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "wr2"
- Port {
- PortNumber 1
- Name "wr2 (pu)"
- PropagatedSignals "wr (pu)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType From
- Name "From17"
- Position [340, 621, 405, 639]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "pitch3"
- Port {
- PortNumber 1
- Name "pitch3 (deg)"
- PropagatedSignals "Pitch_angle (deg)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType From
- Name "From19"
- Position [340, 571, 405, 589]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "pitch1"
- Port {
- PortNumber 1
- Name "pitch1 (deg)"
- PropagatedSignals "Pitch_angle (deg)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType From
- Name "From2"
- Position [45, 351, 110, 369]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "P2"
- }
- Block {
- BlockType From
- Name "From20"
- Position [340, 596, 405, 614]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "pitch2"
- Port {
- PortNumber 1
- Name "pitch2 (deg)"
- PropagatedSignals "Pitch_angle (deg)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType From
- Name "From21"
- Position [340, 511, 405, 529]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "wind3"
- Port {
- PortNumber 1
- Name "wind3 (m_s)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType From
- Name "From23"
- Position [340, 461, 405, 479]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "wind1"
- Port {
- PortNumber 1
- Name "wind1 (m_s)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType From
- Name "From24"
- Position [340, 486, 405, 504]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "wind2"
- Port {
- PortNumber 1
- Name "wind2 (m_s)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType From
- Name "From25"
- Position [45, 181, 110, 199]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "m_wt2"
- }
- Block {
- BlockType From
- Name "From26"
- Position [45, 61, 110, 79]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "m_wt1"
- }
- Block {
- BlockType From
- Name "From27"
- Position [305, 61, 370, 79]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "m_wt3"
- }
- Block {
- BlockType From
- Name "From4"
- Position [45, 396, 110, 414]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "P3"
- }
- Block {
- BlockType From
- Name "From8"
- Position [45, 461, 110, 479]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Q1"
- }
- Block {
- BlockType From
- Name "From9"
- Position [45, 506, 110, 524]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Q2"
- }
- Block {
- BlockType Goto
- Name "Goto10"
- Position [505, 94, 540, 116]
- ShowName off
- GotoTag "pitch3"
- TagVisibility "local"
- }
- Block {
- BlockType Goto
- Name "Goto17"
- Position [240, 19, 275, 41]
- ShowName off
- GotoTag "P1"
- TagVisibility "local"
- }
- Block {
- BlockType Goto
- Name "Goto18"
- Position [240, 44, 275, 66]
- ShowName off
- GotoTag "Q1"
- TagVisibility "local"
- }
- Block {
- BlockType Goto
- Name "Goto19"
- Position [240, 189, 275, 211]
- ShowName off
- GotoTag "wr2"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto20"
- Position [240, 214, 275, 236]
- ShowName off
- GotoTag "pitch2"
- TagVisibility "local"
- }
- Block {
- BlockType Goto
- Name "Goto21"
- Position [505, 19, 540, 41]
- ShowName off
- GotoTag "P3"
- TagVisibility "local"
- }
- Block {
- BlockType Goto
- Name "Goto22"
- Position [505, 44, 540, 66]
- ShowName off
- GotoTag "Q3"
- TagVisibility "local"
- }
- Block {
- BlockType Goto
- Name "Goto3"
- Position [240, 69, 275, 91]
- ShowName off
- GotoTag "wr1"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto4"
- Position [240, 94, 275, 116]
- ShowName off
- GotoTag "pitch1"
- TagVisibility "local"
- }
- Block {
- BlockType Goto
- Name "Goto5"
- Position [240, 139, 275, 161]
- ShowName off
- GotoTag "P2"
- TagVisibility "local"
- }
- Block {
- BlockType Goto
- Name "Goto7"
- Position [240, 164, 275, 186]
- ShowName off
- GotoTag "Q2"
- TagVisibility "local"
- }
- Block {
- BlockType Goto
- Name "Goto9"
- Position [505, 69, 540, 91]
- ShowName off
- GotoTag "wr3"
- TagVisibility "global"
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [3, 1]
- Position [250, 292, 255, 428]
- ShowName off
- Inputs "3"
- DisplayOption "bar"
- Port {
- PortNumber 1
- Name "P1_3 (MW)"
- PropagatedSignals "P1 (MW), P2 (MW), P3 (MW)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Mux
- Name "Mux1"
- Ports [3, 1]
- Position [250, 447, 255, 583]
- ShowName off
- Inputs "3"
- DisplayOption "bar"
- Port {
- PortNumber 1
- Name "Q1_3 (Mvar)"
- PropagatedSignals "Q1 (Mvar), Q2 (Mvar), Q3 (Mvar)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Mux
- Name "Mux2"
- Ports [3, 1]
- Position [485, 363, 490, 437]
- ShowName off
- Inputs "3"
- DisplayOption "bar"
- Port {
- PortNumber 1
- Name "wr1_3"
- PropagatedSignals "wr1 (pu), wr2 (pu), wr3 (pu)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Mux
- Name "Mux3"
- Ports [3, 1]
- Position [485, 568, 490, 642]
- ShowName off
- Inputs "3"
- DisplayOption "bar"
- Port {
- PortNumber 1
- Name "pitch1_3"
- PropagatedSignals "pitch1 (deg), pitch2 (deg), pitch3 (d"
- "eg)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Mux
- Name "Mux4"
- Ports [5, 1]
- Position [590, 318, 595, 392]
- ShowName off
- Inputs "5"
- DisplayOption "bar"
- }
- Block {
- BlockType Mux
- Name "Mux5"
- Ports [3, 1]
- Position [485, 458, 490, 532]
- ShowName off
- Inputs "3"
- DisplayOption "bar"
- Port {
- PortNumber 1
- Name "wind1_3 (m_s)"
- PropagatedSignals "wind1 (m_s), wind2 (m_s), wind3 (m_s)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Gain
- Name "pu->MW"
- Position [125, 304, 145, 326]
- Gain "2*1.5/0.9"
- Port {
- PortNumber 1
- Name "P1 (MW)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Gain
- Name "pu->MW1"
- Position [160, 349, 180, 371]
- Gain "2*1.5/0.9"
- Port {
- PortNumber 1
- Name "P2 (MW)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Gain
- Name "pu->MW2"
- Position [130, 394, 150, 416]
- Gain "2*1.5/0.9"
- Port {
- PortNumber 1
- Name "P3 (MW)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Gain
- Name "pu->Mvar"
- Position [130, 459, 150, 481]
- Gain "2*1.5/0.9"
- Port {
- PortNumber 1
- Name "Q1 (Mvar)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Gain
- Name "pu->Mvar1"
- Position [165, 504, 185, 526]
- Gain "2*1.5/0.9"
- Port {
- PortNumber 1
- Name "Q2 (Mvar)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Gain
- Name "pu->Mvar2"
- Position [130, 549, 150, 571]
- Gain "2*1.5/0.9"
- Port {
- PortNumber 1
- Name "Q3 (Mvar)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Outport
- Name "m"
- Position [615, 348, 645, 362]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "From27"
- SrcPort 1
- DstBlock "BusnSelector2"
- DstPort 1
- }
- Line {
- SrcBlock "From26"
- SrcPort 1
- DstBlock "BusnSelector1"
- DstPort 1
- }
- Line {
- SrcBlock "From25"
- SrcPort 1
- DstBlock "BusnSelector3"
- DstPort 1
- }
- Line {
- Name "<Q (pu)>"
- Labels [0, 0]
- SrcBlock "BusnSelector1"
- SrcPort 2
- DstBlock "Goto18"
- DstPort 1
- }
- Line {
- Name "<P (pu)>"
- Labels [0, 0]
- SrcBlock "BusnSelector1"
- SrcPort 1
- DstBlock "Goto17"
- DstPort 1
- }
- Line {
- Name "<Pitch_angle (deg)>"
- Labels [0, 0]
- SrcBlock "BusnSelector1"
- SrcPort 4
- DstBlock "Goto4"
- DstPort 1
- }
- Line {
- Name "<wr (pu)>"
- Labels [0, 0]
- SrcBlock "BusnSelector1"
- SrcPort 3
- DstBlock "Goto3"
- DstPort 1
- }
- Line {
- Name "<Pitch_angle (deg)>"
- Labels [0, 0]
- SrcBlock "BusnSelector3"
- SrcPort 4
- DstBlock "Goto20"
- DstPort 1
- }
- Line {
- Name "<wr (pu)>"
- Labels [0, 0]
- SrcBlock "BusnSelector3"
- SrcPort 3
- DstBlock "Goto19"
- DstPort 1
- }
- Line {
- Name "<Q (pu)>"
- Labels [0, 0]
- SrcBlock "BusnSelector3"
- SrcPort 2
- DstBlock "Goto7"
- DstPort 1
- }
- Line {
- Name "<Pitch_angle (deg)>"
- Labels [0, 0]
- SrcBlock "BusnSelector2"
- SrcPort 4
- DstBlock "Goto10"
- DstPort 1
- }
- Line {
- Name "<wr (pu)>"
- Labels [0, 0]
- SrcBlock "BusnSelector2"
- SrcPort 3
- DstBlock "Goto9"
- DstPort 1
- }
- Line {
- Name "<Q (pu)>"
- Labels [0, 0]
- SrcBlock "BusnSelector2"
- SrcPort 2
- DstBlock "Goto22"
- DstPort 1
- }
- Line {
- Name "<P (pu)>"
- Labels [0, 0]
- SrcBlock "BusnSelector2"
- SrcPort 1
- DstBlock "Goto21"
- DstPort 1
- }
- Line {
- Name "<P (pu)>"
- Labels [0, 0]
- SrcBlock "BusnSelector3"
- SrcPort 1
- DstBlock "Goto5"
- DstPort 1
- }
- Line {
- Name "wind1_3 (m_s)"
- Labels [0, 0]
- SrcBlock "Mux5"
- SrcPort 1
- Points [30, 0; 0, -125]
- DstBlock "Mux4"
- DstPort 4
- }
- Line {
- Name "pitch1_3"
- Labels [0, 0]
- SrcBlock "Mux3"
- SrcPort 1
- Points [70, 0; 0, -220]
- DstBlock "Mux4"
- DstPort 5
- }
- Line {
- Name "wind3 (m_s)"
- Labels [0, 0]
- SrcBlock "From21"
- SrcPort 1
- DstBlock "Mux5"
- DstPort 3
- }
- Line {
- Name "wind2 (m_s)"
- Labels [0, 0]
- SrcBlock "From24"
- SrcPort 1
- DstBlock "Mux5"
- DstPort 2
- }
- Line {
- Name "wind1 (m_s)"
- Labels [0, 0]
- SrcBlock "From23"
- SrcPort 1
- DstBlock "Mux5"
- DstPort 1
- }
- Line {
- SrcBlock "Mux4"
- SrcPort 1
- DstBlock "m"
- DstPort 1
- }
- Line {
- Name "wr1_3"
- Labels [3, 0]
- SrcBlock "Mux2"
- SrcPort 1
- Points [5, 0; 0, -45]
- DstBlock "Mux4"
- DstPort 3
- }
- Line {
- Name "Q1_3 (Mvar)"
- Labels [3, 0]
- SrcBlock "Mux1"
- SrcPort 1
- Points [30, 0; 0, -175]
- DstBlock "Mux4"
- DstPort 2
- }
- Line {
- Name "P1_3 (MW)"
- Labels [3, 0]
- SrcBlock "Mux"
- SrcPort 1
- Points [10, 0; 0, -35]
- DstBlock "Mux4"
- DstPort 1
- }
- Line {
- Name "Q3 (Mvar)"
- Labels [-1, 0]
- SrcBlock "pu->Mvar2"
- SrcPort 1
- DstBlock "Mux1"
- DstPort 3
- }
- Line {
- Name "Q2 (Mvar)"
- Labels [-1, 0]
- SrcBlock "pu->Mvar1"
- SrcPort 1
- DstBlock "Mux1"
- DstPort 2
- }
- Line {
- Name "Q1 (Mvar)"
- Labels [-1, 0]
- SrcBlock "pu->Mvar"
- SrcPort 1
- DstBlock "Mux1"
- DstPort 1
- }
- Line {
- SrcBlock "From8"
- SrcPort 1
- DstBlock "pu->Mvar"
- DstPort 1
- }
- Line {
- SrcBlock "From9"
- SrcPort 1
- DstBlock "pu->Mvar1"
- DstPort 1
- }
- Line {
- SrcBlock "From10"
- SrcPort 1
- DstBlock "pu->Mvar2"
- DstPort 1
- }
- Line {
- Name "P3 (MW)"
- Labels [-1, 0]
- SrcBlock "pu->MW2"
- SrcPort 1
- DstBlock "Mux"
- DstPort 3
- }
- Line {
- Name "P2 (MW)"
- Labels [-1, 0]
- SrcBlock "pu->MW1"
- SrcPort 1
- DstBlock "Mux"
- DstPort 2
- }
- Line {
- Name "P1 (MW)"
- Labels [-1, 0]
- SrcBlock "pu->MW"
- SrcPort 1
- DstBlock "Mux"
- DstPort 1
- }
- Line {
- Name "pitch3 (deg)"
- Labels [0, 0]
- SrcBlock "From17"
- SrcPort 1
- DstBlock "Mux3"
- DstPort 3
- }
- Line {
- Name "pitch2 (deg)"
- Labels [0, 0]
- SrcBlock "From20"
- SrcPort 1
- DstBlock "Mux3"
- DstPort 2
- }
- Line {
- Name "pitch1 (deg)"
- Labels [0, 0]
- SrcBlock "From19"
- SrcPort 1
- DstBlock "Mux3"
- DstPort 1
- }
- Line {
- Name "wr3 (pu)"
- Labels [0, 0]
- SrcBlock "From13"
- SrcPort 1
- DstBlock "Mux2"
- DstPort 3
- }
- Line {
- Name "wr2 (pu)"
- Labels [0, 0]
- SrcBlock "From16"
- SrcPort 1
- DstBlock "Mux2"
- DstPort 2
- }
- Line {
- Name "wr1 (pu)"
- Labels [0, 0]
- SrcBlock "From15"
- SrcPort 1
- DstBlock "Mux2"
- DstPort 1
- }
- Line {
- SrcBlock "From4"
- SrcPort 1
- DstBlock "pu->MW2"
- DstPort 1
- }
- Line {
- SrcBlock "From2"
- SrcPort 1
- DstBlock "pu->MW1"
- DstPort 1
- }
- Line {
- SrcBlock "From1"
- SrcPort 1
- DstBlock "pu->MW"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Demux
- Name "Demux"
- Ports [1, 3]
- Position [825, 65, 830, 125]
- BackgroundColor "black"
- ShowName off
- Outputs "3"
- DisplayOption "bar"
- }
- Block {
- BlockType SubSystem
- Name "Fault"
- Ports [0, 0, 0, 0, 0, 3]
- Position [330, 269, 370, 311]
- Orientation "left"
- ForegroundColor "red"
- AncestorBlock "powerlib/Elements/Three-Phase Fault"
- LoadFcn "find_system(gcs,'FollowLinks', 'on', 'LookU"
- "nderMasks', 'all');"
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskType "Three-Phase Fault"
- MaskDescription "Use this block to program a fault (short-ci"
- "rcuit) betweennany phase and the ground. You can define the fault timingndi"
- "rectly from the dialog box or apply an external logical signal.nIf you check"
- " the 'External control' box , the external controlninput will appear."
- MaskHelp "web(psbhelp)n"
- MaskPromptString "Phase A Fault|Phase B Fault|Phase C Fault|F"
- "ault resistances Ron (ohms) :|Ground Fault|Ground resistance Rg (ohms) :|Ext"
- "ernal control of fault timing :|Transition status [1,0,1 ...):|Transition tim"
- "es (s):|Initial status of fault [Phase A Phase B Phase C]:|Snubbers resista"
- "nce Rp (ohms) :|Snubbers Capacitance Cp (Farad)|Measurements"
- MaskStyleString "checkbox,checkbox,checkbox,edit,checkbox,ed"
- "it,checkbox,edit,edit,edit,edit,edit,popup(None|Fault voltages|Fault currents"
- "|Fault voltages and currents)"
- MaskTunableValueString "on,on,on,off,on,off,off,on,on,off,off,off,o"
- "ff"
- MaskCallbackString "||||powericon('ThreePhaseFaultCback',gcb);|"
- "|powericon('ThreePhaseFaultCback',gcb);||||||"
- MaskEnableString "on,on,on,on,on,on,on,on,on,on,on,on,on"
- MaskVisibilityString "on,on,on,on,on,off,on,on,on,off,on,on,on"
- MaskToolTipString "on,on,on,on,on,on,on,on,on,on,on,on,on"
- MaskVarAliasString ",,,,,,,,,,,,"
- MaskVariables "FaultA=&1;FaultB=&2;FaultC=&3;FaultResistan"
- "ce=@4;GroundFault=&5;GroundResistance=@6;External=@7;SwitchStatus=@8;SwitchTi"
- "mes=@9;InitialStates=@10;SnubberResistance=@11;SnubberCapacitance=@12;Measure"
- "ments=@13;"
- MaskInitialization "powerlibroot = which('powersysdomain');npo"
- "wericon('ThreePhaseFaultCback',gcb);nPSBroot = powerlibroot(1:end-16);n%n["
- "st_a,st_b,st_c,Rground,init_a,init_b,init_c,p7,p8,p9,p10,p11]=powericon('Thre"
- "e-Phase Fault',FaultResistance,GroundResistance,SwitchTimes,SwitchStatus,Faul"
- "tA,FaultB,FaultC,GroundFault,InitialStates,External);n%n"
- MaskDisplay "image(imread([PSBroot,'Fault.bmp'],'bmp'))"
- "nport_label('LConn', 1, 'A')nport_label('LConn', 2, 'B')nport_label('LConn"
- "', 3, 'C')"
- MaskSelfModifiable on
- MaskIconFrame on
- MaskIconOpaque off
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "on|on|off|0.001|off|0.001|off|[1 0]|[ 15 15"
- ".1]|[0 0 1]|1e6|inf|None"
- MaskTabNameString ",,,,,,,,,,,,"
- System {
- Name "Fault"
- Location [212, 378, 859, 776]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Constant
- Name "C4"
- Position [5, 196, 65, 224]
- NamePlacement "alternate"
- ShowName off
- Value "External"
- }
- Block {
- BlockType Constant
- Name "Constant1"
- Position [220, 79, 240, 101]
- ShowName off
- Value "st_a"
- }
- Block {
- BlockType Constant
- Name "Constant2"
- Position [220, 149, 240, 171]
- ShowName off
- Value "st_b"
- }
- Block {
- BlockType Constant
- Name "Constant3"
- Position [220, 219, 240, 241]
- ShowName off
- Value "st_c"
- }
- Block {
- BlockType DataTypeConversion
- Name "Data Type nConversion"
- Position [140, 198, 155, 222]
- ShowName off
- OutDataTypeMode "boolean"
- }
- Block {
- BlockType DataTypeConversion
- Name "Data Type nConversion1"
- Position [265, 218, 280, 242]
- ShowName off
- OutDataTypeMode "boolean"
- }
- Block {
- BlockType DataTypeConversion
- Name "Data Type nConversion2"
- Position [265, 148, 280, 172]
- ShowName off
- OutDataTypeMode "boolean"
- }
- Block {
- BlockType DataTypeConversion
- Name "Data Type nConversion3"
- Position [265, 78, 280, 102]
- ShowName off
- OutDataTypeMode "boolean"
- }
- Block {
- BlockType DataTypeConversion
- Name "Data Type nConversion4"
- Position [345, 68, 360, 92]
- ShowName off
- OutDataTypeMode "double"
- }
- Block {
- BlockType DataTypeConversion
- Name "Data Type nConversion5"
- Position [345, 138, 360, 162]
- ShowName off
- OutDataTypeMode "double"
- }
- Block {
- BlockType DataTypeConversion
- Name "Data Type nConversion6"
- Position [345, 208, 360, 232]
- ShowName off
- OutDataTypeMode "double"
- }
- Block {
- BlockType Reference
- Name "Fault A"
- Ports [1, 0, 0, 0, 0, 1, 1]
- Position [455, 71, 495, 109]
- SourceBlock "powerlib/Elements/Breaker"
- SourceType "Breaker"
- ShowPortLabels on
- BreakerResistance "FaultResistance"
- InitialState "init_a"
- SnubberResistance "SnubberResistance"
- SnubberCapacitance "SnubberCapacitance"
- SwitchingTimes "[ 1/60 5/60 ]"
- External on
- Measurements "None"
- MoreParameters off
- NoBreakLoop off
- }
- Block {
- BlockType Reference
- Name "Fault B"
- Ports [1, 0, 0, 0, 0, 1, 1]
- Position [455, 141, 495, 179]
- SourceBlock "powerlib/Elements/Breaker"
- SourceType "Breaker"
- ShowPortLabels on
- BreakerResistance "FaultResistance"
- InitialState "init_b"
- SnubberResistance "SnubberResistance"
- SnubberCapacitance "SnubberCapacitance"
- SwitchingTimes "[ 1/60 5/60 ]"
- External on
- Measurements "None"
- MoreParameters off
- NoBreakLoop off
- }
- Block {
- BlockType Reference
- Name "Fault C"
- Ports [1, 0, 0, 0, 0, 1, 1]
- Position [455, 211, 495, 249]
- SourceBlock "powerlib/Elements/Breaker"
- SourceType "Breaker"
- ShowPortLabels on
- BreakerResistance "FaultResistance"
- InitialState "init_c"
- SnubberResistance "SnubberResistance"
- SnubberCapacitance "SnubberCapacitance"
- SwitchingTimes "[ 1/60 5/60 ]"
- External on
- Measurements "None"
- MoreParameters off
- NoBreakLoop off
- }
- Block {
- BlockType Reference
- Name "Ground"
- Ports [0, 0, 0, 0, 0, 1, 1]
- Position [530, 330, 560, 360]
- Orientation "down"
- SourceBlock "powerlib/Elements/Ground"
- SourceType "Ground"
- PhysicalDomain "powersysdomain"
- SubClassName "unknown"
- LeftPortType "p1"
- RightPortType "p1"
- LConnTagsString "a"
- RConnTagsString "__newr0"
- }
- Block {
- BlockType Logic
- Name "LogicalnOperator1"
- Ports [2, 1]
- Position [300, 61, 325, 99]
- ShowName off
- }
- Block {
- BlockType Logic
- Name "LogicalnOperator2"
- Ports [2, 1]
- Position [300, 131, 325, 169]
- ShowName off
- }
- Block {
- BlockType Logic
- Name "LogicalnOperator3"
- Ports [2, 1]
- Position [300, 201, 325, 239]
- ShowName off
- }
- Block {
- BlockType Reference
- Name "Rground"
- Ports [0, 0, 0, 0, 0, 1, 1]
- Position [530, 255, 560, 290]
- 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 "Rground"
- Inductance "[]"
- SetiL0 off
- InitialCurrent "0"
- Capacitance "[]"
- Setx0 off
- InitialVoltage "0"
- Measurements "None"
- }
- Block {
- BlockType Switch
- Name "Switch3"
- Position [90, 195, 120, 225]
- ShowName off
- Threshold "0.5"
- SaturateOnIntegerOverflow off
- ZeroCross off
- }
- Block {
- BlockType Reference
- Name "Timer"
- Ports [0, 1]
- Position [20, 248, 60, 282]
- SourceBlock "powerlib_extras/Control nBlocks/Timer"
- SourceType "Timer"
- ShowPortLabels on
- t "SwitchTimes"
- e "SwitchStatus"
- }
- Block {
- BlockType Constant
- Name "com"
- Position [20, 157, 50, 173]
- }
- Block {
- BlockType PMIOPort
- Name "A"
- Position [380, 93, 410, 107]
- Port "1"
- Side "Left"
- }
- Block {
- BlockType PMIOPort
- Name "B"
- Position [380, 163, 410, 177]
- Port "2"
- Side "Left"
- }
- Block {
- BlockType PMIOPort
- Name "C"
- Position [380, 233, 410, 247]
- Port "3"
- Side "Left"
- }
- Line {
- SrcBlock "com"
- SrcPort 1
- Points [20, 0]
- DstBlock "Switch3"
- DstPort 1
- }
- Line {
- SrcBlock "Timer"
- SrcPort 1
- Points [10, 0]
- DstBlock "Switch3"
- DstPort 3
- }
- Line {
- SrcBlock "C4"
- SrcPort 1
- DstBlock "Switch3"
- DstPort 2
- }
- Line {
- SrcBlock "Switch3"
- SrcPort 1
- DstBlock "Data Type nConversion"
- DstPort 1
- }
- Line {
- SrcBlock "Data Type nConversion"
- SrcPort 1
- Points [5, 0]
- Branch {
- DstBlock "LogicalnOperator3"
- DstPort 1
- }
- Branch {
- Points [0, -70]
- Branch {
- DstBlock "LogicalnOperator2"
- DstPort 1
- }
- Branch {
- Points [0, -70]
- DstBlock "LogicalnOperator1"
- DstPort 1
- }
- }
- }
- Line {
- SrcBlock "Constant3"
- SrcPort 1
- DstBlock "Data Type nConversion1"
- DstPort 1
- }
- Line {
- SrcBlock "Data Type nConversion1"
- SrcPort 1
- DstBlock "LogicalnOperator3"
- DstPort 2
- }
- Line {
- SrcBlock "Constant2"
- SrcPort 1
- DstBlock "Data Type nConversion2"
- DstPort 1
- }
- Line {
- SrcBlock "Data Type nConversion2"
- SrcPort 1
- DstBlock "LogicalnOperator2"
- DstPort 2
- }
- Line {
- SrcBlock "Constant1"
- SrcPort 1
- DstBlock "Data Type nConversion3"
- DstPort 1
- }
- Line {
- SrcBlock "Data Type nConversion3"
- SrcPort 1
- DstBlock "LogicalnOperator1"
- DstPort 2
- }
- Line {
- SrcBlock "LogicalnOperator1"
- SrcPort 1
- DstBlock "Data Type nConversion4"
- DstPort 1
- }
- Line {
- SrcBlock "LogicalnOperator2"
- SrcPort 1
- DstBlock "Data Type nConversion5"
- DstPort 1
- }
- Line {
- SrcBlock "LogicalnOperator3"
- SrcPort 1
- DstBlock "Data Type nConversion6"
- DstPort 1
- }
- Line {
- SrcBlock "Data Type nConversion4"
- SrcPort 1
- DstBlock "Fault A"
- DstPort 1
- }
- Line {
- SrcBlock "Data Type nConversion5"
- SrcPort 1
- DstBlock "Fault B"
- DstPort 1
- }
- Line {
- SrcBlock "Data Type nConversion6"
- SrcPort 1
- DstBlock "Fault C"
- DstPort 1
- }
- Line {
- LineType "Connection"
- SrcBlock "Rground"
- SrcPort RConn1
- Points [0, 0]
- DstBlock "Ground"
- DstPort LConn1
- }
- Line {
- LineType "Connection"
- SrcBlock "A"
- SrcPort RConn1
- Points [0, 0]
- DstBlock "Fault A"
- DstPort LConn1
- }
- Line {
- LineType "Connection"
- SrcBlock "B"
- SrcPort RConn1
- Points [0, 0]
- DstBlock "Fault B"
- DstPort LConn1
- }
- Line {
- LineType "Connection"
- SrcBlock "C"
- SrcPort RConn1
- Points [0, 0]
- DstBlock "Fault C"
- DstPort LConn1
- }
- Line {
- LineType "Connection"
- SrcBlock "Fault A"
- SrcPort RConn1
- Points [35, 0; 0, 70]
- Branch {
- ConnectType "DEST_DEST"
- SrcBlock "Fault B"
- SrcPort RConn1
- Points [0, 0; 35, 0]
- }
- Branch {
- ConnectType "DEST_SRC"
- Points [0, 70]
- Branch {
- ConnectType "DEST_SRC"
- DstBlock "Rground"
- DstPort LConn1
- }
- Branch {
- ConnectType "DEST_DEST"
- SrcBlock "Fault C"
- SrcPort RConn1
- Points [0, 0; 35, 0]
- }
- }
- }
- }
- }
- Block {
- BlockType From
- Name "From1"
- Position [505, 316, 570, 334]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Trip_WT2"
- }
- Block {
- BlockType From
- Name "From12"
- Position [340, 96, 405, 114]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Trip_WT1"
- }
- Block {
- BlockType From
- Name "From2"
- Position [345, 546, 410, 564]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Trip_WT3"
- }
- Block {
- BlockType Goto
- Name "Goto1"
- Position [435, 35, 480, 55]
- ShowName off
- GotoTag "wind1"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto2"
- Position [600, 255, 645, 275]
- ShowName off
- GotoTag "wind2"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto25"
- Position [550, 110, 595, 130]
- ShowName off
- GotoTag "m_wt1"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto3"
- Position [715, 330, 760, 350]
- ShowName off
- GotoTag "m_wt2"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto4"
- Position [440, 485, 485, 505]
- ShowName off
- GotoTag "wind3"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto5"
- Position [555, 560, 600, 580]
- ShowName off
- GotoTag "m_wt3"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto6"
- Position [865, 67, 925, 83]
- ShowName off
- GotoTag "Trip_WT1"
- TagVisibility "local"
- }
- Block {
- BlockType Goto
- Name "Goto7"
- Position [865, 87, 925, 103]
- ShowName off
- GotoTag "Trip_WT2"
- TagVisibility "local"
- }
- Block {
- BlockType Goto
- Name "Goto8"
- Position [865, 107, 925, 123]
- ShowName off
- GotoTag "Trip_WT3"
- TagVisibility "local"
- }
- Block {
- BlockType Reference
- Name "Ground1"
- Ports [0, 0, 0, 0, 0, 1]
- Position [314, 445, 326, 460]
- 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 "Ground2"
- Ports [0, 0, 0, 0, 0, 1]
- Position [314, 675, 326, 690]
- 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 [299, 220, 311, 235]
- Orientation "down"
- ShowName off
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Ground"
- SourceType "Ground"
- PhysicalDomain "powersysdomain"
- SubClassName "unknown"
- LeftPortType "p1"
- RightPortType "p1"
- LConnTagsString "a"
- }
- Block {
- BlockType RateLimiter
- Name "Rate Limiter1"
- Position [515, 255, 535, 275]
- ShowName off
- }
- Block {
- BlockType RateLimiter
- Name "Rate Limiter2"
- Position [355, 485, 375, 505]
- ShowName off
- }
- Block {
- BlockType RateLimiter
- Name "Rate Limiter5"
- Position [350, 35, 370, 55]
- ShowName off
- }
- Block {
- BlockType Display
- Name "Trip1"
- Ports [1]
- Position [750, 18, 810, 82]
- ShowName off
- FontName "Arial"
- FontSize 12
- Decimation "1"
- Lockdown off
- }
- Block {
- BlockType Display
- Name "Trip2"
- Ports [1]
- Position [750, 133, 810, 197]
- ShowName off
- FontName "Arial"
- FontSize 12
- Decimation "1"
- Lockdown off
- }
- Block {
- BlockType SubSystem
- Name "Wind TurbinenProtections"
- Ports [0, 2]
- Position [635, 61, 705, 199]
- ForegroundColor "blue"
- DropShadow on
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "Wind TurbinenProtections"
- Location [95, 137, 954, 688]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType From
- Name "From1"
- Position [20, 387, 80, 403]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "wr2"
- }
- Block {
- BlockType From
- Name "From11"
- Position [20, 127, 80, 143]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "wr1"
- }
- Block {
- BlockType From
- Name "From2"
- Position [15, 310, 100, 330]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Iabc_B575_2"
- }
- Block {
- BlockType From
- Name "From3"
- Position [15, 285, 100, 305]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Vabc_B575_2"
- }
- Block {
- BlockType From
- Name "From4"
- Position [20, 647, 80, 663]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "wr3"
- }
- Block {
- BlockType From
- Name "From5"
- Position [15, 570, 100, 590]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Iabc_B575_3"
- }
- Block {
- BlockType From
- Name "From6"
- Position [15, 545, 100, 565]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Vabc_B575_3"
- }
- Block {
- BlockType From
- Name "From7"
- Position [15, 50, 100, 70]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Iabc_B575_1"
- }
- Block {
- BlockType From
- Name "From9"
- Position [15, 25, 100, 45]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Vabc_B575_1"
- }
- Block {
- BlockType Ground
- Name "Ground1"
- Position [75, 78, 85, 92]
- ShowName off
- }
- Block {
- BlockType Ground
- Name "Ground2"
- Position [75, 103, 85, 117]
- ShowName off
- }
- Block {
- BlockType Ground
- Name "Ground3"
- Position [75, 338, 85, 352]
- ShowName off
- }
- Block {
- BlockType Ground
- Name "Ground4"
- Position [75, 363, 85, 377]
- ShowName off
- }
- Block {
- BlockType Ground
- Name "Ground5"
- Position [75, 598, 85, 612]
- ShowName off
- }
- Block {
- BlockType Ground
- Name "Ground6"
- Position [75, 623, 85, 637]
- ShowName off
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [3, 1]
- Position [345, 35, 350, 85]
- ShowName off
- Inputs "3"
- DisplayOption "bar"
- }
- Block {
- BlockType Mux
- Name "Mux1"
- Ports [3, 1]
- Position [340, 320, 345, 370]
- ShowName off
- Inputs "3"
- DisplayOption "bar"
- }
- Block {
- BlockType SubSystem
- Name "ProtectionnSystem1"
- Ports [5, 3]
- Position [125, 23, 215, 147]
- BackgroundColor "cyan"
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskType "Protection System"
- MaskDescription "Protection type:n1. Instantaneous A"
- "C Overcurrentn2. AC Overcurrent (positive-sequence)n3. AC Current Unb"
- "alancen4. AC Undervoltage (positive-sequence)n5. AC Overvoltage (posi"
- "tive-sequence)n6. AC Voltage Unbalance (Negative-sequence)n7. AC Volt"
- "age Unbalance (Zero-sequence)n8. DC Overvoltage n9. Under Speedn10. "
- " Over Speedn"
- MaskPromptString "Fundamental frequency f1 (Hz):|Instanta"
- "neous AC Overcurrent (pu):|Maximum AC Current [ I1max(pu), Delay(s) ]:|Maximu"
- "m AC Current Unbalance [ I2/I1max(pu), Delay(s) ]|AC Under/Over Voltage [ V1m"
- "in(pu), V1max(pu), Delay(s) ]:|Maximum Voltage Unbalance [ V2/V1max(pu), V0/V"
- "1max(pu), Delay(s)]:|Maximum DC Voltage [ Vmax(V), Delay(s) ]:|Under/Over Sp"
- "eed [ Speedmin (pu), Speedmax (pu), Delay(s)]:|Start time for protection syst"
- "em (s):"
- MaskStyleString "edit,edit,edit,edit,edit,edit,edit,edit"
- ",edit"
- MaskTunableValueString "on,on,on,on,on,on,on,on,on"
- MaskCallbackString "||||||||"
- MaskEnableString "on,on,on,on,on,on,on,on,on"
- MaskVisibilityString "on,on,on,on,on,on,on,on,on"
- MaskToolTipString "on,on,on,on,on,on,on,on,on"
- MaskVarAliasString ",,,,,,,,"
- MaskVariables "Freq=@1;Max_Iinst=@2;MaxI1=@3;MaxI2I1=@"
- "4;MinMaxV1=@5;MaxV2V1=@6;MaxVdc=@7;MaxSpeed=@8;Delay_Protection=@9;"
- MaskInitialization "a=exp(2*pi*j/3);na2=a^2;nMax_I1=MaxI1"
- "(1);nDelay_I1=MaxI1(2);nMax_I2_I1=MaxI2I1(1);nDelay_I2_I1=MaxI2I1(2);nMin"
- "_V1=MinMaxV1(1);nMax_V1=MinMaxV1(2);nDelay_V1=MinMaxV1(3);nMax_V2_V1=MaxV2"
- "V1(1);nMax_V0_V1=MaxV2V1(2);nDelay_V2_V1=MaxV2V1(3);nMax_Vdc=MaxVdc(1);nD"
- "elay_Vdc=MaxVdc(2);nMin_Speed=MaxSpeed(1);nMax_Speed=MaxSpeed(2);nDelay_Sp"
- "eed=MaxSpeed(3);n"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "60|10|[ 1.1, 10 ]|[ 0.4, 0.2]|[ 0.75, 1"
- ".1, 0.1 ]|[ 0.05, 0.05, 0.2 ]|[ 1900, 0.001 ]|[ 1, 1.05, 5 ]|5"
- MaskTabNameString ",,,,,,,,"
- System {
- Name "ProtectionnSystem1"
- Location [39, 301, 1030, 976]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "Vabc (pu)"
- Position [30, 208, 60, 222]
- IconDisplay "Port number"
- PortDimensions "3"
- }
- Block {
- BlockType Inport
- Name "Iabc (pu)"
- Position [30, 68, 60, 82]
- Port "2"
- IconDisplay "Port number"
- PortDimensions "3"
- }
- Block {
- BlockType Inport
- Name "Vdc (V)"
- Position [30, 338, 60, 352]
- Port "3"
- IconDisplay "Port number"
- PortDimensions "1"
- }
- Block {
- BlockType Inport
- Name "Reset"
- Position [545, 223, 575, 237]
- Port "4"
- IconDisplay "Port number"
- PortDimensions "1"
- }
- Block {
- BlockType Inport
- Name "Speed (pu)"
- Position [30, 463, 60, 477]
- Port "5"
- IconDisplay "Port number"
- PortDimensions "1"
- }
- Block {
- BlockType SubSystem
- Name "AC CurrentnProtection"
- Ports [1, 3]
- Position [100, 27, 175, 123]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "AC CurrentnProtection"
- Location [366, 109, 1176, 404]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "abc"
- Position [40, 193, 70, 207]
- IconDisplay "Port number"
- PortDimensions "3"
- }
- Block {
- BlockType ComplexToMagnitudeAngle
- Name "Complex tonMagnitude-Angle1"
- Ports [1, 1]
- Position [240, 68, 265, 92]
- ShowName off
- Output "Magnitude"
- }
- Block {
- BlockType SubSystem
- Name "CurrentnMeasurement"
- Ports [1, 2]
- Position [150, 181, 210, 214]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "CurrentnMeasurement"
- Location [278, 269, 1122, 478]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "abc"
- Position [15, 43, 45, 57]
- IconDisplay "Port number"
- PortDimensions "3"
- }
- Block {
- BlockType Gain
- Name "Gain1"
- Position [275, 45, 345, 85]
- Gain "[1 a a2]"
- }
- Block {
- BlockType Gain
- Name "Gain2"
- Position [275, 110, 345, 150]
- Gain "[1 a2 a]"
- }
- Block {
- BlockType Gain
- Name "Gain3"
- Position [430, 47, 480, 83]
- ShowName off
- Gain "1/3"
- }
- Block {
- BlockType Gain
- Name "Gain4"
- Position [430, 112, 480, 148]
- ShowName off
- Gain "1/3"
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [3, 1]
- Position [170, 39, 175, 91]
- ShowName off
- Inputs "3"
- DisplayOption "bar"
- }
- Block {
- BlockType Product
- Name "Product"
- Ports [2, 1]
- Position [670, 91, 705, 144]
- ShowName off
- Inputs "/*"
- InputSameDT off
- RndMeth "Floor"
- }
- Block {
- BlockType Saturate
- Name "Saturation"
- Position [600, 52, 625, 78]
- ShowName off
- UpperLimit "1e6"
- LowerLimit "1e-6"
- }
- Block {
- BlockType Selector
- Name "Selector"
- Ports [1, 1]
- Position [100, 44, 135, 56]
- ShowName off
- InputPortWidth "3"
- }
- Block {
- BlockType Selector
- Name "Selector1"
- Ports [1, 1]
- Position [100, 59, 135, 71]
- ShowName off
- Elements "2"
- InputPortWidth "3"
- }
- Block {
- BlockType Selector
- Name "Selector2"
- Ports [1, 1]
- Position [100, 74, 135, 86]
- ShowName off
- Elements "3"
- InputPortWidth "3"
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [1, 1]
- Position [375, 55, 395, 75]
- ShowName off
- IconShape "round"
- Inputs "1"
- }
- Block {
- BlockType Sum
- Name "Sum1"
- Ports [1, 1]
- Position [375, 120, 395, 140]
- ShowName off
- IconShape "round"
- Inputs "1"
- }
- Block {
- BlockType SubSystem
- Name "magnitude"
- Ports [1, 1]
- Position [520, 54, 565, 76]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "magnitude"
- Location [238, 376, 639, 546]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "In1"
- Position [25, 68, 55, 82]
- IconDisplay "Port number"
- }
- Block {
- BlockType ComplexToRealImag
- Name "Complex tonReal-Imag"
- Ports [1, 2]
- Position [80, 58, 110, 87]
- ShowName off
- Output "Real and imag"
- }
- Block {
- BlockType SubSystem
- Name "Fourier1"
- Ports [1, 2]
- Position [155, 26, 220, 59]
- ShowName off
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskType "Fourier analyser"
- MaskDescription "The Fourier block performs a Four"
- "ier analysis of the input signal over a running window of one cycle of the fu"
- "ndamental frequency. First and second outputs return respectively the magnitu"
- "de and phase (degrees) of the harmonic component specified."
- MaskHelp "web(psbhelp)"
- MaskPromptString "Fundamental frequency f1 (Hz):|Ha"
- "rmonic n (0=DC; 1=fundamental; 2=2nd harm; ...) :"
- MaskStyleString "edit,edit"
- MaskTunableValueString "on,on"
- MaskCallbackString "|"
- MaskEnableString "on,on"
- MaskVisibilityString "on,on"
- MaskToolTipString "on,on"
- MaskVarAliasString ","
- MaskVariables "f1=@1;n=@2;"
- MaskInitialization " k=2-(n==0);n"
- MaskIconFrame on
- MaskIconOpaque off
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "Freq|0"
- MaskTabNameString ","
- System {
- Name "Fourier1"
- Location [52, 538, 953, 977]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "signal"
- Position [15, 105, 35, 125]
- IconDisplay "Port number"
- }
- Block {
- BlockType Constant
- Name "Constant"
- Position [160, 100, 190, 130]
- Value "0"
- }
- Block {
- BlockType Fcn
- Name "Fcn"
- Position [475, 45, 515, 65]
- Expr "u^2"
- }
- Block {
- BlockType Fcn
- Name "Fcn1"
- Position [475, 135, 515, 155]
- Expr "u^2"
- }
- Block {
- BlockType Fcn
- Name "Fcn2"
- Position [595, 94, 665, 116]
- Expr "sqrt(u)"
- }
- Block {
- BlockType Fcn
- Name "Fcn3"
- Position [550, 180, 685, 210]
- Expr "180/pi*atan2(u[2],u[1])"
- }
- Block {
- BlockType Gain
- Name "Gain1"
- Position [55, 97, 105, 133]
- Gain "k*f1"
- }
- Block {
- BlockType Integrator
- Name "Integ2"
- Ports [2, 1]
- Position [220, 174, 260, 216]
- InitialConditionSource "external"
- IgnoreLimit off
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [2, 1]
- Position [475, 176, 505, 209]
- Inputs "2"
- }
- Block {
- BlockType Product
- Name "Product"
- Ports [2, 1]
- Position [165, 21, 190, 59]
- RndMeth "Floor"
- }
- Block {
- BlockType Product
- Name "Product1"
- Ports [2, 1]
- Position [160, 166, 185, 204]
- RndMeth "Floor"
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [2, 1]
- Position [550, 79, 570, 126]