SyFi
0.3
|
#include <SyFi.h>
Go to the source code of this file.
Functions | |
void | check_RaviartThomas () |
int | main () |
void check_RaviartThomas | ( | ) |
Definition at line 8 of file raviartthomas_ex1.cpp.
References SyFi::RaviartThomas::compute_basis_functions(), SyFi::initSyFi(), SyFi::StandardFE::set_order(), SyFi::StandardFE::set_polygon(), and SyFi::usage().
Referenced by main().
{ initSyFi(2); ReferenceTriangle triangle("t"); RaviartThomas fe; fe.set_polygon(triangle); cout <<"2D --------------------- 1 order "<<endl; fe.set_order(1); fe.compute_basis_functions(); usage(fe); cout <<"2D ----------------------2 order "<<endl; fe.set_order(2); fe.compute_basis_functions(); usage(fe); cout <<"2D ----------------------3 order "<<endl; fe.set_order(3); fe.compute_basis_functions(); usage(fe); cout <<"2D ----------------------4 order "<<endl; fe.set_order(4); fe.compute_basis_functions(); usage(fe); cout <<"2D ----------------------5 order "<<endl; fe.set_order(5); fe.compute_basis_functions(); usage(fe); initSyFi(3); ReferenceTetrahedron tetrahedron("t"); fe.set_polygon(tetrahedron); cout <<"3D ----------------------1 order "<<endl; fe.set_order(1); fe.compute_basis_functions(); usage(fe); cout <<"3D ----------------------2 order "<<endl; fe.set_order(2); fe.compute_basis_functions(); usage(fe); cout <<"3D ----------------------3 order "<<endl; fe.set_order(3); fe.compute_basis_functions(); usage(fe); cout <<"3D ----------------------4 order "<<endl; fe.set_order(4); fe.compute_basis_functions(); usage(fe); }
int main | ( | ) |
Definition at line 72 of file raviartthomas_ex1.cpp.
References check_RaviartThomas().
{ check_RaviartThomas(); return 0; }