Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

TetrahedronVertexQuadrature.h

Go to the documentation of this file.
00001 // Copyright (C) 2003 Johan Hoffman and Anders Logg.
00002 // Licensed under the GNU GPL Version 2.
00003 
00004 #ifndef __TETRAHEDRON_VERTEX_QUADRATURE_H
00005 #define __TETRAHEDRON_VERTEX_QUADRATURE_H
00006 
00007 #include <dolfin/Quadrature.h>
00008 
00009 namespace dolfin {
00010 
00012   class TetrahedronVertexQuadrature : public Quadrature {
00013   public:
00014     
00015     TetrahedronVertexQuadrature() : Quadrature(4) {
00016       
00017       // Volume of tetrahedron
00018       m = 1.0 / 6.0;
00019       
00020       // Quadrature points
00021       points[0] = Point(0.0, 0.0, 0.0);
00022       points[1] = Point(1.0, 0.0, 0.0);
00023       points[2] = Point(0.0, 1.0, 0.0);
00024       points[3] = Point(0.0, 0.0, 1.0);
00025       
00026       // Quadrature weights
00027       weights[0] = m / 4.0;
00028       weights[1] = m / 4.0;
00029       weights[2] = m / 4.0;
00030       weights[3] = m / 4.0;
00031       
00032     }
00033 
00034     void show() const {};
00035     
00036   };
00037   
00038 }
00039 
00040 #endif


Documentation automatically generated with Doxygen on 10 Sep 2004.