Giter Club home page Giter Club logo

3343 / edge Goto Github PK

View Code? Open in Web Editor NEW
36.0 3.0 20.0 3.39 MB

Extreme-scale Discontinuous Galerkin Environment (EDGE)

Home Page: https://dial3343.org

Python 13.77% C++ 76.37% PHP 0.36% Shell 1.04% CMake 0.01% C 0.33% Pawn 0.24% Jupyter Notebook 1.97% Mathematica 2.20% R 0.05% Pascal 0.42% POV-Ray SDL 3.05% Nunjucks 0.11% JavaScript 0.06%
discontinuous-galerkin finite-element-method high-performance-computing seismic-waves earthquake fused-simulations scientific-computing mpi openmp simd

edge's Introduction

EDGƎ

Equations

  • advection (1D):

    Solves the one-dimensional advection equation. q(x,t) is a scalar. The scalar advection speed a(x) can be set per element, but has to be either positive or negative for the entire domain.

    q_t + a * q_x = 0
    
  • advection (2D):

    Solves the two-dimensional advection equation. q(x,y,t) is a scalar. The scalar advection speeds a(x,y) and b(x,y) can be set per element. Each has to be either positive or negative for the entire domain.

    q_t + a * q_x + b * q_y = 0
    
  • advection (3D):

    Solves the three-dimensional advection equation. q(x,y,z,t) is a scalar. The scalar advection speeds a(x,y,z), b(x,y,z) and c(x,y,z) can be set per element. Each has to be either positive or negative for the entire doman.

    q_t + a * q_x + b * q_y + c q_z = 0
    
  • elastic (2D):

    Solves the two-dimensional elastic wave equations. The vector of quantities q(x,y,t)=(sigma_xx, sigma_yy, sigma_xy, u, v) contains the normal stress components sigma_xx and sigma_yy, the shear stress sigma_xy and the two particle velocities u and v in x- and y-direction respectively. The Jacobians A(x,y) and B(x,y) are allowed to be set per element and summarize the material parameters.

    q_t + A q_x + B q_y = 0
    
  • elastic (3D):

    Solves the three-dimensional elastic wave equations. The vector of quantities q(x,y,z,t)=(sigma_xx, sigma_yy, sigma_zz, sigma_xy, sigma_xz, sigma_yz, u, v, w) contains the normal stress components sigma_xx, sigma_yy and sigma_zz, the shear stresses sigma_xy, sigma_xz and sigma_yz and the three particle velocities u, v w in x-, y- and z-direction respectively. The Jacobians A(x,y,z), B(x,y,z) and C(x,y,z) are allowed to be set per element and summarize the material parameters.

    q_t + A q_x + B q_y + C q_z = 0
    
  • viscoelastic (2D)

    Solves the two-dimensional elastic wave equations with frequency-independent attenuation. The vector of quantities q(x,y,t)=(sigma_xx, sigma_yy, sigma_xy, u, v, m_11, m_12, m_13, ..., m_n1, m_n2, m_n3) contains the elastic quantities and additional memory variables m_11, ..., m_n3. n gives the number of relaxation mechanisms with three quantities per mechanism. The Jacobians A(x,y) and B(x,y) are allowed to be set per element and summarize the material parameters. The matrix E(x,y) is the reactive source term.

    q_t + A  q_x + B q_y = E
    
  • viscoelastic (3D)

    Solves the three-dimensional elastic wave equations with frequency-independent attenuation. The vector of quantities q(x,y,z,t)=(sigma_xx, sigma_yy, sigma_zz, sigma_xy, sigma_xz, sigma_yz, u, v, w, m_11, ..., m_16, ..., m_n1, ..., m_n6) contains the elastic quantities and additional memory variables m_11, ..., m_n6. n gives the number of relaxation mechanisms with six quantities per mechanism. The Jacobians A(x,y,z), B(x,y,z) and C(x,y,z) are allowed to be set per element and summarize the material parameters. The matrix E(x,y,z) is the reactive source term.

    q_t + A  q_x + B q_y + C q_z = E
    
  • swe (1D):

    Solves the one-dimensional Shallow Water Equations (SWE) in conservative form. The conserved quantities q(x,t)=(h,hu) are the water height h and the momentum hu. The flux function is nonlinear. Bathymetry is supported.

    q_t + f(q)_x = 0,
    
           |         hu           |
    f(q) = |                      |
           | hu^2 + 1/2 * g * h^2 |
    
  • swe (2D):

    Solves the two-dimensional Shallow Water Equations (SWE) in conservative form. The conserved quantities q(x,t)=(h,hu,hv) are the water height h, the momentum hu in x-direction and the momentum hv in y-direction. The flux function is nonlinear. Bathymetry is supported.

    q_t + f(q)_x + g(q)_y = 0,
    
           |         hu           |         |          hv          |
           |                      |         |                      |
    f(q) = | hu^2 + 1/2 * g * h^2 |, g(q) = |          huv         |
           |                      |         |                      |
           |         huv          |         | hv^2 + 1/2 * g * h^2 |
    

Elements

  • line (1D):

    Line element. Element width dx is allowed to change in every element.

  • quad4r (2D):

    Rectangular, 4-node quadrilaterals. Widths dx and dy are allowed to change on a per-row/per-column basis (conforming mesh).

  • tria3 (2D):

    3-node triangles. Arbitrary, conforming triangulations of the computational domain are supported.

  • hex8r (3D):

    Rectangular, 8-node hexahedrons (bricks). Widths dx, dy and dz are allowed to change on a conforming mesh basis.

  • tet4 (3D):

    4-node tetrahedrons. Arbitrary, conforming tetrahedralizations are allowed.

Feature table

Based on the equations and the element type, the following table shows the implemented features:

equations element types CFR FV ADER-DG LIBXSMM
advection line, quad4r, tria3, hex8r, tet4 x x x
elastic quad4r, tria3, hex8r, tet4 x x x x
viscoelastic quad4r, tria3, hex8r, tet4 x x x x
swe line, quad4r, tria3 x x

High Performance Support

Microarchitecture Machine(s)
Haswell Comet
Knights Landing Stampede 2, Cori Phase 2, Theta
Knights Mill -
Skylake Amazon Elastic Compute Cloud, Google Cloud Platform, Stampede 2
Cascade Lake Frontera
Ice Lake Oracle Cloud Infrastructure
Rome Oracle Cloud Infrastructure
Milan Oracle Cloud Infrastructure
Neoverse N1 Amazon Elastic Compute Cloud, Oracle Cloud Infrastructure

edge's People

Contributors

alheinecke avatar breuera avatar dclenz avatar geoffreyqiu 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

Watchers

 avatar  avatar  avatar

edge's Issues

GOMP: Thread ids and numa-aware inits

EDGE's numa-aware inits through OMP's num_threads:

#pragma omp parallel for num_threads( std::max( edge::parallel::g_nThreads-1, 1 ) )

#pragma omp parallel for num_threads( std::max( parallel::g_nThreads-1, 1 ) )

#pragma omp parallel for num_threads( std::max( parallel::g_nThreads-1, 1 ) )

reset the thread-id of the last thread to zero:

int edge::parallel::g_thread = 0;


Bug appears in GCC toolchain (4.9.2-10 and 5.3.0).
icpc (18.0.0 20170811) and clang++ (4.0.1) with iomp work fine.


Reproducer attached:

alex@deb:~/debug$ g++ -fopenmp global.cpp numt.cpp 
alex@deb:~/debug$ OMP_NUM_THREADS=3 ./a.out running
setting g_thread
printing g_thread
3 0
3 1
3 2
working on some side-effects..............................
printing g_thread
3 1
3 0
3 0
-bash-4.2$ icpc -fopenmp global.cpp numt.cpp 
-bash-4.2$ OMP_NUM_THREADS=3 ./a.out 
running
setting g_thread
printing g_thread
3 2
3 0
3 1
working on some side-effects..............................
printing g_thread
3 1
3 0
3 2

debug.zip

EDGE-V: Usability

As discussed in PR #2:

  1. In anticipation of larger meshes, its better to have a typedef for all mesh-specific integral types, such that we can easily replace the ints by longs in future
  2. Lets get rid of the using namespace std and using namespace moab.
  3. Same goes for preprocessor macros. E.g., std::min() works fine for #define min(X, Y) (((X) < (Y)) ? (X) : (Y)).
  4. As far as I know, MOAB's sparse type MB_TAG_SPARSE should be used when only a few entities hold the tag. Since we assign velocities to all elements, dense is probably better.

Building with GCC 7 fails with -Werror=implicit-fallthrough

Building from Master with GCC 7 and later fails due to a combination of -Wextra and -Werror. Since GCC 7, -Wextra emits the warning -Wimplicit-fallthrough= when a switch-case block is missing a "break" at the end of each case.

The submodule pugixml seems to have this issue, GCC apparently takes issue with a switch block, sends out the warning, and the terminates due to -Werror.

This can be suppressed by compiling with the flag -Wimplicit-fallthrough=0.

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.