![]() |
OptFEM2D
0.1
Matlab optimized FEM2D
|
Assembling Mass Weight Matrix by
-Lagrange finite elements using "OptV0" version (see report).
More...
Go to the source code of this file.
Functions | |
| function M = | MassWAssemblingP1OptV0 (nq, nme, me, areas, Tw) |
Assembling Mass Weight Matrix by -Lagrange finite elements using "OptV0" version (see report). | |
Assembling Mass Weight Matrix by
-Lagrange finite elements using "OptV0" version (see report).
Definition in file MassWAssemblingP1OptV0.m.
| function M = MassWAssemblingP1OptV0 | ( | nq, | |
| nme, | |||
| me, | |||
| areas, | |||
| Tw | |||
| ) |
Assembling Mass Weight Matrix by
-Lagrange finite elements using "OptV0" version (see report).
The Mass Weight Matrix is given by
where
are
-Lagrange basis functions.
Th=SquareMesh(10);
w=@(x,y) cos(x+y);
Tw=w(Th.q(1,:),Th.q(2,:));
Mw=MassWAssemblingP1OptV0(Th.nq,Th.nme,Th.me,Th.areas,Tw);| 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. |
| Tw | double array, . |
| M | sparse matrix |
Definition at line 17 of file MassWAssemblingP1OptV0.m.