Coder Social home page Coder Social logo

zhiyu2020 / sphinxsys Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xiangyu-hu/sphinxsys

0.0 0.0 0.0 179.98 MB

SPHinXsys provides C++ APIs for engineering simulation and optimization. It aims at complex systems driven by fluid, structure, multi-body dynamics and beyond. The multi-physics library is based on a unique and unified computational framework by which strong coupling has been achieved for all involved physics.

Home Page: https://www.sphinxsys.org/

License: Apache License 2.0

C++ 89.05% Python 3.23% C 1.50% HTML 0.01% PostScript 2.47% CMake 3.60% Batchfile 0.02% Dockerfile 0.13%

sphinxsys's Introduction

SPHinXsys Logo SPHinXsys

Notice on repository transfer to SPHinXsys team

In order to promoting open-source democratization, this repository will be transferred to the SPHinXsys team in the next few weeks. After the transfer, the decision-making process for SPHinXsys will be made by a number of project leaders from different institutions.

Project status
License Linux Windows macOS ci workflow

Project communication
Twitter YouTube Bilibili

Description

SPHinXsys (pronunciation: s'fink-sis) is an acronym from Smoothed Particle Hydrodynamics for industrial compleX systems. The multi-physics library uses SPH (smoothed particle hydrodynamics) as the underlying numerical method for both particle-based and mesh-based discretization. Due to the unified computational framework, SPHinXsys is able to carry out simulation and optimization at the same time. For more information on the SPHinXsys project, please check the project website: https://www.sphinxsys.org.

Examples at a glance

Using SPHinXsys library, straightforward and fast multi-physics modeling can be achieved. Here, we present several short examples in flow, solid dynamics, fluid structure interactions (FSI) and dynamic solid contact.

Fully compatible to classical FVM method

Through the unified computational framework in SPHinXsys, the algorithms for particle methods are full compatible to those in the classical finite volume method (FVM). The following gives an example of the flow around cylinder problem solved by FVM in SPHinXsys.

Note that the code for FVM algorithm is exact the same one for particle interaction in SPHinXsys. The only difference is that SPHinXsys reads a predefined mesh, other than generate particles, before the computation.

Target-driven optimization

The unique target-driven optimization is able to achieve the optimization target and physical solution all-in-once, which is able to accelerate optimization process greatly. The following gives an example of optimizing the conductivity distribution for a thermal domain problem targeting minimum average temperature.

Note that the physical solution of the thermal domain (right) and the optimal distribution of conductivity (left) are obtained at the same time when optimization is finished. Also note that the entire optimization process is very fast and only several times slower than that for a single physical solution with given conductivity distribution.

Python interface

While SPHinXsys is written in C++, it provides a python interface for users to write python scripts to control the simulation, including carry out regression tests for continuous integration (CI) and other tasks. One example is given below for the dambreak case. Please check the source code of 2D Dambreak case with python interface for the usage.

Heterogenous computing

Recently, we have a preview release for the heterogeneous computing version of SPHinXsys. By using SYCL, a royalty-free open standard developed by the Khronos Group that allows developers to program heterogeneous architectures in standard C++, SPHinXsys is able to utilize the power of GPU. Please check the Preview Release and the SYCL branch for details.

Publications

Main publication on the library:

  1. C. Zhang, M. Rezavand, Y. Zhu, Y. Yu, D. Wu, W. Zhang, J. Wang, X. Hu, "SPHinXsys: an open-source multi-physics and multi-resolution library based on smoothed particle hydrodynamics", Computer Physics Communications, 267, 108066, 2021.
    Main Publication

The numerical methods and computational algorithms in SPHinXsys are based on the following publications.

Software architecture

SPHinXsys is cross-platform can be compiled and used in Windows, Linux and McOS systems.

Installation, tutorial and documentation

For installation, program manual and tutorials, please check https://www.sphinxsys.org/html/sphinx_index.html. Please check the documentation of the code at https://xiangyu-hu.github.io/SPHinXsys/. For a Docker image, check https://hub.docker.com/r/toshev/sphinxsys.

Interaction with SPHinXsys and the team

Thank you for using and supporting our open-source project! We value each feedback.

For SPHinXsys users:

Your input is crucial to us. We encourage you to report any issues you encounter with the library, including:

  • Bug reports
  • Poorly written code or algorithm designs
  • Benchmark test issues, whether within the library or from literature, especially those highlighting potential deficiencies
  • Other issues

We particularly appreciate feedback stemming from practical simulations or projects, as these insights are essential for improving SPHinXsys.

For SPHinXsys developers:

If you don't have a GitHub account yet, please register for one. Fork the SPHinXsys repository to add new features or improve existing ones. Once your changes are ready, commit them and initiate a pull request to have your contributions merged into the main repository.

To ensure efficient and effective development, we prioritize addressing issues raised by active contributors—whether through code, documentation, or other means. We welcome any interaction with SPHinXsys and our team.

You can also join us as a collaborator, enabling you to branch directly within the main repository and review pull requests.

Together, we can build a leading-edge multi-physics library open for all!

If you have any further question, please contact [email protected].

sphinxsys's People

Contributors

xiangyu-hu avatar fabienpean-virtonomy avatar spadaxsys-dev avatar bencevirtonomy avatar drchizhang avatar weiyivirtonomy avatar chenxizhaotum avatar dongwutum avatar bo-zhang1995 avatar shuaihao-zhang avatar chuvirtonomy avatar shuoguozhangtum avatar xiaojingtang1234 avatar alundilong avatar yuanjiajy avatar ncsalis avatar yashmandaokar avatar durganshu avatar sphyaru avatar schrodingersalphago avatar lisu-lisa avatar yyc84 avatar johnvirtonomy avatar zhentongwang avatar mrezavandvirtonomy avatar maiyetum95 avatar chingenlin71 avatar antonov548 avatar franguuuu avatar arturtoshev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.