KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
List of all members
Kratos::CouplingGeometry< TPointType > Class Template Reference

The CouplingGeometry connects two or more geometries of different types and entities. More...

#include <coupling_geometry.h>

Inheritance diagram for Kratos::CouplingGeometry< TPointType >:
Collaboration diagram for Kratos::CouplingGeometry< TPointType >:

Public Member Functions

Life Cycle
 CouplingGeometry (GeometryPointer pMasterGeometry, GeometryPointer pSlaveGeometry)
 Constructor for coupling one master to one slave geometry. More...
 
 CouplingGeometry (GeometryPointerVector GeometryPointerVector)
 Constructor for coupling multiple points. More...
 
 CouplingGeometry ()
 
 CouplingGeometry (CouplingGeometry const &rOther)
 Copy constructor. More...
 
template<class TOtherPointType >
 CouplingGeometry (CouplingGeometry< TOtherPointType > const &rOther)
 Copy constructor with other point type. More...
 
 ~CouplingGeometry () override=default
 Destructor. More...
 
Operators
CouplingGeometryoperator= (const CouplingGeometry &rOther)
 Assignment operator. More...
 
template<class TOtherPointType >
CouplingGeometryoperator= (CouplingGeometry< TOtherPointType > const &rOther)
 Assignment operator with different point type. More...
 
Operations
BaseType::Pointer Create (PointsArrayType const &ThisPoints) const override
 Creates a new geometry pointer. More...
 
Input and output
GeometryPointer pGetGeometryPart (const IndexType Index) override
 This function returns the pointer of the geometry part which is corresponding to the index. Checks if index is available only in debug. More...
 
const GeometryPointer pGetGeometryPart (const IndexType Index) const override
 This function returns the const pointer of the geometry part which is corresponding to the index. Checks if index is available only in debug. More...
 
void SetGeometryPart (const IndexType Index, GeometryPointer pGeometry) override
 Allows to exchange certain geometries. More...
 
IndexType AddGeometryPart (GeometryPointer pGeometry) override
 Allows to enhance the coupling geometry, with another geometry. More...
 
void RemoveGeometryPart (GeometryPointer pGeometry) override
 Removes a geometry part. More...
 
void RemoveGeometryPart (const IndexType Index) override
 Removes a geometry part. More...
 
bool HasGeometryPart (const IndexType Index) const override
 Use to check if certain Indexed object is within the geometry parts of this geometry. More...
 
SizeType NumberOfGeometryParts () const override
 The number of geometry part. More...
 
Geometry Information
double DomainSize () const override
 Returns the domain size of the master geometry. More...
 
Point Center () const override
 Returns the center of the master geometry. More...
 
Spans
virtual void SpansLocalSpace (std::vector< double > &rSpans, IndexType LocalDirectionIndex=0) const override
 
Inquiry
IntegrationInfo GetDefaultIntegrationInfo () const override
 Provides the default integration per geometry. More...
 
Integration Points
void CreateIntegrationPoints (IntegrationPointsArrayType &rIntegrationPoints, IntegrationInfo &rIntegrationInfo) const override
 
void CreateQuadraturePointGeometries (GeometriesArrayType &rResultGeometries, IndexType NumberOfShapeFunctionDerivatives, const IntegrationPointsArrayType &rIntegrationPoints, IntegrationInfo &rIntegrationInfo) override
 
void CreateQuadraturePointGeometries (GeometriesArrayType &rResultGeometries, IndexType NumberOfShapeFunctionDerivatives, IntegrationInfo &rIntegrationInfo) override
 
Geometry Family
GeometryData::KratosGeometryFamily GetGeometryFamily () const override
 
GeometryData::KratosGeometryType GetGeometryType () const override
 
Information
std::string Info () const override
 Turn back information as a string. More...
 
void PrintInfo (std::ostream &rOStream) const override
 Print information about this object. More...
 
void PrintData (std::ostream &rOStream) const override
 Print object's data. More...
 
- Public Member Functions inherited from Kratos::Geometry< TPointType >
 Geometry ()
 Standard Constructor. Generates self assigned id. More...
 
 Geometry (IndexType GeomertyId)
 Standard Constructor with a geometry Id. More...
 
 Geometry (const std::string &GeometryName)
 Standard Constructor with a Name. More...
 
 Geometry (const PointsArrayType &ThisPoints, GeometryData const *pThisGeometryData=&GeometryDataInstance())
 
 Geometry (IndexType GeometryId, const PointsArrayType &ThisPoints, GeometryData const *pThisGeometryData=&GeometryDataInstance())
 
 Geometry (const std::string &GeometryName, const PointsArrayType &ThisPoints, GeometryData const *pThisGeometryData=&GeometryDataInstance())
 
 Geometry (const Geometry &rOther)
 Copy constructor. More...
 
template<class TOtherPointType >
 Geometry (Geometry< TOtherPointType > const &rOther)
 Copy constructor with TOtherPointType. More...
 
virtual ~Geometry ()
 Destructor. Do nothing!!! More...
 
Geometryoperator= (const Geometry &rOther)
 
template<class TOtherPointType >
Geometryoperator= (Geometry< TOtherPointType > const &rOther)
 
 operator PointsArrayType & ()
 
TPointType & operator[] (const SizeType &i)
 
TPointType const & operator[] (const SizeType &i) const
 
PointPointerTypeoperator() (const SizeType &i)
 
ConstPointPointerTypeoperator() (const SizeType &i) const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
ptr_iterator ptr_begin ()
 
ptr_const_iterator ptr_begin () const
 
ptr_iterator ptr_end ()
 
ptr_const_iterator ptr_end () const
 
PointReferenceType front ()
 
ConstPointReferenceType front () const
 
PointReferenceType back ()
 
ConstPointReferenceType back () const
 
SizeType size () const
 
SizeType PointsNumber () const
 
virtual SizeType PointsNumberInDirection (IndexType LocalDirectionIndex) const
 Returns number of points per direction. More...
 
