GithubHelp home page GithubHelp logo

amrex-astro / stvar Goto Github PK

View Code? Open in Web Editor NEW
14.0 9.0 4.0 57.39 MB

Space-Time Variable Code Generator and Solver

Makefile 0.02% C++ 12.71% Jupyter Notebook 85.80% Python 1.38% C 0.08% Shell 0.01%

stvar's Introduction

Space-Time Variable Code Generator and Solver

This code package contains a Sympy-based code generator that creates C++ code for solving PDEs with finite-differencing.

The integration of these PDEs in time is implemented using the Method of Lines with a Runge-Kutta integrator.

We discretize in space using finite differencing with options for various orders. We implement domain decomposition using the AMReX package for adaptive mesh refinement and parallel processing.

A PDE solver generated using the STvAR package will run on CPUs and GPUs using the AMReX performance portability backend.

We include examples based on the wave equation and numerical general relativity.

stvar's People

Contributors

apeterson87 avatar asalmgren avatar dwillcox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stvar's Issues

Time Interpolation Order in FillPatch & FillCoarsePatch

Currently in FillPatch & FillCoarsePatch, we are still using the built-in AMReX linear interpolation in time.

We should switch to the 4th order interpolation like we did for FillIntermediatePatch.

This applies when we're making a new fine level or remaking an existing fine level.

This change would make sure that when we need to interpolate from coarse to fill a subset of the fine level, we will first interpolate coarse data to 4th order in time, then interpolate in space to fill the fine cells.

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.