Rheolef  7.2
an efficient C++ finite element environment
 
Loading...
Searching...
No Matches
P0_symbolic.cc
Go to the documentation of this file.
1
21//
22// P0 approximation
23//
24#include "basis_symbolic.h"
25using namespace rheolef;
26using namespace std;
27using namespace GiNaC;
28
29class P0_symbolic : public basis_symbolic_nodal
30{
31public:
32 P0_symbolic ();
33};
34P0_symbolic::P0_symbolic ()
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}
61int main (int argc, char **argv) {
62 P0_symbolic P0;
63 P0.put_cxx_main (argc,argv);
64}
void set_degree_parameter(bool dp=true)
int main()
Definition field2bb.cc:58
This file is part of Rheolef.
STL namespace.