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

3 次查看(过去 30 天)
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.

回答(1 个)

Image Analyst
Image Analyst 2020-12-26
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.

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

产品


版本

R2011b

Community Treasure Hunt

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

Start Hunting!

Translated by