SyFi  0.3
raviartthomas_ex2.cpp File Reference
#include <SyFi.h>

Go to the source code of this file.

Functions

int main ()

Function Documentation

int main ( )

Definition at line 7 of file raviartthomas_ex2.cpp.

References SyFi::RaviartThomas::compute_basis_functions(), SyFi::DiscontinuousLagrange::compute_basis_functions(), SyFi::initSyFi(), SyFi::StandardFE::N(), SyFi::StandardFE::nbf(), SyFi::StandardFE::set_order(), and SyFi::StandardFE::set_polygon().

            { 
    
    initSyFi(2); 

    int order = 3; 

    ReferenceTriangle triangle("t"); 
    RaviartThomas vfe; 
    vfe.set_polygon(triangle); 
    vfe.set_order(order); 
    vfe.compute_basis_functions(); 

    DiscontinuousLagrange pfe; 
    pfe.set_polygon(triangle); 
    pfe.set_order(order); 
    pfe.compute_basis_functions(); 

    for (unsigned int i=0; i< vfe.nbf(); i++) 
        cout <<"vfe.N("<<i<<")="<<vfe.N(i)<<endl; 

    for (unsigned int i=0; i< pfe.nbf(); i++) 
        cout <<"pfe.N("<<i<<")="<<pfe.N(i)<<endl; 

    return 0; 
}
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator