![]() |
OptFEM2D
0.1
Matlab optimized FEM2D
|
Assembling Mass Weight Matrix by
-Lagrange finite elements using "OptV2" version (see report).
More...
Go to the source code of this file.
Functions | |
| function M = | MassWAssemblingP1OptV2 (nq, nme, me, areas, Tw) |
Assembling Mass Weight Matrix by -Lagrange finite elements using "OptV2" version (see report). | |
Assembling Mass Weight Matrix by
-Lagrange finite elements using "OptV2" version (see report).
Definition in file MassWAssemblingP1OptV2.m.
| function M = MassWAssemblingP1OptV2 | ( | nq, | |
| nme, | |||
| me, | |||
| areas, | |||
| Tw | |||
| ) |
Assembling Mass Weight Matrix by
-Lagrange finite elements using "OptV2" 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=MassWAssemblingP1OptV2(Th.nq,Th.nme,Th.me,Th.areas,Tw);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. |
| Tw | double array, . |
| M | sparse matrix |
Definition at line 17 of file MassWAssemblingP1OptV2.m.