Rheolef  7.1
an efficient C++ finite element environment
P0_symbolic.cc
Go to the documentation of this file.
1 //
22 // P0 approximation
23 //
24 #include "basis_symbolic.h"
25 using namespace rheolef;
26 using namespace std;
27 using namespace GiNaC;
28 
29 class P0_symbolic : public basis_symbolic_nodal
30 {
31 public:
32  P0_symbolic ();
33 };
34 P0_symbolic::P0_symbolic ()
35 : basis_symbolic_nodal("P0",0)
36 {
39  on('p') << node(0)
40  << poly (1)
41  << end;
42  on('e') << node (0.5)
43  << poly (1)
44  << end;
45  on('t') << node (ex(1)/3, ex(1)/3)
46  << poly (1)
47  << end;
48  on('q') << node (0, 0)
49  << poly (1)
50  << end;
51  on('T') << node (1./4, 1./4, 1./4)
52  << poly (1)
53  << end;
54  on('P') << node (ex(1)/3, ex(1)/3, 0)
55  << poly (1)
56  << end;
57  on('H') << node (0, 0, 0)
58  << poly (1)
59  << end;
60 }
61 int main (int argc, char **argv) {
62  P0_symbolic P0;
63  P0.put_cxx_main (argc,argv);
64 }
rheolef
This file is part of Rheolef.
Definition: compiler_eigen.h:37
basis_symbolic.h
rheolef::basis_symbolic_nodal::set_degree_parameter
void set_degree_parameter(bool dp=true)
Definition: basis_symbolic.h:173
rheolef::basis_symbolic_nodal::_family_name
std::string _family_name
Definition: basis_symbolic.h:195
main
int main(int argc, char **argv)
Definition: P0_symbolic.cc:61
rheolef::basis_symbolic_nodal
Definition: basis_symbolic.h:117
rheolef::std
Definition: vec_expr_v2.h:391