SizeType max_size () const
 
void swap (GeometryType &rOther)
 
void push_back (PointPointerType x)
 
void clear ()
 
void reserve (int dim)
 
int capacity ()
 
PointPointerContainerTypeGetContainer ()
 ‍** Gives a reference to underly normal container. *‍/ More...
 
const PointPointerContainerTypeGetContainer () const
 
DataValueContainerGetData ()
 
DataValueContainer const & GetData () const
 
void SetData (DataValueContainer const &rThisData)
 
template<class TDataType >
bool Has (const Variable< TDataType > &rThisVariable) const
 
template<class TVariableType >
void SetValue (const TVariableType &rThisVariable, typename TVariableType::Type const &rValue)
 
template<class TVariableType >
TVariableType::Type & GetValue (const TVariableType &rThisVariable)
 
template<class TVariableType >
TVariableType::Type const & GetValue (const TVariableType &rThisVariable) const
 
virtual void Assign (const Variable< bool > &rVariable, const bool Input)
 Assign with bool. More...
 
virtual void Assign (const Variable< int > &rVariable, const int Input)
 Assign with int. More...
 
virtual void Assign (const Variable< double > &rVariable, const double Input)
 Assign with double. More...
 
virtual void Assign (const Variable< array_1d< double, 2 >> &rVariable, const array_1d< double, 2 > &rInput)
 Assign with array_1d<double, 2> More...
 
virtual void Assign (const Variable< array_1d< double, 3 >> &rVariable, const array_1d< double, 3 > &rInput)
 Assign with array_1d<double, 3> More...
 
virtual void Assign (const Variable< array_1d< double, 6 >> &rVariable, const array_1d< double, 6 > &rInput)
 Assign with array_1d<double, 6> More...
 
virtual void Assign (const Variable< Vector > &rVariable, const Vector &rInput)
 Assign with Vector. More...
 
virtual void Assign (const Variable< Matrix > &rVariable, const Matrix &rInput)
 Assign with Matrix. More...
 
virtual void Calculate (const Variable< bool > &rVariable, bool &rOutput) const
 Calculate with bool. More...
 
virtual void Calculate (const Variable< int > &rVariable, int &rOutput) const
 Calculate with int. More...
 
virtual void Calculate (const Variable< double > &rVariable, double &rOutput) const
 Calculate with double. More...
 
virtual void Calculate (const Variable< array_1d< double, 2 >> &rVariable, array_1d< double, 2 > &rOutput) const
 Calculate with array_1d<double, 2> More...
 
virtual void Calculate (const Variable< array_1d< double, 3 >> &rVariable, array_1d< double, 3 > &rOutput) const
 Calculate with array_1d<double, 3> More...
 
virtual void Calculate (const Variable< array_1d< double, 6 >> &rVariable, array_1d< double, 6 > &rOutput) const
 Calculate with array_1d<double, 6> More...
 
virtual void Calculate (const Variable< Vector > &rVariable, Vector &rOutput) const
 Calculate with Vector. More...
 
virtual void Calculate (const Variable< Matrix > &rVariable, Matrix &rOutput) const
 Calculate with Matrix. More...
 
virtual Pointer Create (const IndexType NewGeometryId, PointsArrayType const &rThisPoints) const
 Creates a new geometry pointer. More...
 
Pointer Create (const std::string &rNewGeometryName, PointsArrayType const &rThisPoints) const
 Creates a new geometry pointer. More...
 
virtual Pointer Create (const GeometryType &rGeometry) const
 Creates a new geometry pointer. More...
 
virtual Pointer Create (const IndexType NewGeometryId, const GeometryType &rGeometry) const
 Creates a new geometry pointer. More...
 
Pointer Create (const std::string &rNewGeometryName, const GeometryType &rGeometry) const
 Creates a new geometry pointer. More...
 
void ClonePoints ()
 
virtual VectorLumpingFactors (Vector &rResult, const LumpingMethods LumpingMethod=LumpingMethods::ROW_SUM) const
 Lumping factors for the calculation of the lumped mass matrix. More...
 
GeometryData const & GetGeometryData () const
 GeometryData contains all information about dimensions and has a set of precomputed values for integration points and shape functions, including derivatives. More...
 
virtual void SetGeometryShapeFunctionContainer (const GeometryShapeFunctionContainer< GeometryData::IntegrationMethod > &rGeometryShapeFunctionContainer)
 
virtual GeometryTypeGetGeometryParent (IndexType Index) const
 Some geometries require relations to other geometries. This is the case for e.g. quadrature points. To reach the parent geometry this function can be used. More...
 
virtual void SetGeometryParent (GeometryType *pGeometryParent)
 Some geometries require relations to other geometries. This is the case for e.g. quadrature points. To set or change the parent geometry this function can be used. More...
 
virtual GeometryTypeGetGeometryPart (const IndexType Index)
 Used for composite geometries. It returns the the geometry part, corresponding to the Index. More...
 
virtual const GeometryTypeGetGeometryPart (const IndexType Index) const
 Used for composite geometries. It returns the the geometry part, corresponding to the Index. More...
 
SizeType WorkingSpaceDimension () const
 
SizeType LocalSpaceDimension () const
 
virtual SizeType PolynomialDegree (IndexType LocalDirectionIndex) const
 Return polynomial degree of the geometry in a certain direction. More...
 
virtual double Length () const
 
virtual double Area () const
 This method calculate and return area or surface area of this geometry depending to it's dimension. More...
 
virtual double Volume () const
 This method calculate and return volume of this geometry. More...
 
virtual double MinEdgeLength () const
 
virtual double MaxEdgeLength () const
 
virtual double AverageEdgeLength () const
 
virtual double Circumradius () const
 
virtual double Inradius () const
 
virtual bool HasIntersection (const GeometryType &ThisGeometry) const
 
virtual bool HasIntersection (const Point &rLowPoint, const Point &rHighPoint) const
 
