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.
Public Member Functions | List of all members
Kratos::DivideTriangle2D3< TPointType > Class Template Reference

#include <divide_triangle_2d_3.h>

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

Public Member Functions

virtual IndexedPointGeometryPointerType GenerateAuxiliaryPartitionTriangle (const int I0, const int I1, const int I2)
 
virtual IndexedPointGeometryPointerType GenerateIntersectionLine (const int I0, const int I1)
 
Life Cycle
 DivideTriangle2D3 (const GeometryType &rInputGeometry, const Vector &rNodalDistances)
 Default constructor. More...
 
 ~DivideTriangle2D3 ()
 Destructor. More...
 
Input and output
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...
 
Operations
const std::vector< int > & GetEdgeIdsI () const override
 
const std::vector< int > & GetEdgeIdsJ () const override
 
std::vector< int > & GetSplitEdges () override
 
void GenerateDivision () override
 
void GenerateIntersectionsSkin () override
 
void GenerateExteriorFaces (std::vector< IndexedPointGeometryPointerType > &rExteriorFacesVector, std::vector< unsigned int > &rExteriorFacesParentSubdivisionsIdsVector, const std::vector< IndexedPointGeometryPointerType > &rSubdivisionsContainer) override
 
void GenerateExteriorFaces (std::vector< IndexedPointGeometryPointerType > &rExteriorFacesVector, std::vector< unsigned int > &rExteriorFacesParentSubdivisionsIdsVector, const std::vector< IndexedPointGeometryPointerType > &rSubdivisionsContainer, const unsigned int FatherFaceId) override
 
- Public Member Functions inherited from Kratos::DivideGeometry< TPointType >
 DivideGeometry (const GeometryType &rInputGeometry, const Vector &rNodalDistances)
 Default constructor. More...
 
virtual ~DivideGeometry ()
 Destructor. More...
 
std::vector< IndexedPointGeometryPointerTypeGetPositiveSubdivisions () const
 Get the Positive Subdivisions object This method returns the container with the positive side subgeometries. More...
 
std::vector< IndexedPointGeometryPointerTypeGetNegativeSubdivisions () const
 Get the Negative Subdivisions object This method returns the container with the negative side subgeometries. More...
 
std::vector< IndexedPointGeometryPointerTypeGetPositiveInterfaces () const
 Get the Positive Interfaces object This method returns the container with the positive side interfaces. More...
 
std::vector< IndexedPointGeometryPointerTypeGetNegativeInterfaces () const
 Get the Negaitive Interfaces object This method returns the container with the negative side interfaces. More...
 
std::vector< unsigned intGetPositiveInterfacesParentIds () const
 Get the Positive Interfaces Parent Ids object This method returns the container with the positive side interfaces parent ids. More...
 
std::vector< unsigned intGetNegativeInterfacesParentIds () const
 Get the Negative Interfaces Parent Ids object This method returns the container with the negative side interfaces parent ids. More...
 
Vector GetNodalDistances () const
 
GeometryType GetInputGeometry () const
 
 KRATOS_CLASS_POINTER_DEFINITION (DivideGeometry)
 Pointer definition of DivideGeometry. More...
 

Type Definitions

typedef DivideGeometry< TPointType > BaseType
 
typedef BaseType::GeometryType GeometryType
 
typedef BaseType::IndexedPointType IndexedPointType
 
typedef BaseType::IndexedPointPointerType IndexedPointPointerType
 
typedef BaseType::IndexedPointGeometryType IndexedPointGeometryType
 
typedef BaseType::IndexedPointGeometryType::GeometriesArrayType IndexedGeometriesArrayType
 
typedef BaseType::IndexedPointGeometryPointerType IndexedPointGeometryPointerType
 
typedef Line2D2< IndexedPointTypeIndexedPointLineType
 
typedef Triangle2D3< IndexedPointTypeIndexedPointTriangleType
 
const std::vector< intmEdgeNodeI = {0, 1, 2}
 
const std::vector< intmEdgeNodeJ = {1, 2, 0}
 
std::vector< intmSplitEdges = {0, 1, 2, -1, -1, -1}
 
 KRATOS_CLASS_POINTER_DEFINITION (DivideTriangle2D3)
 Pointer definition of DivideTriangle2D3. More...
 

