Donna Calhoun, Department of Mathematics, Boise State University
Coupling scientific software through the adaptive tree-based library ForestClaw
Coupling scientific research codes presents several challenges. 聽The codes may not be on the same mesh, so results from each simulation must be communicated between meshing environments. Each simulation likely comes with its own set of parameter options that potentially conflict with one another, or at the very least are difficult to encapsulate, especially for simlulation environments which are intended to be run as stand-alone applications. 聽Finally, each simulation will have its own time stepping scheme, and step size restrictions, making it awkward for the multiple simulations to interact in a natural way. We introduce a potential solution to this problem by proposing a framework for scientific simulations that addresses some of these challenges. 聽Our software library, ForestClaw is a parallel adaptive library based on the quadtree/octree mesh management library p4est (C. Burstedde, L. Wilcox, et al.). 聽Scientific software that can be configured to solve on local Cartesian patches occupying the quadrants or octants of an adaptive mesh can then be coupled through new features in ForestClaw which allow distinct p4est meshes to communication information. This mechanism provides "overlap exchange" functionality that allows 2d and 3d meshes, which may overlap, but not occupy the same physical coordinates to exchange data. 聽Through time stepping mechanisms that allow time stepping of each simulation to pause at synchronization points, data between multiple simulations can be exchanged. 聽This run-time coupling allows the simulations to run in the same executable, but with individual and completely encapsulated set of configuration parameters. We illustrate results on a simple academic problem, as well as the FIGMENTS code, a coupled atmosphere/ionosphere code built on the ForestClaw coupling strategy. 聽This is joint work with the Embry-Riddle Aeronautics University (Daytona, FL), and funded through a DARPA award.聽