GithubHelp home page GithubHelp logo

whalenpt / rkstiff Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 1.0 3.79 MB

Runge-Kutta adaptive-step solvers for nonlinear PDEs. Solvers include both exponential time differencing and integrating factor methods.

License: MIT License

Python 100.00%
adaptive-stepsize burgers-equation exponential-time-differencing hankel-tranform integrating-factor kdv kuramoto-sivashinsky nls nonlinear-pde partial-differential-equations runge-kutta sine-gordon spectral-methods

rkstiff's Introduction

Hi there πŸ‘‹

  • 🚧 I’m currently working on an opencv project
  • πŸ“š I’m currently learning neural networks
  • β˜•οΈ I’m looking to collaborate on anything math
  • πŸ€” I’m looking for help with growing my network
  • πŸ’¬ Ask me about math
  • πŸ“« How to reach me: linkedin/in/whalenpt
  • ⚑ Fun fact: I do the NYT crossword daily

rkstiff's People

Contributors

whalenpt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

arunkv7

rkstiff's Issues

Allow block-diagonal linear operators with diagonalize=True

Use case: we have a lot of degrees of freedom (e.g. N=30000, for example a 3D grid 20x20x20 with 4 fields), but the linear step is diagonal by block with small blocks.

Example equation: homogeneous Rayleigh-BΓ©nard system with variables $u_x,u_y,u_z,\theta$:
$\partial_t u_i + u_j\partial_ju_i + \nabla P = Pr\Delta u_i + RaPr \theta\delta_{i=z}$
$\partial\theta+u_j\partial_j\theta=\Delta \theta+u_z$.

In this system, the linear term for $\theta$ is extremely simple $\mathcal{L}(k_x,k_y,k_z)\theta=-k^2\theta+u_z$. It is block-diagonal with blocks of size 4 (the number of equations).

However, if we use (for instance) EDT35, we have to compute the NxN full matrix of the operator, which is way too big (1e10 elements !!).

Moreover, looking at the code of _ETD35_Diagonalized, it seems to me that all the quantities involved are stable by block diagonalization, so I expect that we could handle gracefully those cases (maybe using scipy.sparse ?).

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.