Paralelism in the RealESSI Simulator
by: José Abell
Paralelism in the RealESSI Simulator
Introduction
The Real ESSI Simulator[1 and 2] is a system for simulation of ESSI (EarthquakeSoilStructure Interaction) problems developed at the UC Davis computational geomechanics group CompGeoMech. The main program is a parallel objectoriented finite element analysis (FEA) software for nonlinear time domain analysis of ESSI systems. The program is written in C++, using several external libraries to accomplish its goals, most notably OpenMPI (message passing interface) is used to achieve parallelism. Other libraries used within ESSI include: PETSc for parallel solution of system of equations, METIS and ParMETIS for graph partitioning, HDF5 for output. Input is controlled by a custom domainspecific language designed by me specifically for this program.
The software is meant to target a range of platforms from personal computers (desktop, laptop) to highperformance clusters and supercomputers.
Parallelism in FEA
(Left and middle) Nuclear power plant model showing different areas, (right) domain decomposition of model.
Two main sources of parallelism can be identified in the context of nonlinear, dynamic finite element simulation: (i) system of equation solution and (ii) elementlevel constitutive integration. The first of these consists in the solution of a large linear system of equations (SOE) which arises from the discretization of the continuum problem (expressed as a set of coupled partial differential equations) in the spatial domain. The second source, comes from advancing the constitutive rate equations within each element once a global displacement increment is obtained from the solution of the SOE. This last part can account for a large part of the computational time for large problems and is embarrassingly parallel.
An additional source of parallelism in ESSI simulations is the storage of the large ammounts of output generated by these simulations. The philosophy adopted by the ESSI simulator is to independently store the information necessary to build the model and restart the simulation at any given point. This gives rise to possibly terabytes of data in even modest models, with the additional problem on how to handle this. In ESSI this is done by using a network filesystem (NFS) to create a virtual parallel unique disk and the HDF5 format to store the data. In a nutshell, HDF5 implements a format for storing scientific (arrayoriented) data in a portable way, and also allowing parallel read/write (it uses MPI I/O under the hood).
A particularity of nonlinear (plasticity based) FEA simulation is the unknown parts of the domain may plastify during simulations, leading to increased time spent integrating constitutive equations in that portion of the domain. What this implies is that, given an initial partition that balances the loading, this partition might become unbalanced if the domain plastifies. An adaptation of the dynamic domain decomposition method termed the “plastic domain decomposition”[3] or PDD, which achieves computational load rebalancing by repartitioning the element graph using computational time as one of the weighting factors.
Implementation of Parallel Paradigms in RealESSI
PDD is implemented in ESSI using the Actor/Shadow model of concurrency. Actors are autonomous and concurrently executing objects which execute asynchronously. Actors can create new actors and can send messages to other actors. The Actor model is an ObjectOriented version of message passing in which the Actors represent processes and the methods sent between Actors represent communications (verbatim from [4]).
Shadowactors are the means in which actors communicate. Shadowactors are objects which represent each running actor (remote) in a particular machine’s local address space. Shadow actors are in charge of transmitting and receiving messages from other actors and effectively encapsulate all MPI calls. In the objectoriented design of ESSI this model allows reuse of code and modularity when programming using MPI.
References

Boris Jeremić, Robert RocheRivera, Annie Kammerer, Nima Tafazzoli, Jose Abell M., Babak Kamranimoghaddam, Federico Pisano, ChangGyun Jeong and Benjamin Aldridge The NRC ESSI Simulator Program, Current Status in Proceedings of the Structural Mechanics in Reactor Technology (SMiRT) 2013 Conference, San Francisco, August 1823, 2013.

Boris Jeremić, Guanzhou Jie, Matthias Preisig and Nima Tafazzoli. Time domain simulation of soilfoundationstructure interaction in nonuniform soils. Earthquake Engineering and Structural Dynamics, Volume 38, Issue 5, pp 699718, 2009.

Boris Jeremić and Guanzhou Jie. Plastic Domain Decomposition Method for Parallel Elastic–Plastic Finite Element Computations in Geomechanics Report UCD CompGeoMech 03–2007.

Lecture Notes on Computational Geomechanics: Inelastic Finite Elements for Pressure Sensitive Materials, UC Davis, CompGeoMech group