Coupled applications on distributed resources

Peter V. Coveney, Gianni De Fabritiis, Matt J. Harvey, Stephen Pickles, Andrew R. PorterComput. Phys. Commun 2006

Abstract

Coupled models are set to become increasingly important in all aspects of science and engineering as tools with which to study complex systems in an integrated manner. Such coupled, hybrid simulations typically communicate data between the component models of which they are comprised relatively infrequently, and so a Grid is expected to present an ideal architecture on which to run them. In the present paper, we describe a simple, flexible and extensible architecture for a two-component hybrid molecular-continuum coupled model (hybrid MD). We discuss its deployment on distributed resources and the extensions to the RealityGrid computational-steering system to handle coupled models.

Introduction

In computational science, multi-scale modeling is essential for studying complex systems where high-resolution detail is required in specific regions while coarser models suffice elsewhere. For instance, studying fluid flow in nano-channels requires Molecular Dynamics (MD) to capture individual atomic interactions, yet simulating an entire system at this resolution is computationally prohibitive. The solution is to "couple" an MD model for critical regions with a coarser Hydrodynamics (Hydro) model for the rest of the domain.

However, traditional coupling often leads to "monolithic" programs that are difficult to maintain and scale. Furthermore, running these components across distributed Grid resources introduces logistical challenges, such as firewall restrictions and synchronization issues across remote servers. This paper proposes a component-based architecture designed to overcome these hurdles.

Methodology and Architecture

The proposed architecture relies on three key innovations to enable flexible, distributed multi-scale simulations:

The HybridSwitch

Instead of direct communication between MD and Hydro components, which is often blocked by firewalls, both components connect to a central "HybridSwitch" service. This switch uses a "store and forward" message-passing scheme. Because compute nodes only make outgoing connections to the switch, it bypasses most network security issues typical of Grid environments.

The HybridSwitch architecture facilitates communication between independent MD and Hydro components through a central hub.

RealityGrid Steering

The authors utilize the RealityGrid framework to "instrument" the codes, allowing researchers to use a remote steering client to monitor progress and adjust parameters, such as temperature, on the fly. This is facilitated by a hierarchical Steering Web Service (SWS) architecture. A "Parent SWS" aggregates data from individual components, presenting the entire complex system as a single application with a unified set of controls to the user.

Synchronization and Mapping

To ensure physical consistency, XML metadata is used to map different internal variables to global controls (e.g., mapping T_target in MD and desiredTemp in Hydro to a single targetTemp slider). Synchronization is maintained by tagging steering actions with a target simulated time, ensuring changes are applied at the same logical moment across all components.

Experimental Validation

The architecture was validated using a Couette flow numerical experiment. The setup involved a 3D domain where the center cells were simulated using MD and the surrounding cells used continuum fluctuating hydrodynamics. A fluid was placed between two walls, with the left wall moving at a constant velocity while the right wall remained stationary.

Visualization of the hybrid MD-Hydro simulation showing the velocity profile across the domain cells.

The simulation successfully modeled momentum transfer across the MD-Hydro interface. The results correctly matched the analytical solution for Couette flow, demonstrating a linear decay of the velocity profile across the cells. Additionally, the system proved capable of real-time performance monitoring, detecting artificial loads on remote machines—a precursor to automated job migration.

Discussion and Future Work

While the HybridSwitch introduces some latency, it provides a pragmatic solution for loosely coupled models on the Grid. Current limitations include the manual nature of job migration and potential synchronization loss if a component fails. Future work will focus on automating migration via checkpoints and increasing the robustness of the synchronization mechanism. Furthermore, the ability to tag actions with simulated time opens the door for "scripted steering," where pre-written instructions can guide simulations through complex phases automatically.

Summary updated

BibTeX
@inproceedings{coveney2006coupled,
  author = {Peter V. Coveney and Gianni De Fabritiis and Matt J. Harvey and Stephen Pickles and Andrew R. Porter},
  title = {{Coupled applications on distributed resources}},
  booktitle = {Comput. Phys. Commun},
  year = {2006},
  url = {https://openreview.net/forum?id=9NV8rPtDKV},
}
Figure