Code Monkey home page Code Monkey logo

riemann's Introduction

Riemann Solver Repository

This repository is a centralized location for all Clawpack-compatible Riemann solvers. If you have developed a Riemann solver that is not already here, please send it to us or issue a pull request. The format for Riemann solvers has changed significantly since Clawpack 4.3, but if you have a 4.3-style solver, send it along and we will update it.

Adding a Riemann solver

When adding a new Riemann solver, in addition to adding the normal and (optionally) transverse solver code files in src/, you should do the following in order to ensure the new solver is importable in PyClaw. To make things concrete, suppose you are committing a 2D elasticity solver, so your Fortran files are named rpn2_elasticity.f90 and rpt2_elasticity.f90. Then you should:

  1. Add the following to clawpack/riemann/riemann/init.py:
import vc_elasticity_2D
  1. Add 'vc_elasticity' to two_d_riemann in clawpack/riemann/riemann/setup.py.
  2. Add appropriate entries for num_eqn and num_waves in clawpack/riemann/riemann/static.py.

If you are adding a Python solver, then you should have a vc_elasticity_2D_py.py file in clawpack/riemann/riemann. Assuming it contains a function vc_elasticity_2D, then you should do:

  1. Add the following to clawpack/riemann/riemann/init.py:
from vc_elasticity_2D_py import vc_elasticity_2D
  1. Add appropriate entries for num_eqn and num_waves in clawpack/riemann/riemann/static.py.

riemann's People

Contributors

ahmadia avatar amal-ghamdi avatar brisadavis avatar chaulio avatar delgadom avatar gradylemoine avatar hadjimy avatar katrinleinweber avatar ketch avatar mandli avatar maojrs avatar mjberger avatar mparsani avatar ranocha avatar rjleveque avatar weslowrie 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.