Additional Inherited Members

- Public Types inherited from Kratos::DivideGeometry< TPointType >
typedef Geometry< TPointType > GeometryType
 
typedef IndexedPoint IndexedPointType
 
typedef IndexedPoint::Pointer IndexedPointPointerType
 
typedef Geometry< IndexedPointIndexedPointGeometryType
 
typedef Geometry< IndexedPoint >::Pointer IndexedPointGeometryPointerType
 
typedef PointerVectorSet< IndexedPointType, IndexedObjectIndexedPointsContainerType
 
- Public Attributes inherited from Kratos::DivideGeometry< TPointType >
bool mIsSplit
 
int mSplitEdgesNumber
 
int mDivisionsNumber
 
IndexedPointsContainerType mAuxPointsContainer
 
- Protected Member Functions inherited from Kratos::DivideGeometry< TPointType >
void IsSplit ()
 
- Protected Attributes inherited from Kratos::DivideGeometry< TPointType >
std::vector< IndexedPointGeometryPointerTypemPositiveSubdivisions
 
std::vector< IndexedPointGeometryPointerTypemNegativeSubdivisions
 
std::vector< IndexedPointGeometryPointerTypemPositiveInterfaces
 
std::vector< IndexedPointGeometryPointerTypemNegativeInterfaces
 
std::vector< unsigned intmPositiveInterfacesParentIds
 
std::vector< unsigned intmNegativeInterfacesParentIds
 

Member Typedef Documentation

◆ BaseType

template<class TPointType >
typedef DivideGeometry<TPointType> Kratos::DivideTriangle2D3< TPointType >::BaseType

◆ GeometryType

template<class TPointType >
typedef BaseType::GeometryType Kratos::DivideTriangle2D3< TPointType >::GeometryType

◆ IndexedGeometriesArrayType

◆ IndexedPointGeometryPointerType

◆ IndexedPointGeometryType

◆ IndexedPointLineType

template<class TPointType >
typedef Line2D2< IndexedPointType > Kratos::DivideTriangle2D3< TPointType >::IndexedPointLineType

◆ IndexedPointPointerType

template<class TPointType >
typedef BaseType::IndexedPointPointerType Kratos::DivideTriangle2D3< TPointType >::IndexedPointPointerType

◆ IndexedPointTriangleType

template<class TPointType >
typedef Triangle2D3< IndexedPointType > Kratos::DivideTriangle2D3< TPointType >::IndexedPointTriangleType

◆ IndexedPointType

template<class TPointType >
typedef BaseType::IndexedPointType Kratos::DivideTriangle2D3< TPointType >::IndexedPointType

Constructor & Destructor Documentation

◆ DivideTriangle2D3()

template<class TPointType >
Kratos::DivideTriangle2D3< TPointType >::DivideTriangle2D3 ( const GeometryType rInputGeometry,
const Vector rNodalDistances 
)

Default constructor.

◆ ~DivideTriangle2D3()

template<class TPointType >
Kratos::DivideTriangle2D3< TPointType >::~DivideTriangle2D3

Destructor.

Member Function Documentation

◆ GenerateAuxiliaryPartitionTriangle()

template<class TPointType >
DivideTriangle2D3< TPointType >::IndexedPointGeometryPointerType Kratos::DivideTriangle2D3< TPointType >::GenerateAuxiliaryPartitionTriangle ( const int  I0,
const int  I1,
const int  I2 
)
virtual

◆ GenerateDivision()

template<class TPointType >
void Kratos::DivideTriangle2D3< TPointType >::GenerateDivision
overridevirtual

Divides the input geometry according to the provided distance data.

Implements Kratos::DivideGeometry< TPointType >.

◆ GenerateExteriorFaces() [1/2]

template<class TPointType >
void Kratos::DivideTriangle2D3< TPointType >::GenerateExteriorFaces ( std::vector< IndexedPointGeometryPointerType > &  rExteriorFacesVector,
std::vector< unsigned int > &  rExteriorFacesParentSubdivisionsIdsVector,
const std::vector< IndexedPointGeometryPointerType > &  rSubdivisionsContainer 
)
overridevirtual

