17 #if !defined(KRATOS_POINT_2D_H_INCLUDED )
18 #define KRATOS_POINT_2D_H_INCLUDED
51 template<
class TPo
intType>
156 Point2D(
typename PointType::Pointer pFirstPoint)
163 :
BaseType(ThisPoints, &msGeometryData)
173 ) :
BaseType(GeometryId, rThisPoints, &msGeometryData)
180 const std::string& rGeometryName,
182 ) :
BaseType(rGeometryName, rThisPoints, &msGeometryData)
260 template<
class TOtherPo
intType>
283 return typename BaseType::Pointer(
new Point2D( NewGeometryId, rThisPoints ) );
297 auto p_geometry =
typename BaseType::Pointer(
new Point2D( NewGeometryId, rGeometry.
Points() ) );
298 p_geometry->SetData(rGeometry.
GetData());
568 std::string
Info()
const override
570 return "a point geometry in 2D space";
581 rOStream <<
"a point geometry in 2D space";
594 rOStream <<
"a point geometry in 2D space";
676 return integration_points;
682 return shape_functions_value;
687 return shape_functions_local_gradients;
704 template<
class TOtherPo
intType>
friend class Point2D;
712 void save(
Serializer& rSerializer)
const override
749 template<
class TPo
intType>
754 template<
class TPo
intType>
759 rOStream << std::endl;
766 template<
class TPo
intType>
767 const GeometryData Point2D<TPointType>::msGeometryData(
770 Point2D<TPointType>::AllIntegrationPoints(),
771 Point2D<TPointType>::AllShapeFunctionsValues(),
772 AllShapeFunctionsLocalGradients());
774 template<
class TPo
intType>
Definition: geometry_data.h:60
KratosGeometryType
Definition: geometry_data.h:110
IntegrationMethod
Definition: geometry_data.h:76
KratosGeometryFamily
Definition: geometry_data.h:91
Definition: geometry_dimension.h:42
Geometry base class.
Definition: geometry.h:71
SizeType PointsNumber() const
Definition: geometry.h:528
Geometry & operator=(const Geometry &rOther)
Definition: geometry.h:400
std::vector< IntegrationPointType > IntegrationPointsArrayType
Definition: geometry.h:161
DataValueContainer & GetData()
Definition: geometry.h:591
std::size_t SizeType
Definition: geometry.h:144
std::size_t IndexType
Definition: geometry.h:137
std::array< Matrix, static_cast< int >GeometryData::IntegrationMethod::NumberOfIntegrationMethods)> ShapeFunctionsValuesContainerType
Definition: geometry.h:172
const PointsArrayType & Points() const
Definition: geometry.h:1768
std::array< IntegrationPointsArrayType, static_cast< int >GeometryData::IntegrationMethod::NumberOfIntegrationMethods)> IntegrationPointsContainerType
Definition: geometry.h:167
GeometryData::ShapeFunctionsLocalGradientsContainerType ShapeFunctionsLocalGradientsContainerType
Definition: geometry.h:177
Short class definition.
Definition: integration_point.h:52
Definition: amatrix_interface.h:41
Definition: point_2d.h:53
BaseType::ShapeFunctionsGradientsType ShapeFunctionsGradientsType
Definition: point_2d.h:135
BaseType::ShapeFunctionsValuesContainerType ShapeFunctionsValuesContainerType
Definition: point_2d.h:118
BaseType::GeometriesArrayType GeometriesArrayType
Definition: point_2d.h:72
Point2D(const std::string &rGeometryName, const PointsArrayType &rThisPoints)
Constructor with Geometry Id.
Definition: point_2d.h:179
std::string Info() const override
Definition: point_2d.h:568
SizeType EdgesNumber() const override
Definition: point_2d.h:537
GeometryData::IntegrationMethod IntegrationMethod
Definition: point_2d.h:67
Point2D(Point2D const &rOther)
Definition: point_2d.h:195
Point2D(const PointsArrayType &ThisPoints)
Definition: point_2d.h:162
BaseType::IntegrationPointsContainerType IntegrationPointsContainerType
Definition: point_2d.h:113
Point2D & operator=(Point2D< TOtherPointType > const &rOther)
Definition: point_2d.h:261
double Length() const override
Definition: point_2d.h:333
double DomainSize() const override
Definition: point_2d.h:365
Point2D(Point2D< TOtherPointType > const &rOther)
Definition: point_2d.h:212
void PrintInfo(std::ostream &rOStream) const override
Definition: point_2d.h:579
KRATOS_CLASS_POINTER_DEFINITION(Point2D)
Pointer definition of Point2D.
GeometryData::KratosGeometryType GetGeometryType() const override
Definition: point_2d.h:224
~Point2D() override
Destructor. Do nothing!!!
Definition: point_2d.h:218
SizeType FacesNumber() const override
Returns the number of faces of the current geometry.
Definition: point_2d.h:542
Geometry< TPointType > BaseType
Geometry as base class.
Definition: point_2d.h:60
BaseType::JacobiansType JacobiansType
Definition: point_2d.h:129
BaseType::CoordinatesArrayType CoordinatesArrayType
Definition: point_2d.h:144
Point2D(const IndexType GeometryId, const PointsArrayType &rThisPoints)
Constructor with Geometry Id.
Definition: point_2d.h:170
BaseType::PointsArrayType PointsArrayType
Definition: point_2d.h:94
void PrintData(std::ostream &rOStream) const override
Definition: point_2d.h:592
BaseType::ShapeFunctionsLocalGradientsContainerType ShapeFunctionsLocalGradientsContainerType
Definition: point_2d.h:123
BaseType::IntegrationPointType IntegrationPointType
Definition: point_2d.h:100
friend class Point2D
Definition: point_2d.h:704
Point2D & operator=(const Point2D &rOther)
Definition: point_2d.h:243
GeometryData::KratosGeometryFamily GetGeometryFamily() const override
Definition: point_2d.h:220
double Area() const override
Definition: point_2d.h:349
BaseType::SizeType SizeType
Definition: point_2d.h:89
BaseType::IndexType IndexType
Definition: point_2d.h:82
BaseType::Pointer Create(const IndexType NewGeometryId, const BaseType &rGeometry) const override
Creates a new geometry pointer.
Definition: point_2d.h:292
BaseType::IntegrationPointsArrayType IntegrationPointsArrayType
Definition: point_2d.h:107
BaseType::NormalType NormalType
Definition: point_2d.h:139
BaseType::Pointer Create(const IndexType NewGeometryId, PointsArrayType const &rThisPoints) const override
Creates a new geometry pointer.
Definition: point_2d.h:278
Point2D(typename PointType::Pointer pFirstPoint)
Definition: point_2d.h:156
TPointType PointType
Definition: point_2d.h:76
PointerVector is a container like stl vector but using a vector to store pointers to its data.
Definition: pointer_vector.h:72
void push_back(const TPointerType &x)
Definition: pointer_vector.h:270
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
Short class definition.
Definition: array_1d.h:61
#define KRATOS_SERIALIZE_SAVE_BASE_CLASS(Serializer, BaseType)
Definition: define.h:812
#define KRATOS_SERIALIZE_LOAD_BASE_CLASS(Serializer, BaseType)
Definition: define.h:815
#define KRATOS_ERROR
Definition: exception.h:161
#define KRATOS_ERROR_IF(conditional)
Definition: exception.h:162
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
const GeometryData Point2D< TPointType >::msGeometryData & msGeometryDimension(), Point2D< TPointType >::AllShapeFunctionsValues(), AllShapeFunctionsLocalGradients()
Definition: brep_curve.h:483
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
const GeometryData BrepCurve< TContainerPointType, TContainerPointEmbeddedType >::msGeometryData & msGeometryDimension
Definition: brep_curve.h:483
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
def load(f)
Definition: ode_solve.py:307