Git Product home page Git Product logo

proton's Introduction

ProtoN

A library for fast Prototyping of Numerical methods.

What is this

This is a small library that allows quick and dirty implementations of numerical methods for PDEs.

It started as a throw-away code to implement the cutHHO method (see this paper), however it grew more than expected.

At the moment it implements

  • the 2D version of cutHHO (Fictitious Domain problem)
  • the 2D version of an HHO method for obstacle problems

The library is only 2D and allows only quadrilateral meshes (it had to be quick and dirty, remember?).

Building the code

The code is tested on Mac OS X and on Linux (sorry, I don't have the time to deal with the non-compliance to standards of Windows). To compile you need, apart of a decent C++14 (I'll move to c++17 soon) compiler that should be already available in your system, the following software:

  • CMake
    • brew install cmake on OS X
    • apt-get install cmake on Linux
  • SILO
    • brew install silo on OS X
    • apt-get install libsilo-dev on Linux
  • Lua
    • brew install lua on OS X
    • apt-get install liblua5.3-dev on Linux
  • Eigen3
    • brew install eigen on OS X
    • apt-get install libeigen3-dev on Linux

If you want to just run the code, on OS X, you can tap my homebrew repo with

brew tap datafl4sh/code

and install with just

brew install cuthho

Running the thing

TO BE UPDATED

You will end up with two executables, cuthho_square and convergence_test. The first is the cutHHO driver, the second does a convergence test of the standard cutHHO method.

The executable cuthho_square accepts the following parameters:

  • -M: the number of cells in x direction
  • -N: the number of cells in y direction
  • -k: the degree of the method
  • -m: disable Point Displacement

Be sure to run cuthho_square in a specific directory, because it produces a bunch of files.

proton's People

Contributors

datafl4sh avatar

Watchers

James Cloos 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.