virtual void BoundingBox (TPointType &rLowPoint, TPointType &rHighPoint) const
 Calculates the boundingbox of the geometry. More...
 
virtual array_1d< double, 3 > Normal (const CoordinatesArrayType &rPointLocalCoordinates) const
 It returns a vector that is normal to its corresponding geometry in the given local point. More...
 
virtual array_1d< double, 3 > Normal (IndexType IntegrationPointIndex) const
 It returns the vector, which is normal to its corresponding geometry in the given integration point for the default integration method. More...
 
virtual array_1d< double, 3 > Normal (IndexType IntegrationPointIndex, IntegrationMethod ThisMethod) const
 It returns the vector, which is normal to its corresponding geometry in the given integration point. More...
 
virtual array_1d< double, 3 > UnitNormal (const CoordinatesArrayType &rPointLocalCoordinates) const
 It computes the unit normal of the geometry in the given local point. More...
 
virtual array_1d< double, 3 > UnitNormal (IndexType IntegrationPointIndex) const
 It returns the normalized normal vector in the given integration point. More...
 
virtual array_1d< double, 3 > UnitNormal (IndexType IntegrationPointIndex, IntegrationMethod ThisMethod) const
 It returns the normalized normal vector in the given integration point. More...
 
double Quality (const QualityCriteria qualityCriteria) const
 
virtual void ComputeDihedralAngles (Vector &rDihedralAngles) const
 
virtual void ComputeSolidAngles (Vector &rSolidAngles) const
 
const PointsArrayTypePoints () const
 
PointsArrayTypePoints ()
 
const TPointType::Pointer pGetPoint (const int Index) const
 
TPointType::Pointer pGetPoint (const int Index)
 
TPointType const & GetPoint (const int Index) const
 
TPointType & GetPoint (const int Index)
 
virtual MatrixPointsLocalCoordinates (Matrix &rResult) const
 
virtual CoordinatesArrayTypePointLocalCoordinates (CoordinatesArrayType &rResult, const CoordinatesArrayType &rPoint) const
 Returns the local coordinates of a given arbitrary point. More...
 
virtual bool IsInside (const CoordinatesArrayType &rPointGlobalCoordinates, CoordinatesArrayType &rResult, const double Tolerance=std::numeric_limits< double >::epsilon()) const
 Checks if given point in global space coordinates is inside the geometry boundaries. This function computes the local coordinates and checks then if this point lays within the boundaries. More...
 
virtual int IsInsideLocalSpace (const CoordinatesArrayType &rPointLocalCoordinates, const double Tolerance=std::numeric_limits< double >::epsilon()) const
 Checks if given point in local space coordinates of this geometry is inside the geometry boundaries. More...
 
virtual GeometriesArrayType GenerateBoundariesEntities () const
 This method gives you all boundaries entities of this geometry. More...
 
virtual GeometriesArrayType GeneratePoints () const
 This method gives you all points of this geometry. More...
 
virtual SizeType EdgesNumber () const
 This method gives you number of all edges of this geometry. More...
 
 KRATOS_DEPRECATED_MESSAGE ("This is legacy version (use GenerateEdges instead)") virtual GeometriesArrayType Edges(void)
 This method gives you all edges of this geometry. More...
 
virtual GeometriesArrayType GenerateEdges () const
 This method gives you all edges of this geometry. More...
 
virtual SizeType FacesNumber () const
 Returns the number of faces of the current geometry. More...
 
 KRATOS_DEPRECATED_MESSAGE ("This is legacy version (use GenerateFaces instead)") virtual GeometriesArrayType Faces(void)
 Returns all faces of the current geometry. More...
 
virtual GeometriesArrayType GenerateFaces () const
 Returns all faces of the current geometry. More...
 
virtual void NumberNodesInFaces (DenseVector< unsigned int > &rNumberNodesInFaces) const
 
virtual void NodesInFaces (DenseMatrix< unsigned int > &rNodesInFaces) const
 
SizeType IntegrationPointsNumber () const
 
SizeType IntegrationPointsNumber (IntegrationMethod ThisMethod) const
 
const IntegrationPointsArrayTypeIntegrationPoints () const
 
const IntegrationPointsArrayTypeIntegrationPoints (IntegrationMethod ThisMethod) const
 
virtual CoordinatesArrayTypeGlobalCoordinates (CoordinatesArrayType &rResult, CoordinatesArrayType const &LocalCoordinates) const
 
void GlobalCoordinates (CoordinatesArrayType &rResult, IndexType IntegrationPointIndex) const
 
void GlobalCoordinates (CoordinatesArrayType &rResult, IndexType IntegrationPointIndex, const IntegrationMethod ThisMethod) const
 This method provides the global coordinates to the corresponding integration point. More...
 
virtual CoordinatesArrayTypeGlobalCoordinates (CoordinatesArrayType &rResult, CoordinatesArrayType const &LocalCoordinates, Matrix &DeltaPosition) const
 
virtual void GlobalSpaceDerivatives (std::vector< CoordinatesArrayType > &rGlobalSpaceDerivatives, const CoordinatesArrayType &rLocalCoordinates, const SizeType DerivativeOrder) const
 This method maps from dimension space to working space and computes the number of derivatives at the dimension parameter. More...
 
virtual void GlobalSpaceDerivatives (std::vector< CoordinatesArrayType > &rGlobalSpaceDerivatives, IndexType IntegrationPointIndex, const SizeType DerivativeOrder) const
 This method maps from dimension space to working space and computes the number of derivatives at the dimension parameter. More...
 
virtual int ProjectionPoint (const CoordinatesArrayType &rPointGlobalCoordinates, CoordinatesArrayType &rProjectedPointGlobalCoordinates, CoordinatesArrayType &rProjectedPointLocalCoordinates, const double Tolerance=std::numeric_limits< double >::epsilon()) const
 Projects a certain point on the geometry, or finds the closest point, depending on the provided initial guess. The external point does not necessary lay on the geometry. It shall deal as the interface to the mathematical projection function e.g. the Newton-Raphson. Thus, the breaking criteria does not necessarily mean that it found a point on the surface, if it is really the closest if or not. It shows only if the breaking criteria, defined by the tolerance is reached. More...
 
