![]() |
OptFEM2D
0.1
Matlab optimized FEM2D
|
Assembling Mass Matrix by
-Lagrange finite elements using "base" version (see report).
More...
Go to the source code of this file.
Functions | |
| function M = | MassAssemblingP1base (nq, nme, me, areas) |
Assembling Mass Matrix by -Lagrange finite elements using "base" version (see report). | |
Assembling Mass Matrix by
-Lagrange finite elements using "base" version (see report).
Definition in file MassAssemblingP1base.m.
| function M = MassAssemblingP1base | ( | nq, | |
| nme, | |||
| me, | |||
| areas | |||
| ) |
Assembling Mass Matrix by
-Lagrange finite elements using "base" version (see report).
The Mass Matrix is given by
where
are
-Lagrange basis functions.
Th=SquareMesh(10);
M=MassAssemblingP1base(Th.nq,Th.nme,Th.me,Th.areas);Copyright (c) 2012, Francois Cuvelier, Gilles Scarella All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted only in compliance with the BSD license, see http://www.opensource.org/licenses/bsd-license.php
| nq | total number of nodes of the mesh, also noted , |
| nme | number of triangles, also noted , |
| me | int32 array, index of storage, in the array , of the -th vertex of the triangle of index , and Also noted . |
| areas | array, areas(k) is the area of triangle k. |
| M | sparse matrix |
Definition at line 17 of file MassAssemblingP1base.m.