hermite_ex1.cpp File Reference

#include <SyFi.h>

Go to the source code of this file.

Functions

int main ()


Function Documentation

int main  ) 
 

Definition at line 5 of file hermite_ex1.cpp.

References HermiteFE::compute_basis_functions(), compute_Poisson_element_matrix(), print(), HermiteFE::set(), and usage().

00005           { 
00006   //---          2D Hermite element
00007   Triangle triangle(lst(0,0), lst(1,0), lst(0,1));   
00008   HermiteFE fe; 
00009   fe.set(triangle); 
00010   fe.compute_basis_functions(); 
00011 
00012   usage(fe); 
00013 
00014   Dof dof; 
00015   std::map<std::pair<int,int>, ex> A; 
00016   compute_Poisson_element_matrix(fe, dof, A); 
00017   print(A); 
00018 
00019   //---          3D Hermite element
00020 
00021   Tetrahedron tetrahedron(lst(0,0,0), lst(1,0,0), lst(0,1,0), lst(0,0,1));   
00022   HermiteFE fe2; 
00023   fe2.set(tetrahedron); 
00024   fe2.compute_basis_functions(); 
00025 
00026   usage(fe2); 
00027 
00028   Dof dof2; 
00029   std::map<std::pair<int,int>, ex> A2; 
00030   compute_Poisson_element_matrix(fe2, dof2, A2); 
00031   print(A2); 
00032 
00033 
00034 
00035 
00036 }


Generated on Tue Jun 13 13:18:40 2006 for SyFi by  doxygen 1.4.4