li12242 / NDG-FEM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NDG-FEM

Introduction

This software uses Nodal Discontinuous Galerkin Finite Element Methods (NDG-FEM) to solve various hydraulic problems. The software is written in Matlab and C languages and uses OpenMP for parallelizing. The simulation results are stored in the NetCDF files, while the visualization is also supported by Matlab.

Install

Part of the software codes are written in C Mex functions. Before the users start their simulation, these C functions need to be compiled first.

1. Windows

  • Install TDM-GCC software, including OpenMP package
  • configure TDM-GCC as the default compiler for Matlab
  • run script NdgSetup.m

2. OS X

  • Install Intel C compiler
  • configure icc as the default compiler for Matlab
  • run script NdgSetup.m

Usages

Use following commands to run a two-dimensional advection probelm

adv = ConstAdvUniformMesh2d( 1, 60, NdgCellType.Quad );
adv.matSolve;
pos = makeNdgPostProcessFromNdgPhys( adv );
pos.drawResult( 1, 1, 0 )

Acknowledgment

This software is inspired by Nodal Discontinuous Galerkin Methods Algorithms, Analysis, and Applications Texts in Applied Mathematics (Hesthaven and Tim Warburton, 2008), please refer to NodalDG for more details.

About

License:MIT License


Languages

Language:MATLAB 60.8%Language:C 15.7%Language:C++ 15.3%Language:GLSL 7.8%Language:HTML 0.3%Language:M 0.1%