00001 /*************************************************************************** 00002 nedelecelement2.h - description 00003 ------------------- 00004 begin : Tue Dec 23 2003 00005 copyright : (C) 2003 by Roman Geus 00006 email : roman.geus@psi.ch 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef NEDELECELEMENT2_H 00019 #define NEDELECELEMENT2_H 00020 00021 #include "nedelecelement.h" 00022 00027 class NedelecElement2 : public NedelecElement { 00028 public: 00029 NedelecElement2(); 00030 ~NedelecElement2(); 00031 int get_nof_dofs() const 00032 { return 24; } 00033 int get_order() const 00034 { return 2; } 00035 const int* get_dof_ids(mesh::TetMesh* m, mesh::Tet* tet) const; 00036 const bool* get_eliminated_dofs(mesh::TetMesh* m, 00037 mesh::Tet* tet, 00038 unsigned int sym_plane_config) const; 00039 virtual mesh::Vector3 eval(mesh::Tet* tet, const mesh::Vector3& x, const colarray::Vector<double>& dof); 00040 virtual mesh::Vector3 eval_curl(mesh::Tet* tet, const mesh::Vector3& x, const colarray::Vector<double>& dof); 00041 void get_element_matrix(mesh::Tet* tet, colarray::Matrix<double>& Ae, colarray::Matrix<double>& Me); 00042 }; 00043 00044 #endif