Generates a list containing the exterior (boundary) faces geometries for either the positive or the negative element subdivisions.

Parameters
rExteriorFacesVectorVector containing the generated exterior subfaces geometries
rExteriorFacesParentSubdivisionsIdsVectorVector containing the ids of the parent subdivision of each subface
rSubdivisionsContainerPositive or negative parent geometry subdivisions container

Reimplemented from Kratos::DivideGeometry< TPointType >.

◆ GenerateExteriorFaces() [2/2]

template<class TPointType >
void Kratos::DivideTriangle2D3< TPointType >::GenerateExteriorFaces ( std::vector< IndexedPointGeometryPointerType > &  rExteriorFacesVector,
std::vector< unsigned int > &  rExteriorFacesParentSubdivisionsIdsVector,
const std::vector< IndexedPointGeometryPointerType > &  rSubdivisionsContainer,
const unsigned int  FatherFaceId 
)
overridevirtual

Given a father face id, generates a list containing the exterior (boundary) faces geometries belonging to either the positive or negative side of that that father face.

Parameters
rExteriorFacesVectorVector containing the generated exterior subfaces geometries
rExteriorFacesParentSubdivisionsIdsVectorVector containing the ids of the parent subdivision of each subface
rSubdivisionsContainerPositive or negative parent geometry subdivisions container
FatherFaceIdFather face in where the positive exterior faces are to be obtained

Reimplemented from Kratos::DivideGeometry< TPointType >.

◆ GenerateIntersectionLine()

template<class TPointType >
DivideTriangle2D3< TPointType >::IndexedPointGeometryPointerType Kratos::DivideTriangle2D3< TPointType >::GenerateIntersectionLine ( const int  I0,
const int  I1 
)
virtual

◆ GenerateIntersectionsSkin()

template<class TPointType >
void Kratos::DivideTriangle2D3< TPointType >::GenerateIntersectionsSkin
overridevirtual

Generates a list containing the intersection interface geometries for either the positive or the negative element subdivisions.

Implements Kratos::DivideGeometry< TPointType >.

◆ GetEdgeIdsI()

template<class TPointType >
const std::vector< int > & Kratos::DivideTriangle2D3< TPointType >::GetEdgeIdsI
overridevirtual

Returns the member vector containing the edges node I ids.

Implements Kratos::DivideGeometry< TPointType >.

◆ GetEdgeIdsJ()

template<class TPointType >
const std::vector< int > & Kratos::DivideTriangle2D3< TPointType >::GetEdgeIdsJ
overridevirtual

Returns the member vector containing the edges node J ids.

Implements Kratos::DivideGeometry< TPointType >.

◆ GetSplitEdges()

template<class TPointType >
std::vector< int > & Kratos::DivideTriangle2D3< TPointType >::GetSplitEdges
overridevirtual

Returns the member vector containing the split edges member vector.

Implements Kratos::DivideGeometry< TPointType >.

◆ Info()

template<class TPointType >
std::string Kratos::DivideTriangle2D3< TPointType >::Info
overridevirtual

Turn back information as a string.

Reimplemented from Kratos::DivideGeometry< TPointType >.

◆ KRATOS_CLASS_POINTER_DEFINITION()

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

Pointer definition of DivideTriangle2D3.

◆ PrintData()

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

Print object's data.

Reimplemented from Kratos::DivideGeometry< TPointType >.

◆ PrintInfo()

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

Print information about this object.

Reimplemented from Kratos::DivideGeometry< TPointType >.

Member Data Documentation

◆ mEdgeNodeI

template<class TPointType >
const std::vector<int> Kratos::DivideTriangle2D3< TPointType >::mEdgeNodeI = {0, 1, 2}

◆ mEdgeNodeJ

template<class TPointType >
const std::vector<int> Kratos::DivideTriangle2D3< TPointType >::mEdgeNodeJ = {1, 2, 0}

◆ mSplitEdges

template<class TPointType >
std::vector<int> Kratos::DivideTriangle2D3< TPointType >::mSplitEdges = {0, 1, 2, -1, -1, -1}

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