Git Product home page Git Product logo

phiflow's Introduction

ΦFlow

Build Status PyPI pyversions PyPI license Code Coverage Google Collab Book

Gui

ΦFlow is an open-source simulation toolkit built for optimization and machine learning applications. It is written mostly in Python and can be used with NumPy, TensorFlow or PyTorch. The close integration with machine learning frameworks allows it to leverage their automatic differentiation functionality, making it easy to build end-to-end differentiable functions involving both learning models and physics simulations.

This is major version 2 of ΦFlow. Version 1 is available in the branch 1.5 but will not receive new features anymore. Older versions are available through the release history.

Features

  • Variety of built-in PDE operations with focus on fluid phenomena, allowing for concise formulation of simulations.
  • Tight integration with TensorFlow, PyTorch and Jax (experimental) for straightforward neural network training with fully differentiable simulations that run on the GPU.
  • Flexible, easy-to-use web interface featuring live visualizations and interactive controls that can affect simulations or network training on the fly.
  • Object-oriented, vectorized design for expressive code, ease of use, flexibility and extensibility.
  • Reusable simulation code, independent of backend and dimensionality, i.e. the exact same code can run a 2D fluid sim using NumPy and a 3D fluid sim on the GPU using TensorFlow or PyTorch.
  • High-level linear equation solver with automated sparse matrix generation.

Publications

Installation

Installation with pip on Python 3.6 or newer:

$ pip install phiflow

Install TensorFlow or PyTorch in addition to ΦFlow to enable machine learning capabilities and GPU execution. See the detailed installation instructions on how to compile the custom CUDA operators and verify your installation.

Documentation and Guides

Documentation     API     Demos     Fluids Tutorial     Playground

An overview of all available documentation can be found here.

If you would like to get right into it and have a look at some code, check out the tutorial notebook on Google Colab. It lets you run fluid simulations with ΦFlow in the browser. Also check out the explanation of common fluid simulation operations.

The following introductory demos are also helpful to get started with writing your own scripts using ΦFlow:

  • smoke_plume.py runs a smoke simulation and displays it in the web interface.
  • optimize_pressure.py uses TensorFlow to optimize a velocity field and displays it in the web interface.

Version History

The Version history lists all major changes since release.

The releases are also listed on PyPI.

Contributions

Contributions are welcome! Check out this document for guidelines.

Acknowledgements

This work is supported by the ERC Starting Grant realFlow (StG-2015-637014) and the Intel Intelligent Systems Lab.

phiflow's People

Contributors

danielzie avatar holl- avatar mmichelis avatar phylomatx avatar the-rccg avatar thunil avatar

Watchers

 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.