Loading...
Searching...
No Matches
P0_symbolic.cc
Go to the documentation of this file.
//
// P0 approximation
//
#include "basis_symbolic.h"
using namespace rheolef;
using namespace std;
using namespace GiNaC;
class P0_symbolic : public basis_symbolic_nodal
{
public:
P0_symbolic ();
};
P0_symbolic::P0_symbolic ()
: basis_symbolic_nodal("P0",0)
{
basis_symbolic_nodal::_family_name = "P";
basis_symbolic_nodal::set_degree_parameter();
on('p') << node(0)
<< poly (1)
<< end;
on('e') << node (0.5)
<< poly (1)
<< end;
on('t') << node (ex(1)/3, ex(1)/3)
<< poly (1)
<< end;
on('q') << node (0, 0)
<< poly (1)
<< end;
on('T') << node (1./4, 1./4, 1./4)
<< poly (1)
<< end;
on('P') << node (ex(1)/3, ex(1)/3, 0)
<< poly (1)
<< end;
on('H') << node (0, 0, 0)
<< poly (1)
<< end;
}
int main (int argc, char **argv) {
P0_symbolic P0;
P0.put_cxx_main (argc,argv);
}
basis_symbolic.h
rheolef::basis_symbolic_nodal
Definition basis_symbolic.h:118
rheolef::basis_symbolic_nodal::_family_name
std::string _family_name
Definition basis_symbolic.h:195
rheolef::basis_symbolic_nodal::set_degree_parameter
void set_degree_parameter(bool dp=true)
Definition basis_symbolic.h:173
main
int main()
Definition field2bb.cc:58
rheolef
This file is part of Rheolef.
Definition compiler_eigen.h:39
std
STL namespace.