scholarly journals PySPH: A Python-based Framework for Smoothed Particle Hydrodynamics

2021 ◽  
Vol 47 (4) ◽  
pp. 1-38
Author(s):  
Prabhu Ramachandran ◽  
Aditya Bhosale ◽  
Kunal Puri ◽  
Pawan Negi ◽  
Abhinav Muta ◽  
...  

PySPH is an open-source, Python-based, framework for particle methods in general and Smoothed Particle Hydrodynamics (SPH) in particular. PySPH allows a user to define a complete SPH simulation using pure Python. High-performance code is generated from this high-level Python code and executed on either multiple cores, or on GPUs, seamlessly. It also supports distributed execution using MPI. PySPH supports a wide variety of SPH schemes and formulations. These include, incompressible and compressible fluid flow, elastic dynamics, rigid body dynamics, shallow water equations, and other problems. PySPH supports a variety of boundary conditions including mirror, periodic, solid wall, and inlet/outlet boundary conditions. The package is written to facilitate reuse and reproducibility. This article discusses the overall design of PySPH and demonstrates many of its features. Several example results are shown to demonstrate the range of features that PySPH provides.

2012 ◽  
Vol 09 (04) ◽  
pp. 1250057
Author(s):  
S. WANG

In this paper, we propose a Galerkin-based smoothed particle hydrodynamics (SPH) formulation with moving least-squares meshless approximation, applied to solid mechanics and large deformation. Our method is truly meshless and based on Lagrangian kernel formulation and stabilized nodal integration. The performance of the methodology proposed is tested through various simulations, demonstrating the attractive ability of particle methods to handle severe distortions and complex phenomena.


Materials ◽  
2021 ◽  
Vol 14 (16) ◽  
pp. 4530
Author(s):  
Claas Bierwisch

A model for capillary phenomena including temperature-dependency and thermal boundary conditions is presented in the numerical framework of smoothed particle hydrodynamics (SPH). The model requires only a single fluid phase and is therefore computationally more efficient than surface tension schemes which need an explicit fluid-fluid or fluid-gas interface. The model makes use of a surface identification mechanism based on the SPH renormalization tensor. All relevant properties of the continuum surface force (CSF) based approach, i.e., the delta function, normal vector and curvature, are calculated in a consistent manner. The model is parametrized by physical material properties and is successfully validated by means of a large set of analytical test cases. The applicability of the proposed model to more complex scenarios is demonstrated.


2021 ◽  
Vol 945 (1) ◽  
pp. 012009
Author(s):  
Xin Yan Lye ◽  
Akihiko Nakayama ◽  
Zafarullah Nizamani

Abstract Smoothed Particle Hydrodynamics (SPH) method is proposed, as an alternative mesh-free approach to model all components of rainfall, surface runoff, fluid flow and contaminant transport with the representation of contaminant and fluid, as particles. By doing so, contaminant particles can be traced for the motion within runoff or fluid flow, even in the form of minute concentration which is difficult to render in conventional Eulerian grid methods. Weakly compressible SPH (WCSPH) is selected with cubic spline kernel, and the incorporation of Large Eddy Simulation (LES) representing turbulence effect. Various SPH diffusion formulations have been reviewed and selected. The selected SPH formulation for contaminant concentration is validated against analytical diffusion equation with boundary conditions of solid wall or free surface. The validated method is applied to calculate the overland flow and the contaminant transport on a model terrain and a real terrain geometry. The real terrain is a part of the city of Teluk Intan in Perak, Malaysia and is simulated using digital elevation model (DEM) data retrieved from Advanced Spaceborne Thermal Emission and Reflection Radiometer (ASTER) Global Water Body Dataset (ASTWBD) for ground elevation and channel surface.


Sign in / Sign up

Export Citation Format

Share Document