The invention discloses a holographic real-time model operation monitoring method, which comprises the following steps: preset web pages in the specified directory of model engineering files and write control scripts in the preset web pages; intercept each output information of CMD console in real time; encode each output information with HTML language to form formatted web page content; and input each formatted web page content. The output information is appended to the preset web page file; the Web Browser control is loaded in the designated display panel of the main program, and the Web Browser control controls the operation of the designated web page display information. By intercepting all the output information of the CMD console in real time, the output information is saved to the web page and displayed, so as to facilitate the user to track the running process of the model and solve the problem of saving and displaying the output information. The purpose of balance is to load multiple windows in the display panel of the main program, which avoids the traditional way of constantly switching task windows and facilitates users to monitor and control the operation of the model.
【技术实现步骤摘要】
全息实时的模型运行监控方法
本专利技术涉及模型运行监控交互
,具体涉及一种全息实时的模型运行监控方法。
技术介绍
随着人类对自然过程认识的不断深化和计算机技术的不断发展,将具有物理机制的过程模型耦合起来以解决或理解综合性问题,是地球环境科学领域基础研究和技术研发的一个重要趋势。例如,水文-生物地球化学循环联合模拟器SWAT-DayCentCoupler就是通过耦合流域尺度水文过程模型SWAT和生物地球化学循环过程模型DayCent以实现对自然界水-碳-氮等物质循环过程及其相互作用的理解与探索。一般,具有物理机制的过程模型及其耦合模型计算程序复杂,参数众多,需要消耗大量的计算资源;模拟精细化的要求越高,模型运行时间也越长。为了表征模型运行状态并开展模型调试,模型一般都设置了详细的信息输出,全部运行过程通常会产生数十万甚至上百万条的信息输出。为了捕获模型全部的运行状态供用户查看和分析,不但要保存所有的输出信息,而且要关注当前的输出信息。现有技术介绍以SWAT-DayCentCoupler作为复杂耦合模型的例子,其运行过程通常涉及多个程序:Windows的CMD控 ...
【技术保护点】
1.一种全息实时的模型运行监控方法,其特征在于,所述方法步骤包括:在模型工程文件的指定目录下预置网页,并在预置网页中写入控制脚本;实时截取CMD控制台的每条输出信息;用HTML语言对每条输出信息进行编码,形成格式化的网页内容;将每一条格式化后的输出信息追加到预置网页文件中;在主程序的指定显示面板中加载WebBrowser控件,WebBrowser控件控制运行指定的网页展示信息。
【技术特征摘要】
1.一种全息实时的模型运行监控方法,其特征在于,所述方法步骤包括:在模型工程文件的指定目录下预置网页,并在预置网页中写入控制脚本;实时截取CMD控制台的每条输出信息;用HTML语言对每条输出信息进行编码,形成格式化的网页内容;将每一条格式化后的输出信息追加到预置网页文件中;在主程序的指定显示面板中加载WebBrowser控件,WebBrowser控件控制运行指定的网页展示信息。2.根据权利要求1所述的全息实时的模型运行监控方法,其特征在于,所述实时截取CMD控制台的每条输出信息的具体方法是:采用Process对象调用CMD控制台程序,实时截取输出流,逐行将输出信息捕获。3.根据权利要求2所述的全息实时的模型运行监控方法,其特征在于,所述将每一条格式化后的输出信息追加到预置网页文件中的具体方法是:运用编程语言文件中的IO流控制方法将编码后的输出信息逐条...
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。