8000 GitHub - tgratek/ngstents
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tgratek/ngstents

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spacetime Tents in NGSolve: ngstents

ngstents is an c++ extension of the NGSolve finite element library designed to ease experimentation with tent-based methods for hyperbolic systems. The python front-end allows new equations (linear or nonlinear conservation laws) and schemes to be easily defined using their fluxes and numerical fluxes in a few lines of code.

Installation

NGSolve is required

After cloning this repository, do the following:

  • cd cpp
  • mkdir build && cd build
  • cmake ..
  • make -j4 install

Check if your installation is working by running the code in the 'tests' fodler (say, by using an automated tester like pytest).

Visualization

1D + time

A simple Matplotlib-based code provides visualization of a (2D) spacetime slab in this case.

2D + time

Several methods are available for visualizing tent-pitched slabs in two spatial dimensions plus time:

  • tentswebgui allows visualization of a tent-pitched slab in a browser directly or within a Jupyter notebook.
  • tentsngsgui is a plugin to NGSolve/ngsgui which adds a tent scene for visualizing a tent-pitched slab
  • The tent slab geometry can also be exported to a VTK file for viewing with Paraview.

3D + time

tentsngsgui currently supports a tent-pitched slab on a 3D spatial mesh, but gives very incomplete visualization of the tents and layers.

For more details on tentsngsgui and tentswebgui, see the README.md files in their directories.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 74.6%
  • Python 14.6%
  • TypeScript 6.0%
  • Jupyter Notebook 2.3%
  • GLSL 1.0%
  • JavaScript 0.9%
  • Other 0.6%
0