17 #if !defined(KRATOS_SPHERE_3D_1_H_INCLUDED )
18 #define KRATOS_SPHERE_3D_1_H_INCLUDED
53 template<
class TPo
intType>
167 :
BaseType( ThisPoints, &msGeometryData )
177 ) :
BaseType(GeometryId, rThisPoints, &msGeometryData)
184 const std::string& rGeometryName,
186 ) :
BaseType(rGeometryName, rThisPoints, &msGeometryData)
265 template<
class TOtherPo
intType>
286 return typename BaseType::Pointer(
new Sphere3D1( rThisPoints ) );
300 return typename BaseType::Pointer(
new Sphere3D1( NewGeometryId, rThisPoints ) );
312 auto p_geometry =
typename BaseType::Pointer(
new Sphere3D1( rGeometry.
Points() ) );
313 p_geometry->SetData(rGeometry.
GetData());
328 auto p_geometry =
typename BaseType::Pointer(
new Sphere3D1( NewGeometryId, rGeometry.
Points() ) );
329 p_geometry->SetData(rGeometry.
GetData());
346 if(rResult.size() != 1)
347 rResult.
resize( 1,
false );
370 KRATOS_WARNING(
"Sphere3D1") <<
"This method (Length) has no meaning for this type of geometry (Sphere)." << std::endl;
387 KRATOS_WARNING(
"Sphere3D1") <<
"This method (Area) has no meaning for this type of geometry (Sphere)." << std::endl;
404 KRATOS_WARNING(
"Sphere3D1") <<
"This method (DomainSize) has no meaning for this type of geometry (Sphere)." << std::endl;
428 KRATOS_WARNING(
"Sphere3D1") <<
"This method (Jacobian) has no meaning for this type of geometry (Sphere)." << std::endl;
451 KRATOS_WARNING(
"Sphere3D1") <<
"This method (Jacobian) has no meaning for this type of geometry (Sphere)."<<std::endl;
474 KRATOS_WARNING(
"Sphere3D1") <<
"This method (Jacobian) has no meaning for this type of geometry (Sphere)."<<std::endl;
491 KRATOS_WARNING(
"Sphere3D1") <<
"This method (Jacobian) has no meaning for this type of geometry (Sphere)."<<std::endl;
508 KRATOS_WARNING(
"Sphere3D1")<<
"This method (DeterminantOfJacobian) has no meaning for this type of geometry (Sphere)."<<std::endl;
532 KRATOS_WARNING(
"Sphere3D1")<<
"This method (DeterminantOfJacobian) has no meaning for this type of geometry (Sphere)."<<std::endl;
550 KRATOS_WARNING(
"Sphere3D1")<<
"This method (DeterminantOfJacobian) has no meaning for this type of geometry (Sphere)."<<std::endl;
571 KRATOS_WARNING(
"Sphere3D1")<<
"This method (InverseOfJacobian) has no meaning for this type of geometry (Sphere)."<<std::endl;
594 KRATOS_WARNING(
"Sphere3D1") <<
"This method (InverseOfJacobian) has no meaning for this type of geometry (Sphere)."<<std::endl;
611 KRATOS_WARNING(
"Sphere3D1") <<
"This method (InverseOfJacobian) has no meaning for this type of geometry (Sphere)."<<std::endl;
631 KRATOS_WARNING(
"Sphere3D1") <<
"This method (ShapeFunctionValue) has no meaning for this type of geometry (Sphere)."<<std::endl;
638 KRATOS_WARNING(
"Sphere3D1") <<
"This method (ShapeFunctionsLocalGradients) has no meaning for this type of geometry (Sphere)."<<std::endl;
644 KRATOS_WARNING(
"Sphere3D1") <<
"This method (ShapeFunctionsLocalGradients) has no meaning for this type of geometry (Sphere)."<<std::endl;
653 std::string
Info()
const override
655 return "a sphere with 1 nodes in its center, in 3D space";
666 rOStream <<
"a sphere with 1 nodes in its center, in 3D space";
744 void save(
Serializer& rSerializer )
const override
771 Matrix N( integration_points_number, 1 );
783 std::fill( DN_De.begin(), DN_De.end(),
Matrix( 2, 1 ) );
794 Quadrature<LineGaussLegendreIntegrationPoints1, 1, IntegrationPoint<3> >::GenerateIntegrationPoints(),
795 Quadrature<LineGaussLegendreIntegrationPoints2, 1, IntegrationPoint<3> >::GenerateIntegrationPoints(),
796 Quadrature<LineGaussLegendreIntegrationPoints3, 1, IntegrationPoint<3> >::GenerateIntegrationPoints(),
797 Quadrature<LineGaussLegendreIntegrationPoints4, 1, IntegrationPoint<3> >::GenerateIntegrationPoints(),
798 Quadrature<LineGaussLegendreIntegrationPoints5, 1, IntegrationPoint<3> >::GenerateIntegrationPoints()
801 return integration_points;
814 return shape_functions_values;
828 return shape_functions_local_gradients;
867 template<
class TPo
intType>
872 template<
class TPo
intType>
877 rOStream << std::endl;
885 template<
class TPo
intType>
886 const GeometryData Sphere3D1<TPointType>::msGeometryData(
889 Sphere3D1<TPointType>::AllIntegrationPoints(),
890 Sphere3D1<TPointType>::AllShapeFunctionsValues(),
891 AllShapeFunctionsLocalGradients()
894 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
LumpingMethods
This defines the different methods to compute the lumping methods.
Definition: geometry.h:109
const IntegrationPointsArrayType & IntegrationPoints() const
Definition: geometry.h:2284
GeometryData::ShapeFunctionsLocalGradientsContainerType ShapeFunctionsLocalGradientsContainerType
Definition: geometry.h:177
GeometryData::IntegrationMethod IntegrationMethod
Definition: geometry.h:122
Short class definition.
Definition: integration_point.h:52
Definition: amatrix_interface.h:41
void resize(std::size_t NewSize1, std::size_t NewSize2, bool preserve=0)
Definition: amatrix_interface.h:224
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
Definition: sphere_3d_1.h:56
GeometryData::KratosGeometryFamily GetGeometryFamily() const override
Definition: sphere_3d_1.h:224
Vector & LumpingFactors(Vector &rResult, const typename BaseType::LumpingMethods LumpingMethod=BaseType::LumpingMethods::ROW_SUM) const override
Lumping factors for the calculation of the lumped mass matrix.
Definition: sphere_3d_1.h:341
BaseType::ShapeFunctionsGradientsType ShapeFunctionsGradientsType
Definition: sphere_3d_1.h:139
double Area() const override
Definition: sphere_3d_1.h:385
double Length() const override
Definition: sphere_3d_1.h:368
Matrix & InverseOfJacobian(Matrix &rResult, IndexType IntegrationPointIndex, IntegrationMethod ThisMethod) const override
Definition: sphere_3d_1.h:592
SizeType EdgesNumber() const override
Definition: sphere_3d_1.h:619
BaseType::SizeType SizeType
Definition: sphere_3d_1.h:93
Matrix & InverseOfJacobian(Matrix &rResult, const CoordinatesArrayType &rPoint) const override
Definition: sphere_3d_1.h:609
BaseType::Pointer Create(const BaseType &rGeometry) const override
Creates a new geometry pointer.
Definition: sphere_3d_1.h:308
Vector & DeterminantOfJacobian(Vector &rResult, IntegrationMethod ThisMethod) const override
Definition: sphere_3d_1.h:506
JacobiansType & InverseOfJacobian(JacobiansType &rResult, IntegrationMethod ThisMethod) const override
Definition: sphere_3d_1.h:569
BaseType::JacobiansType JacobiansType
Definition: sphere_3d_1.h:133
BaseType::PointsArrayType PointsArrayType
Definition: sphere_3d_1.h:98
Sphere3D1(Sphere3D1 const &rOther)
Definition: sphere_3d_1.h:199
~Sphere3D1() override
Destructor. Do nothing!!!
Definition: sphere_3d_1.h:222
void PrintData(std::ostream &rOStream) const override
Definition: sphere_3d_1.h:677
BaseType::Pointer Create(const IndexType NewGeometryId, PointsArrayType const &rThisPoints) const override
It creates a new geometry pointer.
Definition: sphere_3d_1.h:295
Matrix & ShapeFunctionsLocalGradients(Matrix &rResult, const CoordinatesArrayType &rPoint) const override
Definition: sphere_3d_1.h:635
JacobiansType & Jacobian(JacobiansType &rResult, IntegrationMethod ThisMethod, Matrix &DeltaPosition) const override
Definition: sphere_3d_1.h:449
GeometryData::IntegrationMethod IntegrationMethod
Definition: sphere_3d_1.h:71
BaseType::Pointer Create(PointsArrayType const &rThisPoints) const override
It creates a new geometry pointer.
Definition: sphere_3d_1.h:282
Geometry< TPointType > BaseType
Geometry as base class.
Definition: sphere_3d_1.h:64
TPointType PointType
Definition: sphere_3d_1.h:80
double DeterminantOfJacobian(const CoordinatesArrayType &rPoint) const override
Definition: sphere_3d_1.h:548
BaseType::ShapeFunctionsLocalGradientsContainerType ShapeFunctionsLocalGradientsContainerType
Definition: sphere_3d_1.h:127
Sphere3D1(const IndexType GeometryId, const PointsArrayType &rThisPoints)
Constructor with Geometry Id.
Definition: sphere_3d_1.h:174
BaseType::NormalType NormalType
Definition: sphere_3d_1.h:143
Matrix & Jacobian(Matrix &rResult, IndexType IntegrationPointIndex, IntegrationMethod ThisMethod) const override
Definition: sphere_3d_1.h:472
BaseType::IntegrationPointsArrayType IntegrationPointsArrayType
Definition: sphere_3d_1.h:111
BaseType::CoordinatesArrayType CoordinatesArrayType
Definition: sphere_3d_1.h:148
BaseType::IndexType IndexType
Definition: sphere_3d_1.h:86
BaseType::GeometriesArrayType GeometriesArrayType
Definition: sphere_3d_1.h:76
Sphere3D1(Sphere3D1< TOtherPointType > const &rOther)
Definition: sphere_3d_1.h:216
std::string Info() const override
Definition: sphere_3d_1.h:653
Sphere3D1(const std::string &rGeometryName, const PointsArrayType &rThisPoints)
Constructor with Geometry Name.
Definition: sphere_3d_1.h:183
KRATOS_CLASS_POINTER_DEFINITION(Sphere3D1)
Pointer definition of Sphere3D1.
JacobiansType & Jacobian(JacobiansType &rResult, IntegrationMethod ThisMethod) const override
Definition: sphere_3d_1.h:426
GeometryData::KratosGeometryType GetGeometryType() const override
Definition: sphere_3d_1.h:229
Matrix & Jacobian(Matrix &rResult, const CoordinatesArrayType &rPoint) const override
Definition: sphere_3d_1.h:489
void ShapeFunctionsIntegrationPointsGradients(ShapeFunctionsGradientsType &rResult, IntegrationMethod ThisMethod) const override
Definition: sphere_3d_1.h:642
Sphere3D1(typename PointType::Pointer pFirstPoint)
Definition: sphere_3d_1.h:160
void PrintInfo(std::ostream &rOStream) const override
Definition: sphere_3d_1.h:664
Sphere3D1 & operator=(const Sphere3D1 &rOther)
Definition: sphere_3d_1.h:248
BaseType::IntegrationPointsContainerType IntegrationPointsContainerType
Definition: sphere_3d_1.h:117
Sphere3D1(const PointsArrayType &ThisPoints)
Definition: sphere_3d_1.h:166
double DomainSize() const override
Definition: sphere_3d_1.h:402
double ShapeFunctionValue(IndexType ShapeFunctionIndex, const CoordinatesArrayType &rPoint) const override
Definition: sphere_3d_1.h:628
friend class Sphere3D1
Definition: sphere_3d_1.h:845
Sphere3D1 & operator=(Sphere3D1< TOtherPointType > const &rOther)
Definition: sphere_3d_1.h:266
BaseType::ShapeFunctionsValuesContainerType ShapeFunctionsValuesContainerType
Definition: sphere_3d_1.h:122
BaseType::Pointer Create(const IndexType NewGeometryId, const BaseType &rGeometry) const override
Creates a new geometry pointer.
Definition: sphere_3d_1.h:323
BaseType::IntegrationPointType IntegrationPointType
Definition: sphere_3d_1.h:104
double DeterminantOfJacobian(IndexType IntegrationPointIndex, IntegrationMethod ThisMethod) const override
Definition: sphere_3d_1.h:530
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
const GeometryData Sphere3D1< TPointType >::msGeometryData & msGeometryDimension(), Sphere3D1< TPointType >::AllShapeFunctionsValues(), AllShapeFunctionsLocalGradients()
Definition: brep_curve.h:483
#define KRATOS_ERROR
Definition: exception.h:161
#define KRATOS_ERROR_IF(conditional)
Definition: exception.h:162
#define KRATOS_WARNING(label)
Definition: logger.h:265
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
Internals::Matrix< double, AMatrix::dynamic, AMatrix::dynamic > Matrix
Definition: amatrix_interface.h:470
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
N
Definition: sensitivityMatrix.py:29