SyFi  0.3
nedelec_ex2.cpp
Go to the documentation of this file.
00001 #include <SyFi.h>
00002 
00003 using namespace SyFi; 
00004 using namespace std; 
00005 
00006 void print_out(FE& fe) { 
00007     for (unsigned int i=0; i< fe.nbf(); i++) { 
00008         cout <<"fe.N("<<i<<")        =       "<<fe.N(i)<<endl; 
00009     }
00010 }
00011 
00012 int main() {
00013 
00014     initSyFi(3);  
00015    
00016     nsd = 3; 
00017     ReferenceTetrahedron tetrahedon; 
00018     Nedelec2Hdiv fe; 
00019     fe.set_polygon(tetrahedon); 
00020     fe.set_order(1); 
00021     fe.compute_basis_functions(); 
00022     cout <<"-------- 1 order ---------- 3D "<<endl; 
00023     print_out(fe); 
00024 
00025     fe.set_order(2); 
00026     fe.compute_basis_functions(); 
00027     cout <<"-------- 2 order ---------- 3D "<<endl; 
00028     print_out(fe); 
00029 
00030     fe.set_order(3); 
00031     fe.compute_basis_functions(); 
00032     cout <<"-------- 3 order ---------- 3D "<<endl; 
00033     print_out(fe); 
00034 
00035     fe.set_order(4); 
00036     fe.compute_basis_functions(); 
00037     cout <<"-------- 4 order ---------- 3D "<<endl; 
00038     print_out(fe); 
00039 
00040     return 0; 
00041 
00042 }
00043 
00044 
00045 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator