Skip to content

TJUCoastlabRGQ/NDGOM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NDG-FEM

Introduction

This software uses Nodal Discontinuous Galerkin Finite Element Methods (NDG-FEM) to solve advection, advection-diffusion and various hydraulic problems in one, two and three dimension. The software is written in Matlab and C languages and uses OpenMP for parallelization. The simulation results can be exported in the nc format and vtk format, 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, enumStdCellType.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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published