Loading...
Searching...
No Matches
P1qd_symbolic.cc
Go to the documentation of this file.
//
// P1qd approximation: linear polynoms in quadrangles or hexahedra
// used for Stokes : incompressible velocity-pressure element P2-P1q
// P1qd is globally discontinuous (see P1qd_numbering)
// see Brezzi-Fortin 1991, page 266.
#include "basis_symbolic.h"
using namespace rheolef;
using namespace std;
using namespace GiNaC;
class P1qd_symbolic : public basis_symbolic_nodal
{
public:
P1qd_symbolic ();
};
P1qd_symbolic::P1qd_symbolic ()
: basis_symbolic_nodal("P1qd",1)
{
on('q') << node ( 0.5, 0.5)
<< node ( 0.5, -0.5)
<< node (-0.5, -0.5)
<< poly (1)
<< poly (x)
<< poly (y)
<< end;
on('H') << node ( 0.5, 0.5, 0.5)
<< node ( 0.5, 0.5, -0.5)
<< node ( 0.5, -0.5, -0.5)
<< node (-0.5, -0.5, -0.5)
<< poly (1)
<< poly (x)
<< poly (y)
<< poly (z)
<< end;
}
int main (int argc, char **argv) {
P1qd_symbolic P1qd;
P1qd.put_cxx_main (argc,argv);
}
basis_symbolic.h
rheolef::basis_symbolic_nodal
Definition basis_symbolic.h:118
main
int main()
Definition field2bb.cc:58
rheolef
This file is part of Rheolef.
Definition compiler_eigen.h:39
std
STL namespace.