In this work, we report on strategies and results of our initial approach for modernization of Titan2D code. Titan2D is a geophysical mass flow simulation code designed for modeling of volcanic flows, debris avalanche...
详细信息
ISBN:
(数字)9783030343569
ISBN:
(纸本)9783030343569;9783030343552
In this work, we report on strategies and results of our initial approach for modernization of Titan2D code. Titan2D is a geophysical mass flow simulation code designed for modeling of volcanic flows, debris avalanches and landslides over a realistic terrain model. It solves an underlying hyperbolic system of partial differential equations using parallel adaptive mesh Godunov scheme. The following work was done during code refactoring and modernization. To facilitate user input two level python interface was developed. Such design permits large changes in C++ and python low-level while maintaining stable high-level interface exposed to the end user. Multiple diverged forks implementing different material models were merged back together. Data storage layout was changed from a linked list of structures to a structure of arrays representation for better memory access and in preparation for further work on better utilization of vectorized instruction. Existing MPI parallelization was augmented with OpenMP parallelization. The performance of a hash table used to store mesh elements and nodes references was improved by switching from a linked list for overflow entries to dynamic arrays allowing the implementation of the binary search algorithm. The introduction of the new data layout made possible to reduce the number of hash table look-ups by replacing them with direct use of indexes from the storage class. The modifications lead to 8-9 times performance improvement for serial execution.
This Coastal and Hydraulics Engineering Technical Note describes the approach, methodology, and utilities of a python code to flexibly create finite element meshes for a single catchment, multiple catchments, or an en...
详细信息
This Coastal and Hydraulics Engineering Technical Note describes the approach, methodology, and utilities of a python code to flexibly create finite element meshes for a single catchment, multiple catchments, or an entire watershed. This tool was developed with the intent of model development for rapid responses with an emphasis on Adaptive Hydraulics 5.0 Diffusive Wave AdH-DW applications, though any numerical code that uses an unstructured mesh could be applied.
暂无评论