Giter VIP home page Giter VIP logo

rhapsopy's Introduction

Rhapsopy

Really High-order AdaPtive coupling for Simulation Orchestration in PYthon

This pure Python package demonstrates the application of a high-order code coupling strategy. It enables an accurate resolution of transient multiphysics problems requiring the coupling of existing specialised codes, e.g. fluid flow solver, heat diffusion solver...

The framework is focused on problems of the form: $$d_t y_i = f_i(t, y_i, u_i)$$ $$u_i = g_i(t, y_1, \cdots, y_N)$$ with $t$ the physical time, $i \in [1,N]$, $N$ the number of subsystems, $y_i$ the state vector of the $i$-th subsystem, $u_i$ its input or coupling variables, e.g. prescribed boundary conditions, volumic source term... Many coupled multiphysics models (fluid-structure, conjugate heat transfer) take this form.

The strategy relies on the introduction of approximations of the coupling variables as polynomials of time. Over the course of one coupling step, each subsystem is integrated with its dedicated solver, using the polynomially approximated evolution of its input $u_i$. At the end of each step, the new coupling variables are computed and the polynomials are updated.

It is possible to perform the coupling in explicit or implicit form. The latter improves both accuracy and stability, but requires the resolution of a fixed-point problem at each step. Dynamic adaptation of the coupling time step is possible thanks to error estimates that can be directly derived from the polynomial approximations.

The present repository offers an example implementation of the previous strategy, with tutorials in the form of Jupyter Notebooks.

It has been developed at ONERA by Laurent François, based on a study initiated during his PhD thesis. The package is currently only proposed as a demonstration tool for small-scale problems. In the future, the coupling strategy will be ported to the Cwipi library developed at ONERA, which will make it accessible for large-scale HPC applications.

To test this package, run python setup.py develop to register it as a development package.

Contact: [email protected]

rhapsopy's People

Contributors

laurent90git 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.