论文部分内容阅读
针对非静压模型计算效率低下的问题,提出一个基于Windows多线程并行计算的非静压水动力学模型.推导了水深平均的非静压水动力学模型方程组;采用分块并行计算的策略,将计算域进行分区并创建两条子线程分别负责两个子区域的计算,利用生产者-消费者模型和线程互锁-解锁机制实现子线程的同步通信.最后通过孤波实验和正弦波实验的算例验证了模型的有效性,结果显示:并行计算方案能有效提高计算效率,比串行程序节省20%~30%的计算时间.
In order to solve the problem of inefficient calculation of non-hydrostatic model, a non-hydrostatic hydrodynamic model based on Windows multithreaded parallel computing is proposed. The hydrostatic non-hydrostatic model equations are deduced with water depth averaged. The strategy of block- , Divides the computing domain and creates two sub-threads which are respectively responsible for the calculation of two sub-regions, using the producer-consumer model and the thread interlocking-unlocking mechanism to realize the synchronous communication of the sub-threads.Finally, through solitary wave experiment and sine wave experiment The example shows the validity of the model. The results show that the parallel computing scheme can effectively improve the computational efficiency and save 20% ~ 30% computation time than the serial program.