Loading...
Searching...
No Matches
bubble_symbolic.cc
Go to the documentation of this file.
//
// bubble approximation
//
#include "basis_symbolic.h"
using namespace rheolef;
using namespace std;
using namespace GiNaC;
class bubble_symbolic : public basis_symbolic_nodal
{
public:
bubble_symbolic ();
};
bubble_symbolic::bubble_symbolic ()
: basis_symbolic_nodal("bubble",4)
{
on('p') << node(0)
<< poly (1)
<< end;
on('e') << node (0.5)
<< poly (4*x*(1-x))
<< end;
on('t') << node (ex(1)/3, ex(1)/3)
<< poly (27*x*y*(1-x-y))
<< end;
on('T') << node (1./4, 1./4, 1./4)
<< poly (256*x*y*z*(1-x-y-z))
<< end;
}
int main (int argc, char **argv) {
bubble_symbolic bubble;
bubble.put_cxx_main (argc,argv);
}
basis_symbolic.h
rheolef::basis_symbolic_nodal
Definition basis_symbolic.h:118
rheolef::basis_symbolic_nodal::put_cxx_main
void put_cxx_main(int argc, char **argv) const
Definition basis_symbolic_cxx.cc:429
main
int main()
Definition field2bb.cc:58
rheolef
This file is part of Rheolef.
Definition compiler_eigen.h:39
std
STL namespace.