virtual int ProjectionPointLocalToLocalSpace (const CoordinatesArrayType &rPointLocalCoordinates, CoordinatesArrayType &rProjectionPointLocalCoordinates, const double Tolerance=std::numeric_limits< double >::epsilon()) const
 Projects a point onto the geometry Projects a certain point on the geometry, or finds the closest point, depending on the provided initial guess. The external point does not necessary lay on the geometry. It shall deal as the interface to the mathematical projection function e.g. the Newton-Raphson. Thus, the breaking criteria does not necessarily mean that it found a point on the surface, if it is really the closest if or not. It shows only if the breaking criteria, defined by the tolerance is reached. This function requires an initial guess, provided by rProjectionPointLocalCoordinates. This function can be a very costly operation. More...
 
virtual int ProjectionPointGlobalToLocalSpace (const CoordinatesArrayType &rPointGlobalCoordinates, CoordinatesArrayType &rProjectionPointLocalCoordinates, const double Tolerance=std::numeric_limits< double >::epsilon()) const
 Projects a point onto the geometry Projects a certain point on the geometry, or finds the closest point, depending on the provided initial guess. The external point does not necessary lay on the geometry. It shall deal as the interface to the mathematical projection function e.g. the Newton-Raphson. Thus, the breaking criteria does not necessarily mean that it found a point on the surface, if it is really the closest if or not. It shows only if the breaking criteria, defined by the tolerance is reached. This function requires an initial guess, provided by rProjectionPointLocalCoordinates. This function can be a very costly operation. More...
 
virtual int ClosestPoint (const CoordinatesArrayType &rPointGlobalCoordinates, CoordinatesArrayType &rClosestPointGlobalCoordinates, CoordinatesArrayType &rClosestPointLocalCoordinates, const double Tolerance=std::numeric_limits< double >::epsilon()) const
 Returns all coordinates of the closest point on the geometry given to an arbitrary point in global coordinates. The basic concept is to first do a projection towards this geometry and second checking if the projection was successfull or if no point on the geometry was found. More...
 
virtual int ClosestPoint (const CoordinatesArrayType &rPointGlobalCoordinates, CoordinatesArrayType &rClosestPointGlobalCoordinates, const double Tolerance=std::numeric_limits< double >::epsilon()) const
 Returns global coordinates of the closest point on the geometry given to an arbitrary point in global coordinates. The basic concept is to first do a projection towards this geometry and second checking if the projection was successfull or if no point on the geometry was found. More...
 
virtual int ClosestPointLocalCoordinates (const CoordinatesArrayType &rPointGlobalCoordinates, CoordinatesArrayType &rClosestPointLocalCoordinates, const double Tolerance=std::numeric_limits< double >::epsilon()) const
 Returns local coordinates of the closest point on the geometry given to an arbitrary point in global coordinates. The basic concept is to first do a projection towards this geometry and second checking if the projection was successfull or if no point on the geometry was found. More...
 
virtual int ClosestPointLocalToLocalSpace (const CoordinatesArrayType &rPointLocalCoordinates, CoordinatesArrayType &rClosestPointLocalCoordinates, const double Tolerance=std::numeric_limits< double >::epsilon()) const
 Calculates the closes point projection This method calculates the closest point projection of a point in local space coordinates. More...
 
virtual int ClosestPointGlobalToLocalSpace (const CoordinatesArrayType &rPointGlobalCoordinates, CoordinatesArrayType &rClosestPointLocalCoordinates, const double Tolerance=std::numeric_limits< double >::epsilon()) const
 Calculates the closes point projection This method calculates the closest point projection of a point in global space coordinates. More...
 
virtual double CalculateDistance (const CoordinatesArrayType &rPointGlobalCoordinates, const double Tolerance=std::numeric_limits< double >::epsilon()) const
 Computes the distance between an point in global coordinates and the closest point of this geometry. If projection fails, double::max will be returned. More...
 
JacobiansTypeJacobian (JacobiansType &rResult) const
 
virtual JacobiansTypeJacobian (JacobiansType &rResult, IntegrationMethod ThisMethod) const
 
virtual JacobiansTypeJacobian (JacobiansType &rResult, IntegrationMethod ThisMethod, Matrix &DeltaPosition) const
 
MatrixJacobian (Matrix &rResult, IndexType IntegrationPointIndex) const
 
virtual MatrixJacobian (Matrix &rResult, IndexType IntegrationPointIndex, IntegrationMethod ThisMethod) const
 
virtual MatrixJacobian (Matrix &rResult, IndexType IntegrationPointIndex, IntegrationMethod ThisMethod, const Matrix &rDeltaPosition) const
 
virtual MatrixJacobian (Matrix &rResult, const CoordinatesArrayType &rCoordinates) const
 
virtual MatrixJacobian (Matrix &rResult, const CoordinatesArrayType &rCoordinates, Matrix &rDeltaPosition) const
 
VectorDeterminantOfJacobian (Vector &rResult) const
 
virtual VectorDeterminantOfJacobian (Vector &rResult, IntegrationMethod ThisMethod) const
 
double DeterminantOfJacobian (IndexType IntegrationPointIndex) const
 
virtual double DeterminantOfJacobian (IndexType IntegrationPointIndex, IntegrationMethod ThisMethod) const
 
virtual double DeterminantOfJacobian (const CoordinatesArrayType &rPoint) const
 
JacobiansTypeInverseOfJacobian (JacobiansType &rResult) const
 
virtual JacobiansTypeInverseOfJacobian (JacobiansType &rResult, IntegrationMethod ThisMethod) const
 
MatrixInverseOfJacobian (Matrix &rResult, IndexType IntegrationPointIndex) const
 
