GithubHelp home page GithubHelp logo

tcew / nodal-dg Goto Github PK

View Code? Open in Web Editor NEW
139.0 139.0 90.0 2.68 MB

License: MIT License

MATLAB 10.33% Objective-C 0.01% Makefile 0.56% Fortran 31.63% C++ 46.97% C 10.25% Gnuplot 0.04% Mathematica 0.20% M 0.01%

nodal-dg's Introduction

  • πŸ‘‹ Hi, I’m Tim Warburton (AKA @tcew)
  • πŸ‘€ I develop and implement GPU accelerated, high-order finite element based PDE solvers
  • 🌱 I’m always learning more numerical analysis, PDEs, algorithms, linear algebra, preconditioners, ...

nodal-dg's People

Contributors

tcew avatar

Stargazers

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

Watchers

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

nodal-dg's Issues

Question about "edge noise"

Hi Prof. Warburton!

I am a graduate student at Harvard University working towards my PhD in astrophysics. I have really enjoyed your nodal DG book, and I've been trying to implement the codes in it, using both the book and this repo. I've run into a bit of a snag, however, and I'm not sure what might cause this issue. I thought you might have some insight to share.

I've already checked for obvious bugs in my code, printing out matrices and such and comparing them to the output from yours (using Octave instead of MATLAB for now). So far, everything seems consistent. When I run my code on a simplified version of my target problem, I get a lot of noise at the cell edges, such as the plots I've chosen below. I'm showing both the 2-dimensional view and a slice at y = 0; the variable in both cases is the x-velocity in the Euler equations. You can see that the amplitude of the noise is quite small, but that is a bit misleading -- this particular frame is captured after an absurdly small timestep. In reality, I expect to take timesteps on the order of 5-6 orders of magnitude greater than this, and the noise only grows over time.

bokeh_plot_2
bokeh_plot

This simulation used just 2 cells, and the noise clearly follows the edge of the cell. There should be no shocks in this system, and the solution is expected to be quite smooth. I've pushed filtering to the maximum I can, and it helps a bit, but the noise always comes back through after just a couple of timesteps. I've been debugging for about a week and am really at a loss. Is this a feature inherent to DG-FEM? Is there a workaround? Or a debugging step I could try?

Thanks in advance for your time,
Ellen Price

Difference in Matlab and C++ Version, which is correct?

These two lines are different, but, as far as I understand, they should not be. Which is the correct version?

if (N==0) x(1)= -(alpha-beta)/(alpha+beta+2); w(1) = 2; return; end;

if (0==N) { x(1)=(alpha-beta)/(alpha+beta+2.0); w(1)=2.0; return; }

The book (Page 447) includes a listing of the Matlab version, which is different from the Matlab version in this repository but the same as the C++ version.

Screenshot from 2021-11-26 12-47-54

Trouble making nudg++ on Linux

I was able to get the MATLAB code running, but I can't seem to build the c++ version (I'm guessing it's a c++ version of the MATLAB code?)

I'm trying to build nudg++ on openSUSE Tumbleweed, a rolling relase Linux distribution.

At first glance, I'm getting a bunch of ISO c++ warnings, maybe it has to do with a compiler version mismatch? I'm using gcc 6.2.1 - what compiler is required for this to build correctly?

Please see the output of make Maxwell2D attached here: make.txt

Licensing confusion

Hi! Thank you for sharing this code.

I have a question about its license. In the root of this repository is a LICENSE file containing the MIT license. However, in the Codes1.1 subdirectory, there is a README stating that the code is under a proprietary license.

As-is, I would interpret this to mean that the code in Codes1.1 is under that proprietary license, and that the code in Lebesgue2D and nudg++ (which perhaps you added later, and outside of your contract with the publisher?) is under the MIT license. Is that correct? Or was the code relicensed, and is it all under the MIT license now?

It would be good if you could make explicit who owns the copyright to what, and what license they offer it under.

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.