![]() |
OptFEM2D
0.1
Matlab optimized FEM2D
|
Assembling Stiff Matrix by
-Lagrange finite elements using "base" version (see report).
More...
Go to the source code of this file.
Functions | |
| function R = | StiffAssemblingP1base (nq, nme, q, me, areas) |
Assembling Stiff Matrix by -Lagrange finite elements using "base" version (see report). | |
Assembling Stiff Matrix by
-Lagrange finite elements using "base" version (see report).
Definition in file StiffAssemblingP1base.m.
| function R = StiffAssemblingP1base | ( | nq, | |
| nme, | |||
| q, | |||
| me, | |||
| areas | |||
| ) |
Assembling Stiff Matrix by
-Lagrange finite elements using "base" version (see report).
The Stiff Matrix is given by
where
are
-Lagrange basis functions.
Th=SquareMesh(10);
R=StiffAssemblingP1base(Th.nq,Th.nme,Th.me,Th.q,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 . |
| q | array, is the -th coordinate of the -th vertex, and 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. |
| R | sparse matrix |
Definition at line 17 of file StiffAssemblingP1base.m.