virtual MatrixInverseOfJacobian (Matrix &rResult, IndexType IntegrationPointIndex, IntegrationMethod ThisMethod) const
 
virtual MatrixInverseOfJacobian (Matrix &rResult, const CoordinatesArrayType &rCoordinates) const
 
const MatrixShapeFunctionsValues () const
 
virtual VectorShapeFunctionsValues (Vector &rResult, const CoordinatesArrayType &rCoordinates) const
 
const MatrixShapeFunctionsValues (IntegrationMethod ThisMethod) const
 
double ShapeFunctionValue (IndexType IntegrationPointIndex, IndexType ShapeFunctionIndex) const
 
double ShapeFunctionValue (IndexType IntegrationPointIndex, IndexType ShapeFunctionIndex, IntegrationMethod ThisMethod) const
 
virtual double ShapeFunctionValue (IndexType ShapeFunctionIndex, const CoordinatesArrayType &rCoordinates) const
 
const ShapeFunctionsGradientsTypeShapeFunctionsLocalGradients () const
 
const ShapeFunctionsGradientsTypeShapeFunctionsLocalGradients (IntegrationMethod ThisMethod) const
 
const MatrixShapeFunctionLocalGradient (IndexType IntegrationPointIndex) const
 
const MatrixShapeFunctionLocalGradient (IndexType IntegrationPointIndex, IntegrationMethod ThisMethod) const
 
const MatrixShapeFunctionLocalGradient (IndexType IntegrationPointIndex, IndexType ShapeFunctionIndex, IntegrationMethod ThisMethod) const
 
virtual MatrixShapeFunctionsLocalGradients (Matrix &rResult, const CoordinatesArrayType &rPoint) const
 
const MatrixShapeFunctionDerivatives (IndexType DerivativeOrderIndex, IndexType IntegrationPointIndex, IntegrationMethod ThisMethod) const
 
const MatrixShapeFunctionDerivatives (IndexType DerivativeOrderIndex, IndexType IntegrationPointIndex) const
 
virtual ShapeFunctionsSecondDerivativesTypeShapeFunctionsSecondDerivatives (ShapeFunctionsSecondDerivativesType &rResult, const CoordinatesArrayType &rPoint) const
 
virtual ShapeFunctionsThirdDerivativesTypeShapeFunctionsThirdDerivatives (ShapeFunctionsThirdDerivativesType &rResult, const CoordinatesArrayType &rPoint) const
 
void ShapeFunctionsIntegrationPointsGradients (ShapeFunctionsGradientsType &rResult) const
 
virtual void ShapeFunctionsIntegrationPointsGradients (ShapeFunctionsGradientsType &rResult, IntegrationMethod ThisMethod) const
 
virtual void ShapeFunctionsIntegrationPointsGradients (ShapeFunctionsGradientsType &rResult, Vector &rDeterminantsOfJacobian, IntegrationMethod ThisMethod) const
 
virtual void ShapeFunctionsIntegrationPointsGradients (ShapeFunctionsGradientsType &rResult, Vector &rDeterminantsOfJacobian, IntegrationMethod ThisMethod, Matrix &ShapeFunctionsIntegrationPointsValues) const
 
virtual int Check () const
 
virtual std::string Name () const
 Returns name. More...
 
virtual void PrintName (std::ostream &rOstream) const
 Print name. More...
 
 KRATOS_CLASS_POINTER_DEFINITION (Geometry)
 Pointer definition of Geometry. More...
 
bool empty () const
 
bool HasIntegrationMethod (IntegrationMethod ThisMethod) const
 
IntegrationMethod GetDefaultIntegrationMethod () const
 
virtual bool IsSymmetric () const
 
IndexType const & Id () const
 Id of this Geometry. More...
 
bool IsIdGeneratedFromString ()
 Returns if id was generated from a geometry name. More...
 
bool IsIdSelfAssigned ()
 Returns if id was generated by itself. More...
 
void SetId (const IndexType Id)
 Sets Id of this Geometry. More...
 
void SetId (const std::string &rName)
 Sets Id with the use of the name of this geometry. More...
 

Static Public Member Functions

Span Utilities
static void MergeSpans (std::vector< double > &rResultSpans, const std::vector< double > &rSpans1, const std::vector< double > &rSpans2, double Tolerance=1e-6)
 
static void SortUnique (std::vector< double > &rResultSpans, const double Tolerance)
 
- Static Public Member Functions inherited from Kratos::Geometry< TPointType >
static bool HasSameType (const GeometryType &rLHS, const GeometryType &rRHS)
 Checks if two GeometryType have the same type. More...
 
static bool HasSameType (const GeometryType *rLHS, const GeometryType *rRHS)
 Checks if two GeometryType have the same type (pointer version) More...
 
static bool HasSameGeometryType (const GeometryType &rLHS, const GeometryType &rRHS)
 Checks if two GeometryType have the same geometry type. More...
 
static bool HasSameGeometryType (const GeometryType *rLHS, const GeometryType *rRHS)
 Checks if two GeometryType have the same geometry type (pointer version) More...
 
static bool IsSame (const GeometryType &rLHS, const GeometryType &rRHS)
 Checks if two GeometryType are the same. More...
 
static bool IsSame (const GeometryType *rLHS, const GeometryType *rRHS)
 Checks if two GeometryType are the same (pointer version) More...
 
static IndexType GenerateId (const std::string &rName)
 Gets the corresponding hash-Id to a string name. More...
 

Static Public Attributes

Public Static Members
static constexpr IndexType Master = 0
 
static constexpr IndexType Slave = 1
 
- Static Public Attributes inherited from Kratos::Geometry< TPointType >
static constexpr IndexType BACKGROUND_GEOMETRY_INDEX = std::numeric_limits<IndexType>::max()
 

Friends

Private Friends
template<class TOtherPointType >
class CouplingGeometry
 
- Friends inherited from Kratos::Geometry< TPointType >

Type Definitions

