Scientific computing libraries,whether in-house or open-source,have witnessed enormous progress in both engineering and scientific research.Therefore,it is important to ensure that modifications to the source code,pro...Scientific computing libraries,whether in-house or open-source,have witnessed enormous progress in both engineering and scientific research.Therefore,it is important to ensure that modifications to the source code,prompted by bug fixing or new feature development,do not compromise the accuracy and functionality that have been already validated and verified.This paper introduces a method for establishing and implementing an automatic regression test environment,using the open-source multi-physics library SPHinXsys as an illustrative example.Initially,a reference database for each benchmark test is generated from observed data across multiple executions.This comprehensive database encapsulates the maximum variation range of metrics for different strategies,including the time-averaged,ensemble-averaged,and dynamic time warping methods.It accounts for uncertainties arising from parallel computing,particle relaxation,physical instabilities,and more.Subsequently,new results obtained after source code modifications undergo testing based on a curve-similarity comparison against the reference database.Whenever the source code is updated,the regression test is automatically executed for all test cases,providing a comprehensive assessment of the validity of the current results.This regression test environment has been successfully implemented in all dynamic test cases within SPHinXsys,including fluid dynamics,solid mechanics,fluid-structure interaction,thermal and mass diffusion,reaction-diffusion,and their multi-physics couplings,and demonstrates robust capabilities in testing different problems.It is noted that while the current test environment is built and implemented for a particular scientific computing library,its underlying principles are generic and can be easily adapted for use with other libraries,achieving equal effectiveness.展开更多
The scientific field test site of rainfall-soil moisture-groundwater conversion in Dabie Mountain Area–Jianghan Plain is located in the northern region of the Jianghan Plain,the transition zone between the Dabie Moun...The scientific field test site of rainfall-soil moisture-groundwater conversion in Dabie Mountain Area–Jianghan Plain is located in the northern region of the Jianghan Plain,the transition zone between the Dabie Mountain Area and Jianghan Plain.It’s a great field test site to study the material and energy exchange among rainfall,soil moisture,and groundwater of the Earth’s critical zone in subtropical monsoon climate plain areas.This paper analyzed the connection between rainfall and volume water content(VWC)of soil at different depths of several soil profiles,and the dynamic feature of groundwater was discussed,which reveals the rainfall infiltration recharge of Quaternary Upper Pleistocene strata.The results show that the Quaternary Upper Pleistocene aquifer groundwater accepts a little direct rainfall recharge,while the lateral recharge is the main supplement source.There were 75 effective rainfall events among 120 rainfall events during the monitoring period,with an accumulated amount of 672.9 mm,and the percentages of effective rainfall amount and duration time were 62.50%and 91.56%,respectively.The max evaporation depth at the upper part in Quaternary cohesive soil was no less than 1.4 m.The soil profile was divided into four zones:(1)The sensitive zone of rainfall infiltration within 1.4 m,where the material and energy exchange frequently near the interface between atmosphere and soil;(2)the buffer zone of rainfall infiltration between 1.4 m and 3.5 m;(3)the migration zone of rainfall infiltration between 3.5 m and 5.0 m;and(4)the rainfall infiltration and groundwater level co-influenced zone below 5.0 m.The results revealed the reaction of soil moisture and groundwater to rainfall in the area covered by cohesive soil under humid climate in Earth’s critical zone,which is of great theoretical and practical significance for groundwater resources evaluation and development,groundwater environmental protection,ecological environmental improvement,drought disaster prevention,and flood disaster preventio展开更多
基金supported by the China Scholarship Council(Grant No.202006230071)the Deutsche Forschungsgemeinschaft(DFG)(Grant No.DFG HU1527/12-4).
文摘Scientific computing libraries,whether in-house or open-source,have witnessed enormous progress in both engineering and scientific research.Therefore,it is important to ensure that modifications to the source code,prompted by bug fixing or new feature development,do not compromise the accuracy and functionality that have been already validated and verified.This paper introduces a method for establishing and implementing an automatic regression test environment,using the open-source multi-physics library SPHinXsys as an illustrative example.Initially,a reference database for each benchmark test is generated from observed data across multiple executions.This comprehensive database encapsulates the maximum variation range of metrics for different strategies,including the time-averaged,ensemble-averaged,and dynamic time warping methods.It accounts for uncertainties arising from parallel computing,particle relaxation,physical instabilities,and more.Subsequently,new results obtained after source code modifications undergo testing based on a curve-similarity comparison against the reference database.Whenever the source code is updated,the regression test is automatically executed for all test cases,providing a comprehensive assessment of the validity of the current results.This regression test environment has been successfully implemented in all dynamic test cases within SPHinXsys,including fluid dynamics,solid mechanics,fluid-structure interaction,thermal and mass diffusion,reaction-diffusion,and their multi-physics couplings,and demonstrates robust capabilities in testing different problems.It is noted that while the current test environment is built and implemented for a particular scientific computing library,its underlying principles are generic and can be easily adapted for use with other libraries,achieving equal effectiveness.
基金the project“1:50000 regional hydrogeological survey in the Dabie Mountains contiguous destitute area”(121201009000172522)from Wuhan Center of Geological Survey,China Geological Survey(CGS).
文摘The scientific field test site of rainfall-soil moisture-groundwater conversion in Dabie Mountain Area–Jianghan Plain is located in the northern region of the Jianghan Plain,the transition zone between the Dabie Mountain Area and Jianghan Plain.It’s a great field test site to study the material and energy exchange among rainfall,soil moisture,and groundwater of the Earth’s critical zone in subtropical monsoon climate plain areas.This paper analyzed the connection between rainfall and volume water content(VWC)of soil at different depths of several soil profiles,and the dynamic feature of groundwater was discussed,which reveals the rainfall infiltration recharge of Quaternary Upper Pleistocene strata.The results show that the Quaternary Upper Pleistocene aquifer groundwater accepts a little direct rainfall recharge,while the lateral recharge is the main supplement source.There were 75 effective rainfall events among 120 rainfall events during the monitoring period,with an accumulated amount of 672.9 mm,and the percentages of effective rainfall amount and duration time were 62.50%and 91.56%,respectively.The max evaporation depth at the upper part in Quaternary cohesive soil was no less than 1.4 m.The soil profile was divided into four zones:(1)The sensitive zone of rainfall infiltration within 1.4 m,where the material and energy exchange frequently near the interface between atmosphere and soil;(2)the buffer zone of rainfall infiltration between 1.4 m and 3.5 m;(3)the migration zone of rainfall infiltration between 3.5 m and 5.0 m;and(4)the rainfall infiltration and groundwater level co-influenced zone below 5.0 m.The results revealed the reaction of soil moisture and groundwater to rainfall in the area covered by cohesive soil under humid climate in Earth’s critical zone,which is of great theoretical and practical significance for groundwater resources evaluation and development,groundwater environmental protection,ecological environmental improvement,drought disaster prevention,and flood disaster preventio