Prolog is one of the most important candidates to build expert systems and AI-related programs and has potential applications in embedded systems. However, Prolog is not suitable to develop many kinds of components, s...Prolog is one of the most important candidates to build expert systems and AI-related programs and has potential applications in embedded systems. However, Prolog is not suitable to develop many kinds of components, such as data acquisition and task scheduling, which are also crucial. To make the best use of the advantages and bypass the disadvantages, it is attractive to integrate Prolog with programs developed by other languages. In this paper, an IPC-based method is used to integrate backward chaining inference implemented by Prolog into applications or embedded systems. A Prolog design pattern is derived from the method for reuse, whose principle and definition are provided in detail. Additionally, the design pattern is applied to a target system, which is free software, to verify its feasibility. The detailed implementation of the application is given to clarify the design pattern. The design pattern can be further applied to wide range applications and embedded systems and the method described in this paper can also be adopted for other logic programming languages.展开更多
The flow over a backward facing step (BFS) has been taken as a useful proto- type to investigate intrinsic mechanisms of separated flow with heat transfer. However, to date, the open literature on the effect of Rich...The flow over a backward facing step (BFS) has been taken as a useful proto- type to investigate intrinsic mechanisms of separated flow with heat transfer. However, to date, the open literature on the effect of Richardson number on entropy generation over the BFS is absent yet, although the flow pattern and heat transfer characteristic both will receive significant influence caused by the variation of Richardson number in many prac- tical applications, such as in microelectromechanical systems and aerocrafts. The effect of Richardson number on entropy generation in the BFS flow is reported in this paper for the first time. The entropy generation analysis is conducted through numerically solving the entropy generation equation. The velocity and temperature, which are the inputs of the entropy generation equation, are evaluated by the lattice Boltzmann method. It is found that the distributions of local entropy generation number and Bejan number are significantly influenced by the variation of Richardson number. The total entropy gen- eration number is a monotonic decreasing function of Richardson number, whereas the average Bejan number is a monotonic increasing function of Richardson number.展开更多
基于传统热流法,提出一种圆柱坐标系下的源项六流模型(Source Six Flux,SSF),可快速准确地计算参与性介质内任意方向的出射辐射强度.详细介绍SSF模型的基本原理和求解步骤,以圆柱形吸收、散射、发射性介质为例,模拟其沿任意方向的出射...基于传统热流法,提出一种圆柱坐标系下的源项六流模型(Source Six Flux,SSF),可快速准确地计算参与性介质内任意方向的出射辐射强度.详细介绍SSF模型的基本原理和求解步骤,以圆柱形吸收、散射、发射性介质为例,模拟其沿任意方向的出射辐射强度,并与反向蒙特卡罗法(Backward Monte Carlo,BMC)和二流法(Two Flux Method,TFM)的计算结果进行比较.结果表明,SSF法与BMC法的计算结果吻合较好,计算精度均高于TFM法,但SSF法的计算效率明显优于BMC法.因此,SSF模型是一种适用于计算任意方向辐射强度问题的高效数值模型.展开更多
基金supported by the National Natural Science Foundation of China (No.61304111)National Basic Research Program of China (No. 2014CB744904)Fundamental Research Funds for the Central Universities of China (Nos. YWF-14-KKX-001 and YWF-13-JQCJ)
文摘Prolog is one of the most important candidates to build expert systems and AI-related programs and has potential applications in embedded systems. However, Prolog is not suitable to develop many kinds of components, such as data acquisition and task scheduling, which are also crucial. To make the best use of the advantages and bypass the disadvantages, it is attractive to integrate Prolog with programs developed by other languages. In this paper, an IPC-based method is used to integrate backward chaining inference implemented by Prolog into applications or embedded systems. A Prolog design pattern is derived from the method for reuse, whose principle and definition are provided in detail. Additionally, the design pattern is applied to a target system, which is free software, to verify its feasibility. The detailed implementation of the application is given to clarify the design pattern. The design pattern can be further applied to wide range applications and embedded systems and the method described in this paper can also be adopted for other logic programming languages.
基金Project supported by the National Natural Science Foundation of China (Nos. 51176061 and51006043)the Research Foundation for Out standing Young Teachers of Huazhong University of Science and Technology (No. 2012QN168)the Research Fund for the Doctoral Program of Higher Education of China (No. 20100142120048)
文摘The flow over a backward facing step (BFS) has been taken as a useful proto- type to investigate intrinsic mechanisms of separated flow with heat transfer. However, to date, the open literature on the effect of Richardson number on entropy generation over the BFS is absent yet, although the flow pattern and heat transfer characteristic both will receive significant influence caused by the variation of Richardson number in many prac- tical applications, such as in microelectromechanical systems and aerocrafts. The effect of Richardson number on entropy generation in the BFS flow is reported in this paper for the first time. The entropy generation analysis is conducted through numerically solving the entropy generation equation. The velocity and temperature, which are the inputs of the entropy generation equation, are evaluated by the lattice Boltzmann method. It is found that the distributions of local entropy generation number and Bejan number are significantly influenced by the variation of Richardson number. The total entropy gen- eration number is a monotonic decreasing function of Richardson number, whereas the average Bejan number is a monotonic increasing function of Richardson number.
文摘基于传统热流法,提出一种圆柱坐标系下的源项六流模型(Source Six Flux,SSF),可快速准确地计算参与性介质内任意方向的出射辐射强度.详细介绍SSF模型的基本原理和求解步骤,以圆柱形吸收、散射、发射性介质为例,模拟其沿任意方向的出射辐射强度,并与反向蒙特卡罗法(Backward Monte Carlo,BMC)和二流法(Two Flux Method,TFM)的计算结果进行比较.结果表明,SSF法与BMC法的计算结果吻合较好,计算精度均高于TFM法,但SSF法的计算效率明显优于BMC法.因此,SSF模型是一种适用于计算任意方向辐射强度问题的高效数值模型.