typedef Geometry< TPointType > BaseType
 Geometry as base class. More...
 
typedef Geometry< TPointType > GeometryType
 
typedef GeometryType::Pointer GeometryPointer
 
typedef std::vector< GeometryPointerGeometryPointerVector
 
typedef TPointType PointType
 
typedef BaseType::IndexType IndexType
 
typedef BaseType::SizeType SizeType
 
typedef BaseType::IntegrationPointsArrayType IntegrationPointsArrayType
 
typedef BaseType::PointsArrayType PointsArrayType
 
typedef BaseType::CoordinatesArrayType CoordinatesArrayType
 
typedef std::vector< CoordinatesArrayTypeCoordinatesArrayVectorType
 
typedef PointerVector< GeometryTypeGeometriesArrayType
 
 KRATOS_CLASS_POINTER_DEFINITION (CouplingGeometry)
 Pointer definition of CouplingGeometry. More...
 

Serialization

class Serializer
 

Additional Inherited Members

- Public Types inherited from Kratos::Geometry< TPointType >
enum class  QualityCriteria {
  INRADIUS_TO_CIRCUMRADIUS , AREA_TO_LENGTH , SHORTEST_ALTITUDE_TO_LENGTH , INRADIUS_TO_LONGEST_EDGE ,
  SHORTEST_TO_LONGEST_EDGE , REGULARITY , VOLUME_TO_SURFACE_AREA , VOLUME_TO_EDGE_LENGTH ,
  VOLUME_TO_AVERAGE_EDGE_LENGTH , VOLUME_TO_RMS_EDGE_LENGTH , MIN_DIHEDRAL_ANGLE , MAX_DIHEDRAL_ANGLE ,
  MIN_SOLID_ANGLE
}
 
enum class  LumpingMethods { ROW_SUM , DIAGONAL_SCALING , QUADRATURE_ON_NODES }
 This defines the different methods to compute the lumping methods. More...
 
typedef Geometry< TPointType > GeometryType
 This Geometry type. More...
 
typedef PointerVector< TPointType > PointsArrayType
 
typedef GeometryData::IntegrationMethod IntegrationMethod
 
typedef PointerVector< GeometryTypeGeometriesArrayType
 
typedef TPointType PointType
 
typedef std::size_t IndexType
 
typedef std::size_t SizeType
 
typedef PointType::CoordinatesArrayType CoordinatesArrayType
 
typedef IntegrationPoint< 3 > IntegrationPointType
 
typedef std::vector< IntegrationPointTypeIntegrationPointsArrayType
 
typedef std::array< IntegrationPointsArrayType, static_cast< int >GeometryData::IntegrationMethod::NumberOfIntegrationMethods)> IntegrationPointsContainerType
 
typedef std::array< Matrix, static_cast< int >GeometryData::IntegrationMethod::NumberOfIntegrationMethods)> ShapeFunctionsValuesContainerType
 
typedef GeometryData::ShapeFunctionsLocalGradientsContainerType ShapeFunctionsLocalGradientsContainerType
 
typedef DenseVector< MatrixJacobiansType
 
typedef GeometryData::ShapeFunctionsGradientsType ShapeFunctionsGradientsType
 
typedef GeometryData::ShapeFunctionsSecondDerivativesType ShapeFunctionsSecondDerivativesType
 
typedef GeometryData::ShapeFunctionsThirdDerivativesType ShapeFunctionsThirdDerivativesType
 
typedef DenseVector< doubleNormalType
 
typedef PointType::Pointer PointPointerType
 data type stores in this container. More...
 
typedef const PointPointerType ConstPointPointerType
 
typedef TPointType & PointReferenceType
 
typedef const TPointType & ConstPointReferenceType
 
typedef std::vector< PointPointerTypePointPointerContainerType
 
typedef PointsArrayType::iterator iterator
 PointsArrayType typedefs. More...
 
typedef PointsArrayType::const_iterator const_iterator
 
typedef PointsArrayType::ptr_iterator ptr_iterator
 
typedef PointsArrayType::ptr_const_iterator ptr_const_iterator
 
typedef PointsArrayType::difference_type difference_type
 
- Protected Member Functions inherited from Kratos::Geometry< TPointType >
void SetGeometryData (GeometryData const *pGeometryData)
 updates the pointer to GeometryData of the respective geometry. More...
 
virtual double InradiusToCircumradiusQuality () const
 Quality functions. More...
 
virtual double AreaToEdgeLengthRatio () const
 
virtual double ShortestAltitudeToEdgeLengthRatio () const
 
virtual double InradiusToLongestEdgeQuality () const
 
virtual double ShortestToLongestEdgeQuality () const
 
virtual double RegularityQuality () const
 
virtual double VolumeToSurfaceAreaQuality () const
 
virtual double VolumeToEdgeLengthQuality () const
 
virtual double VolumeToAverageEdgeLength () const
 
virtual double VolumeToRMSEdgeLength () const
 
virtual double MinDihedralAngle () const
 
virtual double MaxDihedralAngle () const
 
virtual double MinSolidAngle () const
 
bool AllPointsAreValid () const
 Checks if the geometry points are valid Checks if the geometry points are valid from the pointer value Points are not valid when the pointer value is null. More...
 

Detailed Description

template<class TPointType>
class Kratos::CouplingGeometry< TPointType >

The CouplingGeometry connects two or more geometries of different types and entities.

Member Typedef Documentation

◆ BaseType

template<class TPointType >
typedef Geometry<TPointType> Kratos::CouplingGeometry< TPointType >::BaseType

Geometry as base class.

◆ CoordinatesArrayType

template<class TPointType >
typedef BaseType::CoordinatesArrayType Kratos::CouplingGeometry< TPointType >::CoordinatesArrayType

◆ CoordinatesArrayVectorType

template<class TPointType >
typedef std::vector<CoordinatesArrayType> Kratos::CouplingGeometry< TPointType >::CoordinatesArrayVectorType

