運(yùn)行仿真
概述 - 模擬
SMOCPro仿真模塊提供了一種方法用于評(píng)估所設(shè)計(jì)的控制器在不同控制器整定參數(shù)情況下的性能。此外莫鸭,通過(guò)使用該模塊闹丐,用戶還可以研究控制器的其它屬性,如對(duì)模型誤差的魯棒性(與工廠模型不匹配)被因,抗干擾性能卿拴,設(shè)定點(diǎn)跟蹤,等等梨与。
離線軟件包中的仿真允許你對(duì)指定過(guò)程模型評(píng)估特定控制器的性能堕花。各種各樣的事件可以被仿真。更精確地說(shuō)粥鞋,該模塊提供了以下能力:
?測(cè)試指定控制器缘挽,仿真指定的過(guò)程模型。
?建立包含啟動(dòng)條件和各類事件(設(shè)定點(diǎn)變化呻粹,干擾等)的仿真方案壕曼。
?在選定的方案里分步運(yùn)行仿真。
?使用各種工具分析仿真結(jié)果等浊∪迹可用的工具包括相關(guān)變量的曲線圖,控制器預(yù)期動(dòng)作筹燕,以及不同約束下的動(dòng)態(tài)和靜態(tài)活性轧飞。
在本節(jié)中,我們通過(guò)下面的例子來(lái)工作庄萎。如下示意圖所示踪少,我們研究的過(guò)程是一個(gè)塔:
該過(guò)程模型含有2個(gè)MVs(Reflux(回流量)和Reboil(再沸量)),1個(gè)DV(Feed(進(jìn)料))和8個(gè)CVs(Top(頂部), Rectifying Section(精餾段), Tray 1(塔盤(pán)1)和Bottom(底部) Temperatures(溫度), ΔP1, ΔP2, ΔP3 和 Separation Index(分離指數(shù)))糠涛。我們現(xiàn)在開(kāi)始勾勒設(shè)定一個(gè)仿真方案所需要的步驟援奢,并分析該仿真的結(jié)果。
建立方案
要啟動(dòng)仿真方案忍捡,請(qǐng)單擊樹(shù)狀結(jié)構(gòu)中的Simulation(仿真)節(jié)點(diǎn)集漾。打開(kāi)方案窗口。在這里你可以選擇現(xiàn)有的方案或創(chuàng)建一個(gè)新方案砸脊。
方案窗口字段和按鈕
Scenario Name(方案名稱) 顯示工作區(qū)內(nèi)的方案具篇。
Controller Name(控制器名稱) 與當(dāng)前方案相關(guān)聯(lián)的控制器名稱。
Select Button(選擇按鈕) 選中高亮的方案凌埂。
New Button(新建按鈕) 新建一個(gè)方案驱显。
Delete Button(刪除按鈕) 刪除高亮的方案。
Copy(復(fù)制按鈕) 將高亮的方案作為某個(gè)新方案的模板使用。
創(chuàng)建新方案
單擊New(新建)按鈕后埃疫,打開(kāi)下面的對(duì)話框:
該方案將顯示一個(gè)默認(rèn)名稱伏恐。然而你也可以輸入一個(gè)不同的名稱。當(dāng)你在名稱字段中擁有所需的名稱后栓霜,單擊OK(確定)按鈕完成新方案的創(chuàng)建〈滂耄現(xiàn)在新創(chuàng)建的方案已經(jīng)被添加到可用方案列表。
選擇方案
要在仿真方案窗口中選擇一個(gè)方案:
1.通過(guò)單擊要選擇的方案高亮之胳蛮;
2.單擊Select(選擇)按鈕销凑。
Controller/Model Selection(控制器/模型選項(xiàng))窗口將被打開(kāi)。在此界面上你可以指定用于測(cè)試的控制器以及仿真的過(guò)程模型仅炊。只有已搭建好的控制器才可以進(jìn)行測(cè)試斗幼。同樣,只有編譯好的過(guò)程模型可以用于仿真茂洒。不符合這一標(biāo)準(zhǔn)的過(guò)程模型和控制器將會(huì)變灰色孟岛。
原文:
Running a Simulation
Overview – Simulation
The SMOCPro Simulation module provides a way to evaluate the performance of the designed controller under different controller tuning parameters. Furthermore with the use of this module, the user can also investigate other controller properties such as robustness to modeling errors (plant-model mismatch), disturbance rejection performance, setpoint tracking, et cetera.
The simulator in the offline package allows you to evaluate the performance of a particular controller for a chosen process model. A variety of events may be simulated. More precisely, the module provides the ability to:
? Specify the controller to test and the process model to simulate.
? Set up simulation scenarios including starting conditions and various types of events (setpoint changes, disturbances, etc).
? Run a step-by-step simulation on a chosen scenario.
? Use various tools for analyzing the simulation results. The available tools include plots of relevant variables, anticipated moves of the controller, and dynamic and static activity of the different constraints.
In this section, we will be working with the following example. The process under consideration is a column with the following schematic:
The process model has 2 MVs (Reflux and Reboil), 1 DV (Feed) and 8 CVs (Top, Rectifying Section, Tray 1 and Bottom Temperatures, ΔP1, ΔP2, ΔP3 and Separation Index). We now outline the necessary steps required to setup a simulation scenario and analyze the outcome of such a simulation.
Setting Up a Scenario
To initiate the simulation process, click on the Simulation node in the tree structure. The Scenarios window opens. Here you may select an existing scenario or you may create a new one.
Scenarios Window Fields and Buttons
Scenario Name Displays the scenarios already in the workspace.
Controller Name The name of the controller currently associated with the scenario.
Select Button Select the highlighted scenario.
New Button Create a new scenario.
Delete Button Delete the highlighted scenario.
Copy Use the highlighted scenario as a template for a new scenario.
Creating a New Scenario
After clicking the New button, the following dialog opens
A default name is displayed for the scenario. However, you may enter a different name. When you have the desired name in the name field, click the OK button to finalize the creation of the new scenario. The newly created scenario is now added to the list of available scenarios.
Selecting a Scenario
To select a scenario, in the Simulation-Scenarios window
- Highlight the scenario you want selected by clicking on it.
- Click the Select button.
The Controller/Model Selection window opens. On this screen you specify the controller to test and the process model to simulate. Only controllers already built can be tested. Similarly, only compiled process models can be simulated. Process models and controllers that do not meet this criterion are grayed-out.
2016.10.10