the diffusion-​convection​-reaction equation " DISCONTINUOUS GALERKIN FINITE ELEMENTS " using DGFEM

12 views (last 30 days)
Hello. I'm tryin to solve a problem : using discontinuous Galerkin finite elements method (DGFEM) for solving steady-state diffusion-onvection-reaction equations. the main programme in some research paper begins with
clear all
clc
% Generate the mesh
% Nodes
Nodes = [ 0 , 0 ; 0.5 , 0 ; 1 , 0 ; 0 , 0.5 ; 0.5 , 0.5 ; 1 , 0.5 ; 0 , 1 ; 0.5 , 1 ; 1 , 1 ] ;
% El ement s
Elements = [ 4 , 1 , 5 ; 1 , 2 , 5 ; 5 , 2 , 6 ; 2 , 3 , 6 ; 7 , 4 , 8 ; 4 , 5 , 8 ; 8 , 5 , 9 ; 5 , 6 , 9 ] ;
% Dirichlet bdryedge s
Dirichlet = [ 1 , 2 ; 2 , 3 ; 1 , 4 ; 3 , 6 ; 4 , 7 ; 6 , 9 ; 7 , 8 ; 8 , 9 ] ;
% Neumann bdryedge s
Neumann = [ ];
% Initial mesh struct
mesh=getmesh(Nodes,Elements,Dirichlet,Neumann,4,5) ;
------------------------------------------------------
MATLAB shows us :
??? Undefined function or method 'getmesh' for input arguments of type 'double'.
---------------------------------------------------------------
The problem is, we have do not have the code of getmesh function.

Answers (1)

Image Analyst
Image Analyst on 26 Dec 2020
I'd contact the authors of that paper and ask them for their getmesh() function. They might give it or sell it to you, or maybe they'll tell you it's in some MATLAB toolbox that it's in, in which case you can buy that toolbox.

Categories

Find more on Numerical Integration and Differential Equations in Help Center and File Exchange

Products


Release

R2011b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!