◆ GeometriesArrayType

template<class TPointType >
typedef PointerVector<GeometryType> Kratos::CouplingGeometry< TPointType >::GeometriesArrayType

◆ GeometryPointer

template<class TPointType >
typedef GeometryType::Pointer Kratos::CouplingGeometry< TPointType >::GeometryPointer

◆ GeometryPointerVector

template<class TPointType >
typedef std::vector<GeometryPointer> Kratos::CouplingGeometry< TPointType >::GeometryPointerVector

◆ GeometryType

template<class TPointType >
typedef Geometry<TPointType> Kratos::CouplingGeometry< TPointType >::GeometryType

◆ IndexType

template<class TPointType >
typedef BaseType::IndexType Kratos::CouplingGeometry< TPointType >::IndexType

◆ IntegrationPointsArrayType

◆ PointsArrayType

template<class TPointType >
typedef BaseType::PointsArrayType Kratos::CouplingGeometry< TPointType >::PointsArrayType

◆ PointType

template<class TPointType >
typedef TPointType Kratos::CouplingGeometry< TPointType >::PointType

◆ SizeType

template<class TPointType >
typedef BaseType::SizeType Kratos::CouplingGeometry< TPointType >::SizeType

Constructor & Destructor Documentation

◆ CouplingGeometry() [1/5]

template<class TPointType >
Kratos::CouplingGeometry< TPointType >::CouplingGeometry ( GeometryPointer  pMasterGeometry,
GeometryPointer  pSlaveGeometry 
)
inline

Constructor for coupling one master to one slave geometry.

◆ CouplingGeometry() [2/5]

template<class TPointType >
Kratos::CouplingGeometry< TPointType >::CouplingGeometry ( GeometryPointerVector  GeometryPointerVector)
inline

Constructor for coupling multiple points.

◆ CouplingGeometry() [3/5]

template<class TPointType >
Kratos::CouplingGeometry< TPointType >::CouplingGeometry ( )
inlineexplicit

◆ CouplingGeometry() [4/5]

template<class TPointType >
Kratos::CouplingGeometry< TPointType >::CouplingGeometry ( CouplingGeometry< TPointType > const &  rOther)
inline

Copy constructor.

◆ CouplingGeometry() [5/5]

template<class TPointType >
template<class TOtherPointType >
Kratos::CouplingGeometry< TPointType >::CouplingGeometry ( CouplingGeometry< TOtherPointType > const &  rOther)
inlineexplicit

Copy constructor with other point type.

◆ ~CouplingGeometry()

template<class TPointType >
Kratos::CouplingGeometry< TPointType >::~CouplingGeometry ( )
overridedefault

Destructor.

Member Function Documentation

◆ AddGeometryPart()

template<class TPointType >
IndexType Kratos::CouplingGeometry< TPointType >::AddGeometryPart ( GeometryPointer  pGeometry)
inlineoverridevirtual

Allows to enhance the coupling geometry, with another geometry.

Parameters
pGeometryThe new geometry to add

Reimplemented from Kratos::Geometry< TPointType >.

◆ Center()

template<class TPointType >
Point Kratos::CouplingGeometry< TPointType >::Center ( ) const
inlineoverridevirtual

Returns the center of the master geometry.

Returns
The center of the master geometry

Reimplemented from Kratos::Geometry< TPointType >.

◆ Create()

template<class TPointType >
BaseType::Pointer Kratos::CouplingGeometry< TPointType >::Create ( PointsArrayType const &  rThisPoints) const
inlineoverridevirtual

Creates a new geometry pointer.

Parameters
rThisPointsthe nodes of the new geometry
Returns
Pointer to the new geometry

Reimplemented from Kratos::Geometry< TPointType >.

◆ CreateIntegrationPoints()

template<class TPointType >
void Kratos::CouplingGeometry< TPointType >::CreateIntegrationPoints ( IntegrationPointsArrayType rIntegrationPoints,
IntegrationInfo rIntegrationInfo 
) const
inlineoverridevirtual

Reimplemented from Kratos::Geometry< TPointType >.

◆ CreateQuadraturePointGeometries() [1/2]

template<class TPointType >
void Kratos::CouplingGeometry< TPointType >::CreateQuadraturePointGeometries ( GeometriesArrayType rResultGeometries,
IndexType  NumberOfShapeFunctionDerivatives,
const IntegrationPointsArrayType rIntegrationPoints,
IntegrationInfo rIntegrationInfo 
)
inlineoverridevirtual

Reimplemented from Kratos::Geometry< TPointType >.

◆ CreateQuadraturePointGeometries() [2/2]

template<class TPointType >
void Kratos::CouplingGeometry< TPointType >::CreateQuadraturePointGeometries ( GeometriesArrayType rResultGeometries,
IndexType  NumberOfShapeFunctionDerivatives,
IntegrationInfo rIntegrationInfo 
)
inlineoverridevirtual

Reimplemented from Kratos::Geometry< TPointType >.

◆ DomainSize()

template<class TPointType >
double Kratos::CouplingGeometry< TPointType >::DomainSize ( ) const
inlineoverridevirtual

Returns the domain size of the master geometry.

Returns
The domaon size of the master geometry

Reimplemented from Kratos::Geometry< TPointType >.

◆ GetDefaultIntegrationInfo()

template<class TPointType >
IntegrationInfo Kratos::CouplingGeometry< TPointType >::GetDefaultIntegrationInfo ( ) const
inlineoverridevirtual

Provides the default integration per geometry.

Reimplemented from Kratos::Geometry< TPointType >.

◆ GetGeometryFamily()

template<class TPointType >
GeometryData::KratosGeometryFamily Kratos::CouplingGeometry< TPointType >::GetGeometryFamily ( ) const
inlineoverridevirtual

Reimplemented from Kratos::Geometry< TPointType >.

◆ GetGeometryType()

template<class TPointType >
GeometryData::KratosGeometryType Kratos::CouplingGeometry< TPointType >::GetGeometryType ( ) const
inlineoverridevirtual

