Rheolef  7.1
an efficient C++ finite element environment
basis_fem_empty.cc
Go to the documentation of this file.
1 #include "basis_fem_empty.h"
22 #include "basis_fem_Pk_lagrange.h"
23 #include "piola_fem_lagrange.h"
24 namespace rheolef {
25 using namespace std;
26 
27 template<class T>
28 const Eigen::Matrix<point_basic<T>,Eigen::Dynamic,1> basis_fem_empty<T>::_dummy_hat_node;
29 
30 template<class T>
32  : base(basis_option())
33 {
36  base::_name = "empty";
37  base::_piola_fem.piola_fem<T>::base::operator= (new_macro(piola_fem_lagrange<T>));
38 }
39 template<class T>
41 {
42 }
43 template<class T>
44 void
46  reference_element hat_K,
47  const point_basic<T>& hat_x,
48  Eigen::Matrix<T,Eigen::Dynamic,1>& values) const
49 {
50  values.resize (0);
51 }
52 template<class T>
53 void
55  reference_element hat_K,
56  const point_basic<T>& hat_x,
57  Eigen::Matrix<point_basic<T>,Eigen::Dynamic,1>& values) const
58 {
59  values.resize (0);
60 }
61 template<class T>
62 void
64  reference_element hat_K,
65  const Eigen::Matrix<T,Eigen::Dynamic,1>& f_xnod,
66  Eigen::Matrix<T,Eigen::Dynamic,1>& dof) const
67 {
68  dof.resize(0);
69 }
70 template<class T>
71 void
73 {
75  size_t(-1),
76  false,
77  base::_ndof_on_subgeo,
78  base::_nnod_on_subgeo,
79  base::_first_idof_by_dimension,
80  base::_first_inod_by_dimension);
81 }
82 template<class T>
83 void
85  reference_element hat_K) const
86 {
87 }
88 // instantiation in library:
89 template class basis_fem_empty<Float>;
90 } // namespace rheolef
static void initialize_local_first(size_type k, bool is_continuous, std::array< std::array< size_type, reference_element::max_variant >, 4 > &ndof_on_subgeo, std::array< std::array< size_type, reference_element::max_variant >, 4 > &nnod_on_subgeo, std::array< std::array< size_type, 5 >, reference_element::max_variant > &first_idof_by_dimension, std::array< std::array< size_type, 5 >, reference_element::max_variant > &first_inod_by_dimension)
void _initialize_cstor_sizes() const
static const Eigen::Matrix< point_basic< T >, Eigen::Dynamic, 1 > _dummy_hat_node
void _compute_dofs(reference_element hat_K, const Eigen::Matrix< T, Eigen::Dynamic, 1 > &f_xnod, Eigen::Matrix< T, Eigen::Dynamic, 1 > &dof) const
void evaluate(reference_element hat_K, const point_basic< T > &hat_x, Eigen::Matrix< T, Eigen::Dynamic, 1 > &values) const
void grad_evaluate(reference_element hat_K, const point_basic< T > &hat_x, Eigen::Matrix< point_basic< T >, Eigen::Dynamic, 1 > &values) const
void _initialize_data(reference_element hat_K) const
see the basis_option page for the full documentation
Definition: basis_option.h:93
void set_continuous(bool c=true)
Definition: basis_option.h:269
piola_fem< T > _piola_fem
Definition: basis.h:394
basis_option _sopt
Definition: basis.h:393
std::string _name
Definition: basis.h:392
see the reference_element page for the full documentation
Expr1::float_type T
Definition: field_expr.h:261
This file is part of Rheolef.