00001 /*************************************************************************** 00002 nedelecelement1.h - description 00003 ------------------- 00004 begin : Fri Dec 19 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 NEDELECELEMENT1_H 00019 #define NEDELECELEMENT1_H 00020 00021 #include "nedelecelement.h" 00022 00027 class NedelecElement1 : public NedelecElement { 00028 public: 00029 NedelecElement1(); 00030 ~NedelecElement1(); 00031 int get_nof_dofs() const 00032 { return 6; } 00033 int get_order() const 00034 { return 1; } 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