Reimplemented from Kratos::Geometry< TPointType >.

◆ HasGeometryPart()

template<class TPointType >
bool Kratos::CouplingGeometry< TPointType >::HasGeometryPart ( const IndexType  Index) const
inlineoverridevirtual

Use to check if certain Indexed object is within the geometry parts of this geometry.

Parameters
Indexof the geometry part. This index can be used differently within the derived classes.
Returns
true if has geometry part

Reimplemented from Kratos::Geometry< TPointType >.

◆ Info()

template<class TPointType >
std::string Kratos::CouplingGeometry< TPointType >::Info ( ) const
inlineoverridevirtual

Turn back information as a string.

Reimplemented from Kratos::Geometry< TPointType >.

◆ KRATOS_CLASS_POINTER_DEFINITION()

template<class TPointType >
Kratos::CouplingGeometry< TPointType >::KRATOS_CLASS_POINTER_DEFINITION ( CouplingGeometry< TPointType >  )

Pointer definition of CouplingGeometry.

◆ MergeSpans()

template<class TPointType >
static void Kratos::CouplingGeometry< TPointType >::MergeSpans ( std::vector< double > &  rResultSpans,
const std::vector< double > &  rSpans1,
const std::vector< double > &  rSpans2,
double  Tolerance = 1e-6 
)
inlinestatic

◆ NumberOfGeometryParts()

template<class TPointType >
SizeType Kratos::CouplingGeometry< TPointType >::NumberOfGeometryParts ( ) const
inlineoverridevirtual

The number of geometry part.

Returns
The number of geometry parts that this geometry contains.

Reimplemented from Kratos::Geometry< TPointType >.

◆ operator=() [1/2]

template<class TPointType >
CouplingGeometry& Kratos::CouplingGeometry< TPointType >::operator= ( const CouplingGeometry< TPointType > &  rOther)
inline

Assignment operator.

◆ operator=() [2/2]

template<class TPointType >
template<class TOtherPointType >
CouplingGeometry& Kratos::CouplingGeometry< TPointType >::operator= ( CouplingGeometry< TOtherPointType > const &  rOther)
inline

Assignment operator with different point type.

◆ pGetGeometryPart() [1/2]

template<class TPointType >
const GeometryPointer Kratos::CouplingGeometry< TPointType >::pGetGeometryPart ( const IndexType  Index) const
inlineoverridevirtual

This function returns the const pointer of the geometry part which is corresponding to the index. Checks if index is available only in debug.

Parameters
Index0 -> master, all bigger than 0 -> slaves.
Returns
const pointer of geometry, corresponding to the index.

Reimplemented from Kratos::Geometry< TPointType >.

◆ pGetGeometryPart() [2/2]

template<class TPointType >
GeometryPointer Kratos::CouplingGeometry< TPointType >::pGetGeometryPart ( const IndexType  Index)
inlineoverridevirtual

This function returns the pointer of the geometry part which is corresponding to the index. Checks if index is available only in debug.

Parameters
Index0 -> master, all bigger than 0 -> slaves.
Returns
pointer of geometry, corresponding to the index.

Reimplemented from Kratos::Geometry< TPointType >.

◆ PrintData()

template<class TPointType >
void Kratos::CouplingGeometry< TPointType >::PrintData ( std::ostream &  rOStream) const
inlineoverridevirtual

Print object's data.

Reimplemented from Kratos::Geometry< TPointType >.

◆ PrintInfo()

template<class TPointType >
void Kratos::CouplingGeometry< TPointType >::PrintInfo ( std::ostream &  rOStream) const
inlineoverridevirtual

Print information about this object.

Reimplemented from Kratos::Geometry< TPointType >.

◆ RemoveGeometryPart() [1/2]

template<class TPointType >
void Kratos::CouplingGeometry< TPointType >::RemoveGeometryPart ( const IndexType  Index)
inlineoverridevirtual

Removes a geometry part.

Parameters
Indexof the geometry part.

Reimplemented from Kratos::Geometry< TPointType >.

◆ RemoveGeometryPart() [2/2]

template<class TPointType >
void Kratos::CouplingGeometry< TPointType >::RemoveGeometryPart ( GeometryPointer  pGeometry)
inlineoverridevirtual

Removes a geometry part.

Parameters
pGeometryThe new geometry to remove

Reimplemented from Kratos::Geometry< TPointType >.

◆ SetGeometryPart()

template<class TPointType >
void Kratos::CouplingGeometry< TPointType >::SetGeometryPart ( const IndexType  Index,
GeometryPointer  pGeometry 
)
inlineoverridevirtual

Allows to exchange certain geometries.

Parameters
Indexof the geometry part. 0->Master; 1->Slave
pGeometryThe new geometry to add

Reimplemented from Kratos::Geometry< TPointType >.

◆ SortUnique()

template<class TPointType >
static void Kratos::CouplingGeometry< TPointType >::SortUnique ( std::vector< double > &  rResultSpans,
const double  Tolerance 
)
inlinestatic

◆ SpansLocalSpace()

template<class TPointType >
virtual void Kratos::CouplingGeometry< TPointType >::SpansLocalSpace ( std::vector< double > &  rSpans,
IndexType  LocalDirectionIndex = 0 
) const
inlineoverridevirtual

Reimplemented from Kratos::Geometry< TPointType >.

Friends And Related Function Documentation

◆ CouplingGeometry

template<class TPointType >
template<class TOtherPointType >
friend class CouplingGeometry
friend

◆ Serializer

template<class TPointType >
friend class Serializer
friend

Member Data Documentation

◆ Master

template<class TPointType >
constexpr IndexType Kratos::CouplingGeometry< TPointType >::Master = 0
staticconstexpr

◆ Slave

template<class TPointType >
constexpr IndexType Kratos::CouplingGeometry< TPointType >::Slave = 1
staticconstexpr

The documentation for this class was generated from the following file: