17 #if !defined(KRATOS_POINT_3D_H_INCLUDED )
18 #define KRATOS_POINT_3D_H_INCLUDED
51 template<
class TPo
intType>
156 Point3D(
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 Point3D( NewGeometryId, rThisPoints ) );
297 auto p_geometry =
typename BaseType::Pointer(
new Point3D( NewGeometryId, rGeometry.
Points() ) );
298 p_geometry->SetData(rGeometry.
GetData());
594 std::string
Info()
const override
596 return "a point in 3D space";
607 rOStream <<
"a point in 3D space";
620 rOStream <<
"a point in 3D space";
701 return integration_points;
707 return shape_functions_value;
712 return shape_functions_local_gradients;
729 template<
class TOtherPo
intType>
friend class Point3D;
737 void save(
Serializer& rSerializer)
const override
773 template<
class TPo
intType>
778 template<
class TPo
intType>
783 rOStream << std::endl;
790 template<
class TPo
intType>
791 const GeometryData Point3D<TPointType>::msGeometryData(
794 Point3D<TPointType>::AllIntegrationPoints(),
795 Point3D<TPointType>::AllShapeFunctionsValues(),
796 AllShapeFunctionsLocalGradients());
798 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_3d.h:53
Geometry< TPointType > BaseType
Geometry as base class.
Definition: point_3d.h:60
BaseType::ShapeFunctionsValuesContainerType ShapeFunctionsValuesContainerType
Definition: point_3d.h:118
BaseType::CoordinatesArrayType CoordinatesArrayType
Definition: point_3d.h:144
BaseType::IntegrationPointsContainerType IntegrationPointsContainerType
Definition: point_3d.h:113
BaseType::GeometriesArrayType GeometriesArrayType
Definition: point_3d.h:72
BaseType::ShapeFunctionsLocalGradientsContainerType ShapeFunctionsLocalGradientsContainerType
Definition: point_3d.h:123
GeometryData::IntegrationMethod IntegrationMethod
Definition: point_3d.h:67
Point3D & operator=(const Point3D &rOther)
Definition: point_3d.h:243
BaseType::Pointer Create(const IndexType NewGeometryId, PointsArrayType const &rThisPoints) const override
Creates a new geometry pointer.
Definition: point_3d.h:278
GeometryData::KratosGeometryFamily GetGeometryFamily() const override
Definition: point_3d.h:220
~Point3D() override
Destructor. Do nothing!!!
Definition: point_3d.h:218
friend class Point3D
Definition: point_3d.h:729
GeometryData::KratosGeometryType GetGeometryType() const override
Definition: point_3d.h:224
Point3D & operator=(Point3D< TOtherPointType > const &rOther)
Definition: point_3d.h:261
SizeType FacesNumber() const override
Returns the number of faces of the current geometry.
Definition: point_3d.h:542
std::string Info() const override
Definition: point_3d.h:594
double Length() const override
Definition: point_3d.h:333
KRATOS_CLASS_POINTER_DEFINITION(Point3D)
Pointer definition of Point3D.
void PrintInfo(std::ostream &rOStream) const override
Definition: point_3d.h:605
BaseType::IntegrationPointType IntegrationPointType
Definition: point_3d.h:100
Point3D(const PointsArrayType &ThisPoints)
Definition: point_3d.h:162
Point3D(const IndexType GeometryId, const PointsArrayType &rThisPoints)
Constructor with Geometry Id.
Definition: point_3d.h:170
double Area() const override
Definition: point_3d.h:349
void PrintData(std::ostream &rOStream) const override
Definition: point_3d.h:618
Point3D(Point3D const &rOther)
Definition: point_3d.h:195
BaseType::Pointer Create(const IndexType NewGeometryId, const BaseType &rGeometry) const override
Creates a new geometry pointer.
Definition: point_3d.h:292
Point3D(Point3D< TOtherPointType > const &rOther)
Definition: point_3d.h:212
BaseType::JacobiansType JacobiansType
Definition: point_3d.h:129
BaseType::IndexType IndexType
Definition: point_3d.h:82
SizeType EdgesNumber() const override
Definition: point_3d.h:537
TPointType PointType
Definition: point_3d.h:76
Point3D(const std::string &rGeometryName, const PointsArrayType &rThisPoints)
Constructor with Geometry Name.
Definition: point_3d.h:179
BaseType::NormalType NormalType
Definition: point_3d.h:139
double DomainSize() const override
Definition: point_3d.h:365
Point3D(typename PointType::Pointer pFirstPoint)
Definition: point_3d.h:156
BaseType::PointsArrayType PointsArrayType
Definition: point_3d.h:94
BaseType::SizeType SizeType
Definition: point_3d.h:89
BaseType::ShapeFunctionsGradientsType ShapeFunctionsGradientsType
Definition: point_3d.h:135
BaseType::IntegrationPointsArrayType IntegrationPointsArrayType
Definition: point_3d.h:107
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 Point3D< TPointType >::msGeometryData & msGeometryDimension(), Point3D< 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