实现动态的模型集成与管理是水力模拟云平台HydroMP建设的关键需求,其关键技术包括平台对模型的驱动、平台与模型的数据交换、平台对模型运行的实时控制以及平台对模型的动态管理。为实现水力模拟云平台中不同类型模型的集成,以满足不同用户的需求,设计了具有通用性和"热插拔"的模型集成方法。提出了不改变模型程序原有运行方式的可执行程序(EXE)集成方法和实现模型进程与平台实时通信的可交互集成方法。EXE集成方法无须更改源代码,只需开发数据转换文件即可实现模型集成;可交互集成方法采用标准通信接口程序对模型组件进行封装并生成新的模型程序,然后在平台中注册实现模型集成,可交互集成的模型进程在运行过程中能与云平台实时通信及数据交换。将两种集成方法应用于水动力模拟云平台(HydroMP),实现了不同类型遗产模型的动态集成和管理。
The dynamic integration and management of models are key demands in the construction of the hydro-modeling platform (HydroMP). The corresponding key technologies include a driving model for the platform, data exchange between the model and the platform, real-time control of the model operation and dynamic management of the models. General model integration methods supporting hot-plug modules are used to integrate different types of models into the HydroMP and to meet the needs of different users. An EXE integration method is developed that does not require changes in the existing running mode of the model programs. There is no need to rewrite the original code to realize the model integration using the EXE integration method; only data conversion modules are needed. An interactive integration method is developed that gives real-time communication between model processes and the platform. This interactive integration approach uses a standard communication program to encapsulate the model and generate a new model program. Then, the new model is registered in the platform to realize the model integration and management. The interactive integrated model process provides real-time communication and data exchange with the cloud platform. These two integration methods are applied to the HydroMP to provide dynamic integration and management of different heritage models.
[1] DORTCH M, SCHNEIDER T, MARTIN J, et al. CE-QUAL-RIV1:A dynamic, one-dimensional (longitudinal) water quality model for streams. User's manual (No. WES/IR/E-90-1)[M]. Vicksburg, USA:Army Engineer Waterways Experiment Station, Vicksburg MS Environmental Lab, 1990.
[2] ZHU D J, CHEN Y C, WANG Z Y, et al. Simple, robust, and efficient algorithm for gradually varied subcritical flow simulation in general channel networks[J]. Journal of Hydraulic Engineering, 2011, 137(7):766-774.
[3] THIELEN J, CREUTIN L D. An urban hydrological model with high spatial resolution rainfall from a meteorological model[J]. Journal of Hydrology, 1997, 200(1-4):58-83.
[4] 周浩澜, 陈洋波. 城市化地面二维浅水模拟[J]. 水科学进展, 2011, 22(3):407-412. ZHOU H L, CHEN Y B. 2D shallow-water simulation for urbanized areas[J]. Advances in Water Science, 2011, 22(3):407-412. (in Chinese)
[5] 刘荣华, 魏加华, 翁燕章, 等. HydroMP:基于云计算的水动力学建模及计算服务平台[J]. 清华大学学报(自然科学版), 2014, 54(5):575-583. LIU R H, WEI J H, WENG Y Z, et al. HydroMP:A cloud computing based platform for hydraulic modeling and simulation service[J]. Journal of Tsinghua University (Science and Technology), 2014, 54(5):575-583. (in Chinese)
[6] Danish Hydraulic Institute (DHI). MIKE II:A modeling system for rivers and channels reference manual[R]. Hørsholm, Denmark:Danish Hydraulic Institute (DHI), 2005.
[7] Danish Hydraulic Institute (DHI) Water & Environment. MIKE SHE user guide[Z]. Hørsholm, Denmark:Danish Hydraulic Institute (DHI), 2004.
[8] 魏加华, 李慈君, 王光谦, 等. 地下水数值模型与组件GIS集成研究[J]. 吉林大学学报(地球科学版), 2003, 33(4):534-538. WEI J H, LI C J, WANG G Q, et al. Study on the integration of groundwater numeric model and component GIS[J]. Journal of Jilin University (Earth Science Edition), 2003, 33(4):534-538. (in Chinese)
[9] 李铁键, 刘家宏, 和杨, 等. 集群计算在数字流域模型中的应用[J]. 水科学进展, 2006, 17(6):841-846. LI T J, LIU J H, HE Y, et al. Application of cluster computing in the digital watershed model[J]. Advances in Water Science, 2006, 17(6):841-846. (in Chinese)
[10] 张刚, 解建仓, 罗军刚. 洪水预报模型组件化及应用[J]. 水利学报, 2011, 42(12):1479-1486. ZHANG G, XIE J C, LUO J G. Componentized model of flood forecast and its application[J]. Journal of Hydraulic Engineering, 2011, 42(12):1479-1486. (in Chinese)
[11] 刘云, 李义天, 谈广鸣, 等. 洪水调度模型组件化研究[J]. 中国农村水利水电, 2010(7):117-119. LIU Y, LI Y T, TAN G M, et al. Modularization of flood control models[J]. China Rural Water and Hydropower, 2010(7):117-119. (in Chinese)
[12] WELSH W D, VAZE J, DUTTA D, et al. An integrated modelling framework for regulated river system[J]. Environmental Modelling & Software, 2013, 39:81-102.
[13] CHEN C, CHEN D, YAN Y N, et al. Integration of numerical model and cloud computing[J]. Future Generation Computer Systems, 2018, 79:396-407.
[14] DAVID O, ASCOUGH II J C, LLOYD W, et al. A software engineering perspective on environmental modeling framework design:The object modeling system[J]. Environmental Modelling & Software, 2013, 39:201-213.
[15] RAHMAN J M, SEATON S P, CUDDY S M. Making frameworks more useable:Using model introspection and metadata to develop model processing tools[J]. Environmental Modelling & Software, 2004, 19(3):275-284.