Parallel Codes For Solving PDE's: Dasika Sunder, Dipak Vaghani, Ratnesh Shukla
Parallel Codes For Solving PDE's: Dasika Sunder, Dipak Vaghani, Ratnesh Shukla
Parallel Codes For Solving PDE's: Dasika Sunder, Dipak Vaghani, Ratnesh Shukla
The code developed in the current work can solve general time dependent hyperbolic-
parabolic partial differential equations with non-stiff source and non-conservative prod-
uct terms on cartesian meshes.The general form of the equations is
∂Q
+ ∇ · F(Q, ∇Q) + B(Q) · ∇Q = S(Q) (1)
∂t
In the above equation, Q is vector of conservative variables, F(Q, ∇Q) is the conservative
flux, B(Q) · ∇Q is the non-conservative term and S(Q) is the non-stiff source term.
A large number partial differential equations of practical significance can be cast in
this form. These include, advection equation, Burgers’ equation, compressible Navier-
Stokes equations, various multiphase flow models including the Baer-Nunziato model for
deflagration-to-detonation transition, shallow water equations, acoustic wave equations,
diffuse interface models and magneto-hydrodynamic equations to name a few.
3. First to fourth order of accuracy for discretization in both space and time can be
chosen using a single parameter
5. To solve any PDE, only definitions of Q, F(Q, ∇Q), B(Q) and S(Q) need to be
given. The discretization details are handled automatically.
1
Scalability Study
To study scalability of the code we will solve two dimensional Baer-Nunziato equa-
tions for compressible multiphase flows. The test case considered is a smooth vortex
in a domain [x, y] ∈ [−10, 10] × [−10, 10] with periodic boundary conditions on all the
boundaries. In this study, the problem is fixed (a mesh with 1500 × 1500 cells and a final
time of t = 10 which corresponds to one cycle of the vortex through the domain) and
vary the number of processors. The time taken for each simulation is tabulated below.
Table 1: Time taken for the simulation, when different number of processors are used
100,000
Total time (seconds)
10,000
1,000
As can be seen from the above figure, a very good scalability is achieved. This test has
been performed on the CRAY-XC40 machine in SERC department at IISc.