NuTo
Numerics Tool
IntegrationTypeTriangle.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 namespace NuTo
7 {
10 {
11 
12 public:
18  static const std::vector<std::vector<Eigen::Vector3d>> quadratureData;
19 
22  IntegrationTypeTriangle(int order);
23 
27  Eigen::VectorXd GetLocalIntegrationPointCoordinates(int i) const override;
28 
31  int GetNumIntegrationPoints() const override;
32 
36  double GetIntegrationPointWeight(int i) const override;
37 
38  const Shape& GetShape() const override
39  {
40  return mShape;
41  }
42 
43 private:
44  int mOrder;
45  Triangle mShape;
46 };
47 
48 
49 } // namespace NuTo
const Shape & GetShape() const override
Determines the shape of the integration type.
Definition: IntegrationTypeTriangle.h:38
Eigen::VectorXd GetLocalIntegrationPointCoordinates(int i) const override
returns the local coordinates of an integration point
Definition: IntegrationTypeTriangle.cpp:658
IntegrationTypeTriangle(int order)
constructor
Definition: IntegrationTypeTriangle.cpp:653
double GetIntegrationPointWeight(int i) const override
returns the weight of an integration point
Definition: IntegrationTypeTriangle.cpp:671
standard abstract class for all integration types
Definition: IntegrationTypeBase.h:14
Definition: Shape.h:20
static const std::vector< std::vector< Eigen::Vector3d > > quadratureData
data is taken from the attachment to the book "P.
Definition: IntegrationTypeTriangle.h:18
Definition: Exception.h:6
Definition: Triangle.h:8
Integration types for the triangle.
Definition: IntegrationTypeTriangle.h:9
int GetNumIntegrationPoints() const override
returns the total number of integration points for this integration type
Definition: IntegrationTypeTriangle.cpp:665