1#include "laplace_matrix_provider.h"
3#include <lf/uscalfe/lagr_fe.h>
15 "Unsupported cell type " << entity.
RefEl());
18 const auto *geom = entity.
Geometry();
27 const Eigen::MatrixXd ref_grads =
32 const Eigen::MatrixXd J_inv_trans =
33 geom->JacobianInverseGramian(Eigen::VectorXd::Zero(2));
36 Eigen::MatrixXd grads = J_inv_trans * ref_grads;
39 Eigen::MatrixXd elem_mat(3, 3);
41 elem_mat = grads.transpose() * grads;
const Eigen::MatrixXd & NodeCoords() const
Get the coordinates of the nodes of this reference element.
static constexpr RefEl kTria()
Returns the reference triangle.
virtual Eigen::MatrixXd Global(const Eigen::MatrixXd &local) const =0
Map a number of points in local coordinates into the global coordinate system.
Interface class representing a topological entity in a cellular complex
virtual const geometry::Geometry * Geometry() const =0
Describes the geometry of this entity.
virtual base::RefEl RefEl() const =0
Describes the reference element type of this entity.
Linear Lagrange finite element on triangular reference element.
Eigen::Matrix< SCALAR, Eigen::Dynamic, Eigen::Dynamic > GradientsReferenceShapeFunctions(const Eigen::MatrixXd &refcoords) const override
Computation of the gradients of all reference shape functions in a number of points.
Eigen::MatrixXd Eval(const lf::mesh::Entity &entity) const
Compute the element matrix for a given cell of a mesh.
double Volume(const Geometry &geo)
Compute the (approximate) volume (area) of a shape.
Collection of matrix and vector element providers.