NuTo
Numerics Tool
IntegrationTypeBase.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 #include <Eigen/Core>
5 #include "nuto/base/Exception.h"
7 
8 namespace NuTo
9 {
10 
15 {
16 
17 public:
18  IntegrationTypeBase() = default;
19  IntegrationTypeBase(const IntegrationTypeBase&) = default;
21 
24 
26  virtual ~IntegrationTypeBase() = default;
27 
31  virtual Eigen::VectorXd GetLocalIntegrationPointCoordinates(int rIpNum) const = 0;
32 
35  virtual int GetNumIntegrationPoints() const = 0;
36 
40  virtual double GetIntegrationPointWeight(int rIpNum) const = 0;
41 
44  virtual const Shape& GetShape() const = 0;
45 };
46 } // namespace NuTo
virtual const Shape & GetShape() const =0
Determines the shape of the integration type.
virtual ~IntegrationTypeBase()=default
destructor
IntegrationTypeBase & operator=(const IntegrationTypeBase &)=default
virtual int GetNumIntegrationPoints() const =0
returns the total number of integration points for this integration type
virtual double GetIntegrationPointWeight(int rIpNum) const =0
returns the weight of an integration point
virtual Eigen::VectorXd GetLocalIntegrationPointCoordinates(int rIpNum) const =0
returns the local coordinates of an integration point
standard abstract class for all integration types
Definition: IntegrationTypeBase.h:14
Definition: Shape.h:20
Definition: Exception.h:6