1#ifndef INCGb84bb391fa744cdd9159293bfcb5b311
2#define INCGb84bb391fa744cdd9159293bfcb5b311
4#include "geometry_interface.h"
17 const Eigen::Matrix<double, Eigen::Dynamic, 3>& coords,
25 explicit TriaO1(Eigen::Matrix<double, Eigen::Dynamic, 3> coords);
32 [[nodiscard]] Eigen::MatrixXd
Global(
33 const Eigen::MatrixXd& local)
const override;
36 const Eigen::MatrixXd& local)
const override {
37 return jacobian_.replicate(1, local.cols());
40 const Eigen::MatrixXd& local)
const override {
44 const Eigen::MatrixXd& local)
const override {
47 [[nodiscard]] std::unique_ptr<Geometry>
SubGeometry(dim_t codim,
48 dim_t i)
const override;
58 [[nodiscard]] std::vector<std::unique_ptr<Geometry>>
ChildGeometry(
62 Eigen::Matrix<double, Eigen::Dynamic, 3>
coords_;
Represents a reference element with all its properties.
static constexpr RefEl kTria()
Returns the reference triangle.
Interface class for shape information on a mesh cell in the spirit of parametric finite element metho...
Abstract interface class for encoding topological local refinement
An affine triangle in the plane or in 3D space.
Eigen::MatrixXd Jacobian(const Eigen::MatrixXd &local) const override
Evaluate the jacobian of the mapping simultaneously at numPoints points.
TriaO1(Eigen::Matrix< double, Eigen::Dynamic, 3 > coords)
Eigen::MatrixXd Global(const Eigen::MatrixXd &local) const override
Map a number of points in local coordinates into the global coordinate system.
dim_t DimGlobal() const override
Dimension of the image of this mapping.
Eigen::MatrixXd JacobianInverseGramian(const Eigen::MatrixXd &local) const override
Evaluate the Jacobian * Inverse Gramian ( ) simultaneously at numPoints.
Eigen::Matrix< double, Eigen::Dynamic, 2 > jacobian_
Eigen::VectorXd IntegrationElement(const Eigen::MatrixXd &local) const override
The integration element (factor appearing in integral transformation formula, see below) at number of...
std::vector< std::unique_ptr< Geometry > > ChildGeometry(const RefinementPattern &ref_pat, lf::base::dim_t codim) const override
creation of child geometries as specified in refinement pattern
dim_t DimLocal() const override
Dimension of the domain of this mapping.
Eigen::Matrix< double, Eigen::Dynamic, 3 > coords_
std::unique_ptr< Geometry > SubGeometry(dim_t codim, dim_t i) const override
Construct a new Geometry() object that describes the geometry of the i-th sub-entity with codimension...
double integrationElement_
Eigen::Matrix< double, Eigen::Dynamic, 2 > jacobian_inverse_gramian_
base::RefEl RefEl() const override
The Reference element that defines the domain of this mapping.
unsigned int dim_t
type for dimensions and co-dimensions and numbers derived from them
Defines the Geometry interface and provides a number of classes that implement this interface + addit...
bool assertNonDegenerateTriangle(const Eigen::Matrix< double, Eigen::Dynamic, 3 > &coords, double tol)
Asserting non-degenerate shape of a flat triangle.