没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
大连理工大学专业学位硕士学位论文
- I -
摘 要
为保证核动力装置安全稳定地运行,避免重大事故的发生,需要预先对其进行仿真
分析。RELAP5 是轻水堆冷却系统事故工况的瞬态行为最佳估算程序,涵盖了整个轻水
堆系统的瞬态分析,被广泛应用于核动力装置仿真模拟。但 RELAP5 程序无法对复杂控
制系统进行仿真分析,且人机交互界面和仿真数据存储方面不够完善。因此,本文设计
了基于 RELAP5 和 MATLAB 程序的联合仿真系统,其数据交互采用 SOCKET 方式,利
用 MySQL 数据库存储仿真数据,设计客户端界面提升人机交互属性,并利用设计好的
联合仿真系统实现模糊控制算法,验证了联合仿真系统的实用性及可扩展性。
本文首先分析了核动力装置一回路的结构,对一回路关键设备进行建模,以秦山核
电站为参考对象,使用 RELAP5 程序对一回路模型进行搭建,并进行了稳态验证计算。
然后设计了基于 SOCKET 的 RELAP5 与 MATLAB 程序的数据交互接口,采用 UDP 协
议进行通信,分别在 RELAP5 端和 MATLAB 端对数据收发进行了处理。使用 MySQL
数据库对仿真结果进行存储,同时对部分字段添加索引增加查询速度。设计了基于 Qt 的
仿真系统前端界面,包括用户登录、可视化修改输入、运行或终止程序、仿真结果分析
等功能。为了实现远程访问数据库,设计了基于 HTTP 协议的 WEB 服务器,在浏览器
中输入 URL 后便可远程访问仿真结果,并利用多线程技术优化 WEB 服务器。将 RELAP5
中的控制器在 SIMULINK 中实现,设计了 SIMULINK 与 MATLAB 中的 Base Workspace
实时交互方法,仿真结果验证了联合仿真系统的实用性。利用设计好的联合仿真系统基
于模糊控制算法设计蒸汽发生器水位控制器,并在升负荷和降负荷工况验证控制效果,
其仿真结果既体现了联合仿真系统的实用性,也体现了其可扩展性。
关键词:核动力装置; RELAP5;联合仿真;MATLAB
核动力装置联合仿真系统构建与控制器设计
- II -
Co-Simulation System Construction and Controller Design of
Nuclear Power Plant
Abstract
In order to ensure the safety and stability of nuclear power plants and avoid major
accidents, it is necessary to conduct simulation analysis on them in advance. RELAP5 is the
best estimation program for the transient behavior of the light water reactor cooling system
accident conditions covering the transient analysis of the entire light water reactor system,
which is widely used in the simulation of nuclear power plants. However, the RELAP5 program
cannot conduct simulation analysis on complex control systems. The human-machine interface
and storage of simulation results are not perfect enough. Therefore, this paper designs a co-
simulation system based on the platform of the RELAP5 and MATLAB whose data interaction
is realized by the application of SOCKET. MySQL database realizes the function of storing
simulation data. In addition, it also designs the client interface to improve the attributes of
human-machine interaction. Using the co-simulation system to realize the fuzzy control algorith
which verifies the practicability and scalability of the system.
This paper firstly analyzes the structure of the primary circuit of the nuclear power plant
and builds the modelling of the key equipment of the primary circuit. Referring to the model
parameters of Qinshan Nuclear Power Station, the primary loop models are built by RELAP5
program and the steady-state verification calculation is carried out on the model. The data
interaction between RELAP5 and MATLAB is designed based on SOCKET whose
communication is carried out by UDP protocol. The data receiving and sending on the terminal
of RELAP5 and MATLAB are processed respectively. MySQL database is used to store
simulation results and add indexes to some fields to increase the query speed. The front-end
interface of the simulation system based on Qt is designed, including functions such as user
login, visual modification input, running or terminating the program, and simulation result
analysis. In order to achieve remote access to the database, the WEB server based on HTTP
protocol is designed. When entering a URL in the browser, it can remotely access the simulation
results and use multi-threading technology to optimize the WEB server. The controller in
RELAP5 is implemented in SIMULINK and a real-time interaction method between
SIMULINK and Base Workspace of MATLAB is designed. The simulation results verify the
practicability of the co-simulation system. The well-designed co-simulation system, which
designs the steam generator water level controller based on the fuzzy control algorithm, is used
大连理工大学专业学位硕士学位论文
- III -
to verify the effect under the conditions of increasing load and decreasing load condition, which
can reflect both the practicability and scalability of the co-simulation system.
Key Words:Nuclear Power Plant; RELAP5; Co-Simulation; MATLAB
核动力装置联合仿真系统构建与控制器设计
- IV -
目 录
摘 要 ........................................................................................................................ I
Abstract ......................................................................................................................... II
1 绪论 ..........................................................................................................................1
1.1 研究背景及意义 ............................................................................................1
1.2 国内外发展现状 ............................................................................................1
1.2.1 RELAP5 的应用与功能扩展 ..............................................................1
1.2.2 智能控制理论在核动力装置的应用...................................................3
1.2.3 联合仿真系统设计与实现 ..................................................................4
1.3 本文主要工作 ................................................................................................5
2 基于 RELAP5 的核反应堆一回路建模 ...................................................................7
2.1 RELAP5 程序结构分析 .................................................................................7
2.1.1 RELAP5 输入卡格式 ..........................................................................7
2.1.2 RELAP5 程序整体结构 ......................................................................9
2.2 核反应堆一回路系统模型........................................................................... 10
2.2.1 核动力装置系统结构 ........................................................................ 10
2.2.2 反应堆原理与动态方程 .................................................................... 11
2.2.3 蒸汽发生器原理与动态方程 ............................................................ 12
2.2.4 稳压器工作原理 ............................................................................... 13
2.3 基于 RELAP5 的一回路建模 ...................................................................... 14
2.4 本章小结 ..................................................................................................... 17
3 联合仿真系统数据交互与存储 ............................................................................. 18
3.1 联合仿真系统整体结构 .............................................................................. 18
3.2 RELAP5 与 MATLAB 程序的数据交互 ..................................................... 19
3.2.1 SOCKET 通信原理与协议选择 ........................................................ 19
3.2.2 RELAP5 程序端实现 SOCKET 通讯 ............................................... 21
3.2.3 MATLAB 端实现 SOCKET 通讯 ..................................................... 26
3.3 基于 MySQL 的数据存储 ........................................................................... 27
3.3.1 MySQL 数据库特点 ......................................................................... 27
3.3.2 MySQL 数据库实现数据存储 .......................................................... 27
3.3.3 MySQL 数据库索引优化 .................................................................. 29
大连理工大学专业学位硕士学位论文
- V -
3.4 本章小结 ..................................................................................................... 30
4 联合仿真系统客户端设计 ..................................................................................... 31
4.1 基于 Qt 的仿真系统前端设计 ..................................................................... 31
4.1.1 Qt 程序使用优势 .............................................................................. 31
4.1.2 前端界面总体结构 ........................................................................... 31
4.1.3 登录界面实现 ................................................................................... 33
4.1.4 输入模块实现 ................................................................................... 34
4.1.5 运行程序与仿真结果查看 ................................................................ 37
4.2 基于 HTTP 协议的 WEB 服务器 ................................................................ 42
4.2.1 HTTP 协议分析 ................................................................................ 42
4.2.2 WEB 服务器实现 ............................................................................. 44
4.2.3 多线程优化 WEB 服务器 ................................................................. 50
4.3 本章小结 ..................................................................................................... 52
5 联合仿真系统控制器设计与验证.......................................................................... 53
5.1 RELAP5 原始控制器结构 ........................................................................... 53
5.2 SIMULINK 中 RELAP5 原始控制器的实现 .............................................. 55
5.2.1 SIMULINK 与 Base Workspace 实时交互 ........................................ 55
5.2.2 联合仿真系统中实现控制器 ............................................................ 56
5.2.3 升降负荷过程模拟 ........................................................................... 59
5.3 基于模糊控制理论的水位控制器设计 ....................................................... 61
5.3.1 模糊控制理论基础 ........................................................................... 61
5.3.2 水位控制器设计 ............................................................................... 62
5.4 水位控制器仿真结果分析........................................................................... 65
5.5 本章小结 ..................................................................................................... 67
结 论 ...................................................................................................................... 68
参 考 文 献 ................................................................................................................ 69
致 谢 ...................................................................................................................... 72
大连理工大学学位论文版权使用授权书 .................................................................... 73
剩余77页未读,继续阅读
资源评论
2301_77550592
- 粉丝: 17
- 资源: 7165
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功