Skip to content

mini-walker/SPH-2D

Repository files navigation

SPH (Smooth-particle Hydrodynamic)

1. 📘 About This Code

The solver is based on the Smoothed Particle Hydrodynamics (SPH) method for solving the weakly compressible Navier–Stokes equations.

1.1 ✨ Features

  • Parallelization:

    • MPI (Message Passing Interface)
    • OpenMP (shared memory parallelism)
  • Supports various boundary conditions:

    • Non-reflecting boundary condition

    • Wave generation

    • Wave damping zone

    • Periodic boundaries

    • Inlet/outlet boundaries

    • No-slip and free-slip wall boundaries

  • Output formats:

    • Tecplot (Binary / ASCII)

    • ParaView (VTK)

1.2 🎯 Purpose

This code is intended as a learning tool for students and researchers interested in SPH methods. Feel free to explore, modify, and learn from it.

Hope it helps you in your SPH journey!

2. Example of Simulation Results

2.1 Moving box inside a rectangular box

2.1.1 Gif

  • Re = 50

Description

  • Re = 100

Description

  • Re = 150

Description

2.1.2 Contours

  • Contour of velocity in various Re = 50, 100 and 150.

Description

Description

2.2 Flow past a cylinder

Flow-past-a-cylinder.mp4

2.3 Flow past a square

Flow-past-a-box.mp4

3. Publication and Citation

3.1 📄 Publication

Followings are our publications:

  • Jiang, H., Chen, Y., Zheng, X., Jin, S., & Ma, Q. (2020). A Study on Stable Regularized Moving Least‐Squares Interpolation and Coupled with SPH Method. Mathematical Problems in Engineering, 2020(1), 9042615. [Link]

  • Jin, S. Q., Zheng, X., Duan, W. Y., & Niu, K. N. (2015). A new boundary treatment method for smoothed particle hydrodynamics. Procedia Engineering, 126, 655-659. [Link]

3.2 📚 Citation (BibTeX)

@article{jin2015new,
  title={A new boundary treatment method for smoothed particle hydrodynamics},
  author={Jin, Shan-Qin and Zheng, Xing and Duan, Wen-Yang and Niu, Kang-Ning},
  journal={Procedia Engineering},
  volume={126},
  pages={655--659},
  year={2015},
  publisher={Elsevier}
}

@article{jiang2020study,
  title={A Study on Stable Regularized Moving Least-Squares Interpolation and Coupled with SPH Method},
  author={Jiang, Hua and Chen, Yunsai and Zheng, Xing and Jin, Shanqin and Ma, Qingwei},
  journal={Mathematical Problems in Engineering},
  volume={2020},
  number={1},
  pages={9042615},
  year={2020},
  publisher={Wiley Online Library}
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published