Model { Name "modelowanie_10" Version 6.0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.131" NumModelReferences 0 NumTestPointedSignals 0 } SavedCharacterEncoding "ibm-5346_P100-1998" 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 Created "Tue Oct 04 20:44:32 2005" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "Administrator" ModifiedDateFormat "%" LastModifiedDate "Sun May 07 18:16:54 2006" ModelVersionFormat "1.%" 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 on BufferReuse on ProdHWDeviceType "32-bit Generic" ShowModelReferenceBlockVersion off ShowModelReferenceBlockIO off Array { Type "Handle" Dimension 1 Simulink.ConfigSet { $ObjectID 1 Version "1.0.4" Array { Type "Handle" Dimension 7 Simulink.SolverCC { $ObjectID 2 Version "1.0.4" StartTime "0.0" StopTime "500" AbsTol "auto" FixedStep "auto" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 5 ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "auto" MinStep "auto" RelTol "1e-3" SolverMode "Auto" Solver "ode45" ZeroCrossControl "UseLocalSettings" PositivePriorityOrder off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" RateTranMode "Deterministic" } Simulink.DataIOCC { $ObjectID 3 Version "1.0.4" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints on MaxDataPoints "1000" LoadExternalInput off LoadInitialState off SaveFinalState off SaveFormat "Array" SaveOutput on SaveState off SaveTime on StateSaveName "xout" TimeSaveName "tout" OutputSaveName "yout" SignalLoggingName "sigsOut" OutputOption "RefineOutputTimes" OutputTimes "[]" Refine "1" } Simulink.OptimizationCC { $ObjectID 4 Array { Type "Cell" Dimension 5 Cell "ZeroExternalMemoryAtStartup" Cell "ZeroInternalMemoryAtStartup" Cell "InitFltsAndDblsToZero" Cell "OptimizeModelRefInitCode" Cell "NoFixptDivByZeroProtection" PropName "DisabledProps" } Version "1.0.4" BlockReduction on BooleanDataType on ConditionallyExecuteInputs on ConditionalExecOptimization "on_for_testing" 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 OptimizeModelRefInitCode off LifeSpan "inf" } Simulink.DebuggingCC { $ObjectID 5 Version "1.0.4" ConsistencyChecking "none" ArrayBoundsChecking "none" AlgebraicLoopMsg "warning" ArtificialAlgebraicLoopMsg "warning" CheckSSInitialOutputMsg on CheckExecutionContextPreStartOutputMsg off CheckExecutionContextRuntimeOutputMsg off SignalResolutionControl "TryResolveAllWithWarning" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" SolverPrmCheckMsg "none" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" TasksWithSamePriorityMsg "warning" CheckMatrixSingularityMsg "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterPrecisionLossMsg "warning" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SFcnCompatibilityMsg "none" UniqueDataStoreMsg "none" RootOutportRequireBusObject "warning" AssertControl "UseLocalSettings" EnableOverflowDetection off ModelReferenceIOMsg "none" ModelReferenceVersionMismatchMessage "none" ModelReferenceIOMismatchMessage "none" ModelReferenceCSMismatchMessage "none" ModelReferenceSimTargetVerbose off UnknownTsInhSupMsg "warning" ModelReferenceDataLoggingMessage "warning" ModelReferenceSymbolNameMessage "warning" } Simulink.HardwareCC { $ObjectID 6 Version "1.0.4" ProdBitPerChar 8 ProdBitPerShort 16 ProdBitPerInt 32 ProdBitPerLong 32 ProdIntDivRoundTo "Undefined" ProdEndianess "Unspecified" ProdWordSize 32 ProdShiftRightIntArith on ProdHWDeviceType "32-bit Generic" TargetBitPerChar 8 TargetBitPerShort 16 TargetBitPerInt 32 TargetBitPerLong 32 TargetShiftRightIntArith on TargetIntDivRoundTo "Undefined" TargetEndianess "Unspecified" TargetWordSize 32 TargetTypeEmulationWarnSuppressLevel 0 TargetPreprocMaxBitsSint 32 TargetPreprocMaxBitsUint 32 TargetHWDeviceType "Specified" TargetUnknown on ProdEqTarget on } Simulink.ModelReferenceCC { $ObjectID 7 Version "1.0.4" 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.0.4" 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 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.0.4" 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.0.4" TargetFcnLib "ansi_tfl_tmw.mat" 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 "Solver" } PropName "ConfigurationSets" } Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 1 } BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { Block { BlockType Constant Value "1" VectorParams1D on OutDataTypeMode "Inherit from 'Constant value'" OutDataType "sfix(16)" ConRadixGroup "Use specified scaling" OutScaling "2^0" SampleTime "inf" } Block { BlockType Display Format "short" Decimation "10" Floating off SampleTime "-1" } 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 Inport BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" DataType "auto" OutDataType "sfix(16)" OutScaling "2^0" SignalType "auto" SamplingMode "auto" Interpolate on } Block { BlockType Integrator ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" ZeroCross on } Block { BlockType Mux Inputs "4" DisplayOption "none" BusObject "BusObject" NonVirtualBus off } Block { BlockType Outport Port "1" BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" DataType "auto" OutDataType "sfix(16)" OutScaling "2^0" SignalType "auto" SamplingMode "auto" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Product Inputs "2" Multiplication "Element-wise(.*)" InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Zero" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Scope Floating off 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 "0" } 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 TransferFcn Numerator "[1]" Denominator "[1 2 1]" AbsoluteTolerance "auto" Realization "auto" } } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight "normal" FontAngle "normal" } System { Name "modelowanie_10" Location [0, 84, 772, 638] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Scope Name "Cp1" Ports [1] Position [615, 454, 645, 486] Location [3, 427, 327, 666] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "-20" YMax "80" SaveName "ScopeData7" DataFormat "StructureWithTime" } Block { BlockType Display Name "Cp3" Ports [1] Position [685, 480, 775, 510] Decimation "1" } Block { BlockType SubSystem Name "Generator" Ports [2, 2] Position [230, 224, 330, 266] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "Generator" Location [189, 160, 687, 460] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "omega_g" Position [40, 208, 70, 222] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "Pg_zad" Position [40, 123, 70, 137] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Product Name "Product" Ports [2, 1] Position [270, 121, 315, 154] Inputs "*/" InputSameDT off RndMeth "Floor" } Block { BlockType TransferFcn Name "Transfer Fcn" Position [145, 112, 205, 148] Denominator "[0.1 1]" } Block { BlockType Outport Name "Pg" Position [435, 203, 465, 217] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Tg" Position [435, 133, 465, 147] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "omega_g" SrcPort 1 Points [180, 0] DstBlock "Product" DstPort 2 } Line { SrcBlock "Pg_zad" SrcPort 1 DstBlock "Transfer Fcn" DstPort 1 } Line { SrcBlock "Transfer Fcn" SrcPort 1 Points [15, 0] Branch { DstBlock "Product" DstPort 1 } Branch { Points [0, 80] DstBlock "Pg" DstPort 1 } } Line { SrcBlock "Product" SrcPort 1 DstBlock "Tg" DstPort 1 } Annotation { Name "Generator" Position [243, 36] FontSize 18 } Annotation { Name "[W]" Position [102, 123] } Annotation { Name "[rad/s]" Position [101, 206] } Annotation { Name "[Nm]" Position [358, 131] } Annotation { Name "[W]" Position [408, 203] } } } Block { BlockType Scope Name "Pg" Ports [1] Position [355, 134, 385, 166] Location [471, 355, 795, 594] Open off NumInputPorts "1" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData4" DataFormat "StructureWithTime" } Block { BlockType Step Name "Pg_zad" Position [145, 225, 175, 255] Time "200" Before "-1000" After "-800" SampleTime "0" } Block { BlockType Scope Name "Pww" Ports [1] Position [550, 479, 580, 511] Location [22, 152, 346, 391] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "-20" YMax "80" SaveName "ScopeData8" DataFormat "StructureWithTime" } Block { BlockType Display Name "Pww1" Ports [1] Position [590, 515, 680, 545] Decimation "1" } Block { BlockType SubSystem Name "Turbina wiatrowa" Ports [2, 6] Position [435, 240, 535, 405] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "Turbina wiatrowa" Location [88, 73, 884, 601] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "Tg" Position [25, 78, 55, 92] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "v" Position [20, 193, 50, 207] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType SubSystem Name "Dynamika zmian mocy\nmechanicznej uzyskiwan" "ej\nz wiatru" Ports [2, 1] Position [470, 194, 570, 236] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "Dynamika zmian mocy\nmechanicznej uzyskiw" "anej\nz wiatru" Location [203, 222, 701, 522] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "Pww" Position [60, 103, 90, 117] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "omega_w" Position [55, 193, 85, 207] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Product Name "Product" Ports [2, 1] Position [300, 101, 345, 134] Inputs "*/" InputSameDT off RndMeth "Floor" } Block { BlockType Scope Name "Pw\n" Ports [1] Position [395, 44, 425, 76] Location [188, 355, 512, 594] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData6" DataFormat "StructureWithTime" } Block { BlockType TransferFcn Name "Transfer Fcn" Position [170, 92, 230, 128] Numerator "[3.3 1]" Denominator "[0.9 1]" } Block { BlockType Outport Name "Tw" Position [405, 113, 435, 127] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Product" SrcPort 1 DstBlock "Tw" DstPort 1 } Line { SrcBlock "omega_w" SrcPort 1 Points [180, 0; 0, -75] DstBlock "Product" DstPort 2 } Line { SrcBlock "Transfer Fcn" SrcPort 1 Points [40, 0] Branch { DstBlock "Product" DstPort 1 } Branch { Points [0, -50] DstBlock "Pw\n" DstPort 1 } } Line { SrcBlock "Pww" SrcPort 1 DstBlock "Transfer Fcn" DstPort 1 } Annotation { Name "[Nm]" Position [363, 114] } Annotation { Name "Pw [W]" Position [256, 101] } Annotation { Name "[W]" Position [116, 101] } Annotation { Name "Dynamika zmian mocy mechanicznej\nuzysk" "iwanej z wiatru" Position [230, 30] FontSize 18 } } } Block { BlockType SubSystem Name "Moc mechaniczna\nuzyskiwana z wiatru" Ports [5, 3] Position [310, 163, 410, 247] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "Moc mechaniczna\nuzyskiwana z wiatru" Location [12, 84, 800, 453] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "R" Position [20, 73, 50, 87] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "Pwind" Position [20, 298, 50, 312] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "v" Position [20, 123, 50, 137] Port "3" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "teta" Position [20, 228, 50, 242] Port "4" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "omega_w" Position [20, 178, 50, 192] Port "5" IconDisplay "Port number" LatchInput off } Block { BlockType Fcn Name "1/LAMBDA" Position [345, 124, 525, 156] Expr "1/(u[1]+0.08*u[2]) - 0.035/(1+u[2]^3)" } Block { BlockType Fcn Name "Cp" Position [630, 168, 855, 202] Expr "u[3]*(u[4]*u[1]-u[5]*u[2]-u[6])*exp(-u[" "7]*u[1])" } Block { BlockType Mux Name "Mux" Ports [3, 1] Position [130, 111, 135, 149] ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Mux Name "Mux1" Ports [2, 1] Position [310, 121, 315, 159] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux2" Ports [7, 1] Position [595, 128, 600, 242] ShowName off Inputs "7" DisplayOption "bar" } Block { BlockType Product Name "Product" Ports [2, 1] Position [890, 176, 935, 209] InputSameDT off RndMeth "Floor" } Block { BlockType Constant Name "c1" Position [355, 260, 385, 290] Orientation "up" Value "0.5" } Block { BlockType Constant Name "c2" Position [405, 260, 435, 290] Orientation "up" Value "116" } Block { BlockType Constant Name "c3" Position [455, 260, 485, 290] Orientation "up" Value "0.4" } Block { BlockType Constant Name "c5" Position [505, 260, 535, 290] Orientation "up" Value "5" } Block { BlockType Constant Name "c6" Position [555, 260, 585, 290] Orientation "up" Value "21" } Block { BlockType Fcn Name "lambda" Position [165, 114, 255, 146] Expr "(u[3]*u[1])/u[2]" } Block { BlockType Scope Name "lambda " Ports [1] Position [335, 64, 365, 96] Location [453, 65, 777, 304] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "1" YMax "16" SaveName "ScopeData5" DataFormat "StructureWithTime" } Block { BlockType Outport Name "Pww" Position [960, 188, 990, 202] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Cp1" Position [955, 98, 985, 112] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "lambda1" Position [945, 53, 975, 67] Port "3" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Pwind" SrcPort 1 Points [820, 0] DstBlock "Product" DstPort 2 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Pww" DstPort 1 } Line { SrcBlock "Cp" SrcPort 1 Points [10, 0] Branch { DstBlock "Product" DstPort 1 } Branch { Points [0, -80] DstBlock "Cp1" DstPort 1 } } Line { SrcBlock "Mux2" SrcPort 1 DstBlock "Cp" DstPort 1 } Line { SrcBlock "c6" SrcPort 1 Points [0, -25] DstBlock "Mux2" DstPort 7 } Line { SrcBlock "c5" SrcPort 1 Points [0, -40] DstBlock "Mux2" DstPort 6 } Line { SrcBlock "c3" SrcPort 1 Points [0, -45; 100, 0; 0, -10] DstBlock "Mux2" DstPort 5 } Line { SrcBlock "c2" SrcPort 1 Points [0, -50; 140, 0; 0, -20] DstBlock "Mux2" DstPort 4 } Line { SrcBlock "c1" SrcPort 1 Points [0, -55; 180, 0; 0, -30] DstBlock "Mux2" DstPort 3 } Line { SrcBlock "1/LAMBDA" SrcPort 1 DstBlock "Mux2" DstPort 1 } Line { SrcBlock "Mux1" SrcPort 1 DstBlock "1/LAMBDA" DstPort 1 } Line { SrcBlock "teta" SrcPort 1 Points [230, 0; 0, -45] Branch { Points [250, 0; 0, -35] DstBlock "Mux2" DstPort 2 } Branch { Points [0, -40] DstBlock "Mux1" DstPort 2 } } Line { SrcBlock "lambda" SrcPort 1 Points [5, 0] Branch { Points [25, 0] Branch { DstBlock "Mux1" DstPort 1 } Branch { Points [0, -50] DstBlock "lambda " DstPort 1 } } Branch { Points [0, -70] DstBlock "lambda1" DstPort 1 } } Line { SrcBlock "Mux" SrcPort 1 DstBlock "lambda" DstPort 1 } Line { SrcBlock "omega_w" SrcPort 1 Points [40, 0; 0, -45] DstBlock "Mux" DstPort 3 } Line { SrcBlock "v" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "R" SrcPort 1 Points [40, 0; 0, 40] DstBlock "Mux" DstPort 1 } Annotation { Name "[rad/s]" Position [74, 177] } Annotation { Name "[m/s]" Position [70, 123] } Annotation { Name "[m]" Position [69, 71] } Annotation { Name "[deg]" Position [118, 228] } Annotation { Name "[rad]" Position [274, 124] } Annotation { Name "Moc mechaniczna uzyskiwana z wiatru" Position [451, 36] FontSize 18 } } } Block { BlockType SubSystem Name "Moc strumienia wiatru" Ports [2, 1] Position [140, 169, 240, 211] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "Moc strumienia wiatru" Location [334, 403, 983, 703] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "R" Position [65, 148, 95, 162] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "v" Position [65, 208, 95, 222] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Fcn Name "Fcn" Position [300, 139, 440, 171] Expr "0.5*u[1]*pi*u[2]^2*u[3]^3" } Block { BlockType Mux Name "Mux" Ports [3, 1] Position [235, 136, 240, 174] ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Constant Name "ro" Position [65, 80, 95, 110] Value "1.225" } Block { BlockType Outport Name "Pwind" Position [515, 148, 545, 162] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "v" SrcPort 1 Points [70, 0; 0, -50] DstBlock "Mux" DstPort 3 } Line { SrcBlock "ro" SrcPort 1 Points [70, 0; 0, 50] DstBlock "Mux" DstPort 1 } Line { SrcBlock "R" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Fcn" DstPort 1 } Line { SrcBlock "Fcn" SrcPort 1 DstBlock "Pwind" DstPort 1 } Annotation { Name "[W]" Position [470, 146] } Annotation { Name "Moc strumienia wiatru" Position [309, 41] FontSize 18 } Annotation { Name "[m/s]" Position [130, 207] } Annotation { Name "[m]" Position [129, 146] } Annotation { Name "[kg/m3]" Position [134, 86] } } } Block { BlockType Constant Name "R" Position [265, 100, 295, 130] Orientation "down" NamePlacement "alternate" Value "3" } Block { BlockType SubSystem Name "Zespol napedowy \n(wal + przekadnia)" Ports [4, 2] Position [685, 187, 805, 258] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "Zespol napedowy \n(wal + przekadnia)" Location [0, 84, 792, 638] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "Tg" Position [165, 478, 195, 492] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "Tw" Position [165, 173, 195, 187] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "omega_wo" Position [165, 103, 195, 117] Port "3" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "omega_go" Position [170, 558, 200, 572] Port "4" IconDisplay "Port number" LatchInput off } Block { BlockType Gain Name "1/Jg" Position [330, 470, 360, 500] Gain "1/15" } Block { BlockType Gain Name "1/Jw" Position [315, 165, 345, 195] Gain "1/15" } Block { BlockType Gain Name "1/v - przekladnia" Position [735, 365, 765, 395] Orientation "up" Gain "0.5" } Block { BlockType Gain Name "1/v -przekladnia" Position [600, 400, 630, 430] Orientation "up" Gain "0.5" } Block { BlockType Gain Name "1/v- przekladnia" Position [280, 405, 310, 435] Orientation "down" NamePlacement "alternate" Gain "0.5" } Block { BlockType Gain Name "D" Position [455, 310, 485, 340] Orientation "left" NamePlacement "alternate" } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [490, 165, 520, 195] } Block { BlockType Integrator Name "Integrator1" Ports [1, 1] Position [645, 165, 675, 195] } Block { BlockType Integrator Name "Integrator2" Ports [1, 1] Position [490, 470, 520, 500] } Block { BlockType Integrator Name "Integrator3" Ports [1, 1] Position [650, 470, 680, 500] } Block { BlockType Gain Name "K" Position [455, 245, 485, 275] Orientation "left" NamePlacement "alternate" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [605, 100, 625, 120] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [605, 555, 625, 575] ShowName off IconShape "round" Inputs "++|" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [740, 250, 760, 270] Orientation "left" NamePlacement "alternate" ShowName off IconShape "round" Inputs "+|-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum3" Ports [2, 1] Position [605, 315, 625, 335] Orientation "left" NamePlacement "alternate" ShowName off IconShape "round" Inputs "+|-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum4" Ports [2, 1] Position [285, 315, 305, 335] Orientation "down" NamePlacement "alternate" ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum5" Ports [2, 1] Position [285, 475, 305, 495] ShowName off IconShape "round" Inputs "++|" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum6" Ports [2, 1] Position [245, 170, 265, 190] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Outport Name "omega_g" Position [810, 558, 840, 572] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "omega_w" Position [810, 103, 840, 117] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Sum" SrcPort 1 DstBlock "omega_w" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "omega_g" DstPort 1 } Line { SrcBlock "Tg" SrcPort 1 DstBlock "Sum5" DstPort 2 } Line { SrcBlock "Tw" SrcPort 1 DstBlock "Sum6" DstPort 1 } Line { SrcBlock "Integrator" SrcPort 1 Points [0, 0; 90, 0] Branch { DstBlock "Integrator1" DstPort 1 } Branch { DstBlock "Sum" DstPort 2 } Branch { DstBlock "Sum3" DstPort 1 } } Line { SrcBlock "1/Jw" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "omega_wo" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Integrator2" SrcPort 1 Points [0, 0; 90, 0] Branch { DstBlock "Integrator3" DstPort 1 } Branch { DstBlock "Sum1" DstPort 1 } Branch { DstBlock "1/v -przekladnia" DstPort 1 } } Line { SrcBlock "1/Jg" SrcPort 1 DstBlock "Integrator2" DstPort 1 } Line { SrcBlock "omega_go" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum5" SrcPort 1 DstBlock "1/Jg" DstPort 1 } Line { SrcBlock "1/v- przekladnia" SrcPort 1 DstBlock "Sum5" DstPort 1 } Line { SrcBlock "Sum3" SrcPort 1 DstBlock "D" DstPort 1 } Line { SrcBlock "1/v -przekladnia" SrcPort 1 DstBlock "Sum3" DstPort 2 } Line { SrcBlock "Integrator1" SrcPort 1 Points [70, 0] DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "K" DstPort 1 } Line { SrcBlock "Sum4" SrcPort 1 Points [0, 0; 0, 20] Branch { DstBlock "1/v- przekladnia" DstPort 1 } Branch { Points [-40, 0] DstBlock "Sum6" DstPort 2 } } Line { SrcBlock "D" SrcPort 1 DstBlock "Sum4" DstPort 2 } Line { SrcBlock "K" SrcPort 1 Points [-155, 0] DstBlock "Sum4" DstPort 1 } Line { SrcBlock "Sum6" SrcPort 1 DstBlock "1/Jw" DstPort 1 } Line { SrcBlock "Integrator3" SrcPort 1 Points [65, 0] DstBlock "1/v - przekladnia" DstPort 1 } Line { SrcBlock "1/v - przekladnia" SrcPort 1 DstBlock "Sum2" DstPort 2 } Annotation { Name "delta_w" Position [706, 168] } Annotation { Name "delta_g" Position [716, 476] } Annotation { Name "delta_omega_w" Position [571, 170] } Annotation { Name "delta_omega_g" Position [570, 475] } Annotation { Name "d delta_omega_w / dt" Position [414, 172] } Annotation { Name "d delta_omega_g / dt" Position [421, 475] } Annotation { Name "Zespol napedowy (wal i przekladnia)" Position [458, 51] FontSize 18 } } } Block { BlockType Constant Name "omega_go" Position [630, 285, 660, 315] Value "60" } Block { BlockType Constant Name "omega_wo" Position [560, 285, 590, 315] Value "30" } Block { BlockType Constant Name "teta" Position [175, 285, 205, 315] Value "5" } Block { BlockType Outport Name "omega_g" Position [900, 198, 930, 212] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "omega_w" Position [900, 263, 930, 277] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Tw" Position [900, 128, 930, 142] Port "3" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "lambda1" Position [870, 43, 900, 57] Port "4" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Cp1" Position [870, 78, 900, 92] Port "5" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Pww" Position [870, 13, 900, 27] Port "6" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Moc strumienia wiatru" SrcPort 1 DstBlock "Moc mechaniczna\nuzyskiwana z wiatru" DstPort 2 } Line { SrcBlock "teta" SrcPort 1 Points [60, 0; 0, -80] DstBlock "Moc mechaniczna\nuzyskiwana z wiatru" DstPort 4 } Line { SrcBlock "Moc mechaniczna\nuzyskiwana z wiatru" SrcPort 1 Points [5, 0] Branch { Points [35, 0] DstBlock "Dynamika zmian mocy\nmechanicznej uzyskiw" "anej\nz wiatru" DstPort 1 } Branch { Points [0, -155] DstBlock "Pww" DstPort 1 } } Line { SrcBlock "Dynamika zmian mocy\nmechanicznej uzyskiwan" "ej\nz wiatru" SrcPort 1 Points [70, 0] Branch { DstBlock "Zespol napedowy \n(wal + przekadnia)" DstPort 2 } Branch { Points [0, -80] DstBlock "Tw" DstPort 1 } } Line { SrcBlock "Zespol napedowy \n(wal + przekadnia)" SrcPort 2 Points [60, 0; 0, 30] Branch { Points [0, 65; -425, 0] Branch { Points [0, -110] DstBlock "Dynamika zmian mocy\nmechanicznej uzysk" "iwanej\nz wiatru" DstPort 2 } Branch { Points [-155, 0; 0, -100] DstBlock "Moc mechaniczna\nuzyskiwana z wiatru" DstPort 5 } } Branch { DstBlock "omega_w" DstPort 1 } } Line { SrcBlock "omega_wo" SrcPort 1 Points [15, 0; 0, -70] DstBlock "Zespol napedowy \n(wal + przekadnia)" DstPort 3 } Line { SrcBlock "omega_go" SrcPort 1 Points [0, -55] DstBlock "Zespol napedowy \n(wal + przekadnia)" DstPort 4 } Line { SrcBlock "R" SrcPort 1 Points [0, 15] Branch { Points [-155, 0] DstBlock "Moc strumienia wiatru" DstPort 1 } Branch { Points [0, 25] DstBlock "Moc mechaniczna\nuzyskiwana z wiatru" DstPort 1 } } Line { SrcBlock "Zespol napedowy \n(wal + przekadnia)" SrcPort 1 DstBlock "omega_g" DstPort 1 } Line { SrcBlock "v" SrcPort 1 Points [45, 0] Branch { DstBlock "Moc strumienia wiatru" DstPort 2 } Branch { Points [0, 50; 155, 0; 0, -45] DstBlock "Moc mechaniczna\nuzyskiwana z wiatru" DstPort 3 } } Line { SrcBlock "Tg" SrcPort 1 Points [555, 0; 0, 115] DstBlock "Zespol napedowy \n(wal + przekadnia)" DstPort 1 } Line { SrcBlock "Moc mechaniczna\nuzyskiwana z wiatru" SrcPort 2 Points [0, -20; 265, 0; 0, -100] DstBlock "Cp1" DstPort 1 } Line { SrcBlock "Moc mechaniczna\nuzyskiwana z wiatru" SrcPort 3 Points [35, 0; 0, -185] DstBlock "lambda1" DstPort 1 } Annotation { Name "Turbina wiatrowa" Position [476, 36] FontSize 18 } Annotation { Name "[m/s]" Position [73, 191] } Annotation { Name "[m]" Position [267, 143] } Annotation { Name "[rad/s]" Position [835, 235] } Annotation { Name "[deg]" Position [228, 291] } Annotation { Name "[W]" Position [262, 184] } Annotation { Name "[W]" Position [431, 198] } Annotation { Name "[Nm]" Position [596, 210] } Annotation { Name "[rad/s]" Position [834, 199] } Annotation { Name "[Nm]" Position [90, 77] } } } Block { BlockType Scope Name "Tw" Ports [1] Position [665, 254, 695, 286] Location [387, 52, 711, 291] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "0" YMax "85" SaveName "ScopeData2" DataFormat "StructureWithTime" } Block { BlockType Display Name "Tw " Ports [1] Position [675, 305, 765, 335] Decimation "1" } Block { BlockType Display Name "lambda1" Ports [1] Position [685, 420, 775, 450] Decimation "1" } Block { BlockType Scope Name "lambda2" Ports [1] Position [690, 359, 720, 391] Location [89, 137, 413, 376] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "-20" YMax "80" SaveName "ScopeData3" DataFormat "StructureWithTime" } Block { BlockType Scope Name "omega_g" Ports [1] Position [665, 39, 695, 71] Location [30, 349, 354, 588] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "-20" YMax "80" DataFormat "StructureWithTime" } Block { BlockType Display Name "omega_g " Ports [1] Position [665, 85, 755, 115] Decimation "1" } Block { BlockType Display Name "omega_w" Ports [1] Position [665, 195, 755, 225] Decimation "1" } Block { BlockType Scope Name "omega_w " Ports [1] Position [655, 144, 685, 176] Location [36, 133, 360, 372] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "5" YMax "32.5" SaveName "ScopeData1" DataFormat "StructureWithTime" } Block { BlockType Step Name "v" Position [75, 325, 105, 355] Time "300" Before "6" After "8" SampleTime "0" } Line { SrcBlock "Turbina wiatrowa" SrcPort 1 Points [40, 0; 0, -50; -90, 0] Branch { Points [-295, 0; 0, 25] DstBlock "Generator" DstPort 1 } Branch { Points [0, -90; 160, 0] Branch { DstBlock "omega_g" DstPort 1 } Branch { DstBlock "omega_g " DstPort 1 } } } Line { SrcBlock "v" SrcPort 1 Points [310, 0] DstBlock "Turbina wiatrowa" DstPort 2 } Line { SrcBlock "Turbina wiatrowa" SrcPort 2 Points [100, 0; 0, -75] Branch { DstBlock "omega_w " DstPort 1 } Branch { DstBlock "omega_w" DstPort 1 } } Line { SrcBlock "Turbina wiatrowa" SrcPort 3 Points [110, 0] Branch { DstBlock "Tw" DstPort 1 } Branch { Points [0, 10] DstBlock "Tw " DstPort 1 } } Line { SrcBlock "Generator" SrcPort 1 Points [5, 0] DstBlock "Pg" DstPort 1 } Line { SrcBlock "Pg_zad" SrcPort 1 Points [5, 0; 0, 15] DstBlock "Generator" DstPort 2 } Line { SrcBlock "Generator" SrcPort 2 Points [15, 0; 0, 5; 70, 0] DstBlock "Turbina wiatrowa" DstPort 1 } Line { SrcBlock "Turbina wiatrowa" SrcPort 4 Points [65, 0; 0, 40; 60, 0] Branch { DstBlock "lambda2" DstPort 1 } Branch { Points [0, 60] DstBlock "lambda1" DstPort 1 } } Line { SrcBlock "Turbina wiatrowa" SrcPort 5 Points [30, 0; 0, 110; 25, 0] Branch { DstBlock "Cp1" DstPort 1 } Branch { Points [0, 25] DstBlock "Cp3" DstPort 1 } } Line { SrcBlock "Turbina wiatrowa" SrcPort 6 Points [0, 95; -30, 0; 0, 25] Branch { DstBlock "Pww" DstPort 1 } Branch { Points [0, 25] DstBlock "Pww1" DstPort 1 } } Annotation { Name "[m/s]" Position [158, 331] } Annotation { Name "[Nm]" Position [366, 250] } Annotation { Name "[W]" Position [137, 248] } } }