This work proposes the use of Parallel Objects using the model of High Level Parallel Compositions (HLPC) to implement a proposal for parallel simulation of the Nbody Problem using the communication pattern between processes N-Tree under the HLPC Model. Particularly the implementation of the partitioning strategy divide and conquer as part of HLPC using the object orientation paradigm is shown. A HLPC comes from the composition of a set three object types: An object manager that represents the HLPC itself and makes an encapsulated abstraction out of it that hides the internal structure. The object manager controls a set of objects references, which address the object Collector and several Stage objects and represent the HLPC components whose parallel execution is coordinated by the object manager. With the strategy divide and conquer as HLPC the parallel processing technique NTree is used to parallelize sequential code that solve problems that can be partitioned by divide and conquer a N-ary Tree such the N-body problem that concerns with determining the effects of forces between ""bodies"". A case study of the N-body problem in terms of particles charged according to Coloumb’s electrostatic law is shown, which is solved with the implementation of a new HLPC: the Quad-Tree HLPC. Finally the performance analysis of this implementation is shown comparing them with its corresponding sequential implementations to demonstrate their usefulness: programmability and performance.
High Level Parallel Compositions | HLPC | N-ary Tree | N-body Problem | Divide and Conquer | Quad-Tree | Parallel Objects | Structured Parallel Programming