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::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType > Class Template Reference

The BrepCurveOnSurface acts as topology for curves on surfaces. More...

#include <brep_curve_on_surface.h>

Inheritance diagram for Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >:
Collaboration diagram for Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >:

Public Member Functions

Life Cycle
 BrepCurveOnSurface (typename NurbsSurfaceType::Pointer pSurface, typename NurbsCurveType::Pointer pCurve, bool SameCurveDirection=true)
 constructor for untrimmed surface More...
 
 BrepCurveOnSurface (typename NurbsSurfaceType::Pointer pSurface, typename NurbsCurveType::Pointer pCurve, NurbsInterval CurveNurbsInterval, bool SameCurveDirection=true)
 constructor for trimmed surface More...
 
 BrepCurveOnSurface (NurbsCurveOnSurfacePointerType pNurbsCurveOnSurface, bool SameCurveDirection=true)
 constructor for untrimmed surface with curve on surface More...
 
 BrepCurveOnSurface (NurbsCurveOnSurfacePointerType pNurbsCurveOnSurface, NurbsInterval CurveNurbsInterval, bool SameCurveDirection=true)
 constructor for trimmed surface with curve on surface More...
 
 BrepCurveOnSurface ()
 
 BrepCurveOnSurface (const PointsArrayType &ThisPoints)
 
 BrepCurveOnSurface (BrepCurveOnSurface const &rOther)
 Copy constructor. More...
 
template<class TOtherContainerPointType , class TOtherContainerPointEmbeddedType >
 BrepCurveOnSurface (BrepCurveOnSurface< TOtherContainerPointType, TOtherContainerPointEmbeddedType > const &rOther)
 Copy constructor from a geometry with different point type. More...
 
 ~BrepCurveOnSurface () override=default
 Destructor. More...
 
Operators
BrepCurveOnSurfaceoperator= (const BrepCurveOnSurface &rOther)
 Assignment operator. More...
 
template<class TOtherContainerPointType , class TOtherContainerPointEmbeddedType >
BrepCurveOnSurfaceoperator= (BrepCurveOnSurface< TOtherContainerPointType, TOtherContainerPointEmbeddedType > const &rOther)
 Assignment operator for geometries with different point type. More...
 
Operations
BaseType::Pointer Create (PointsArrayType const &ThisPoints) const override
 
Access to Geometry Parts
GeometryPointer pGetGeometryPart (const IndexType Index) override
 This function returns the pointer of the geometry which is corresponding to the index. Possible indices are: SURFACE_INDEX, EMBEDDED_CURVE_INDEX or CURVE_ON_SURFACE_INDEX. More...
 
const GeometryPointer pGetGeometryPart (const IndexType Index) const override
 This function returns the pointer of the geometry which is corresponding to the index. Possible indices are: GeometryType::BACKGROUND_GEOMETRY_INDEX, EMBEDDED_CURVE_INDEX or CURVE_ON_SURFACE_INDEX. More...
 
bool HasGeometryPart (const IndexType Index) const override
 This function is used to check if the index is either GeometryType::BACKGROUND_GEOMETRY_INDEX or CURVE_ON_SURFACE_INDEX. More...
 
Set / Calculate access
void Calculate (const Variable< array_1d< double, 3 >> &rVariable, array_1d< double, 3 > &rOutput) const override
 Calculate with array_1d<double, 3> More...
 
Mathematical Informations
SizeType PolynomialDegree (IndexType LocalDirectionIndex) const override
 Return polynomial degree of the nurbs curve on surface. More...
 
Set/ Get functions
NurbsInterval DomainInterval () const
 
bool HasSameCurveDirection ()
 
NurbsCurveOnSurfacePointerType pGetCurveOnSurface ()
 Returns the NurbsCurveOnSurface::Pointer of this brep. More...
 
const NurbsCurveOnSurfacePointerType pGetCurveOnSurface () const
 Returns the const NurbsCurveOnSurface::Pointer of this brep. More...
 
SizeType PointsNumberInDirection (IndexType DirectionIndex) const override
 Returns number of points of NurbsCurveOnSurface. More...
 
Curve Properties
void SpansLocalSpace (std::vector< double > &rSpans, IndexType DirectionIndex=0) const override
 
IsInside
int IsInsideLocalSpace (const CoordinatesArrayType &rPointLocalCoordinates, const double Tolerance=std::numeric_limits< double >::epsilon()) const override
 Checks if given point in local space coordinates of this geometry is inside the geometry boundaries. More...
 
ClosestPoint
virtual int ClosestPointLocalToLocalSpace (const CoordinatesArrayType &rPointLocalCoordinates, CoordinatesArrayType &rClosestPointLocalCoordinates, const double Tolerance=std::numeric_limits< double >::epsilon()) const override
 Calculates the closes point projection This method calculates the closest point projection of a point in local space coordinates. More...
 
Projection
int ProjectionPointGlobalToLocalSpace (const CoordinatesArrayType &rPointGlobalCoordinates, CoordinatesArrayType &rProjectedPointLocalCoordinates, const double Tolerance=std::numeric_limits< double >::epsilon()) const override
 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...
 
Geometrical Operations
Point Center () const override
 Provides the center of the underlying curve on surface. More...
 
CoordinatesArrayTypeGlobalCoordinates (CoordinatesArrayType &rResult, const CoordinatesArrayType &rLocalCoordinates) const override
 
void GlobalSpaceDerivatives (std::vector< CoordinatesArrayType > &rGlobalSpaceDerivatives, const CoordinatesArrayType &rLocalCoordinates, const SizeType DerivativeOrder) const override
 This method maps from local space to global/working space and computes the number of derivatives at the underlying nurbs curve on surface at the parameter rLocalCoordinates[0]. More...
 
bool IsInside (const CoordinatesArrayType &rPoint, CoordinatesArrayType &rResult, const double Tolerance=std::numeric_limits< double >::epsilon()) const override
 
Geometrical Informations
double Length () const override
 Computes the length of a nurbs curve. More...
 
Integration Info
IntegrationInfo GetDefaultIntegrationInfo () const override
 Provides the default integration dependent on the polynomial degree. More...
 
Integration Points
void CreateIntegrationPoints (IntegrationPointsArrayType &rIntegrationPoints, IntegrationInfo &rIntegrationInfo) const override
 
Quadrature Point Geometries
void CreateQuadraturePointGeometries (GeometriesArrayType &rResultGeometries, IndexType NumberOfShapeFunctionDerivatives, const IntegrationPointsArrayType &rIntegrationPoints, IntegrationInfo &rIntegrationInfo) override
 
Shape Function
VectorShapeFunctionsValues (Vector &rResult, const CoordinatesArrayType &rCoordinates) const override
 
MatrixShapeFunctionsLocalGradients (Matrix &rResult, const CoordinatesArrayType &rCoordinates) const override
 
Geometry Classification
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< TContainerPointType::value_type >
 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...
 
 Geometry (Geometry< TOtherPointType > const &rOther)
 Copy constructor with TOtherPointType. More...
 
virtual ~Geometry ()
 Destructor. Do nothing!!! More...
 
Geometryoperator= (const Geometry &rOther)
 
Geometryoperator= (Geometry< TOtherPointType > const &rOther)
 
 operator PointsArrayType & ()
 
TContainerPointType::value_type & operator[] (const SizeType &i)
 
TContainerPointType::value_type 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
 
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)
 
bool Has (const Variable< TDataType > &rThisVariable) const
 
void SetValue (const TVariableType &rThisVariable, typename TVariableType::Type const &rValue)
 
TVariableType::Type & GetValue (const TVariableType &rThisVariable)
 
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, 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 (PointsArrayType const &rThisPoints) const
 Creates a new geometry pointer. 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...
 
virtual void SetGeometryPart (const IndexType Index, GeometryType::Pointer pGeometry)
 Allows to exchange certain geometries. More...
 
virtual IndexType AddGeometryPart (GeometryType::Pointer pGeometry)
 Allows to enhance the coupling geometry, with another geometry. More...
 
virtual void RemoveGeometryPart (GeometryType::Pointer pGeometry)
 Removes a geometry part. More...
 
virtual void RemoveGeometryPart (const IndexType Index)
 Removes a geometry part. More...
 
virtual SizeType NumberOfGeometryParts () const
 
SizeType WorkingSpaceDimension () const
 
SizeType LocalSpaceDimension () 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 DomainSize () const
 This method calculate and return length, area or volume of this geometry depending to it's dimension. 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 (TContainerPointType::value_type &rLowPoint, TContainerPointType::value_type &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)
 
TContainerPointType::value_type const & GetPoint (const int Index) const
 
TContainerPointType::value_type & 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 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...
 
 KRATOS_DEPRECATED_MESSAGE ("This is legacy version (use GenerateFaces instead)") virtual GeometriesArrayType Faces(void)
 Returns all faces of the current geometry. More...
 
virtual SizeType FacesNumber () const
 Returns the number of 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 void CreateQuadraturePointGeometries (GeometriesArrayType &rResultGeometries, IndexType NumberOfShapeFunctionDerivatives, IntegrationInfo &rIntegrationInfo)
 
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, 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 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 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
 
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
 
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...
 

Type Definitions

typedef TContainerPointType::value_type PointType
 
typedef Geometry< typename TContainerPointType::value_type > BaseType
 
typedef Geometry< typename TContainerPointType::value_type > GeometryType
 
typedef GeometryType::Pointer GeometryPointer
 
typedef GeometryData::IntegrationMethod IntegrationMethod
 
typedef NurbsSurfaceGeometry< 3, TContainerPointType > NurbsSurfaceType
 
typedef NurbsCurveGeometry< 2, TContainerPointEmbeddedType > NurbsCurveType
 
typedef NurbsCurveOnSurfaceGeometry< 3, TContainerPointEmbeddedType, TContainerPointType > NurbsCurveOnSurfaceType
 
typedef NurbsCurveOnSurfaceType::Pointer NurbsCurveOnSurfacePointerType
 
typedef BaseType::GeometriesArrayType GeometriesArrayType
 
typedef BaseType::IndexType IndexType
 
typedef BaseType::SizeType SizeType
 
typedef BaseType::PointsArrayType PointsArrayType
 
typedef BaseType::CoordinatesArrayType CoordinatesArrayType
 
typedef BaseType::IntegrationPointsArrayType IntegrationPointsArrayType
 
static constexpr IndexType CURVE_ON_SURFACE_INDEX = std::numeric_limits<IndexType>::max() - 2
 
 KRATOS_CLASS_POINTER_DEFINITION (BrepCurveOnSurface)
 

Serialization

class Serializer
 

Additional Inherited Members

- Public Types inherited from Kratos::Geometry< TContainerPointType::value_type >
enum class  QualityCriteria
 
enum class  LumpingMethods
 This defines the different methods to compute the lumping methods. More...
 
typedef Geometry< TContainerPointType::value_type > GeometryType
 This Geometry type. More...
 
typedef PointerVector< TContainerPointType::value_type > PointsArrayType
 
typedef GeometryData::IntegrationMethod IntegrationMethod
 
typedef PointerVector< GeometryTypeGeometriesArrayType
 
typedef TContainerPointType::value_type 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< double > NormalType
 
typedef PointType::Pointer PointPointerType
 data type stores in this container. More...
 
typedef const PointPointerType ConstPointPointerType
 
typedef TContainerPointType::value_type & PointReferenceType
 
typedef const TContainerPointType::value_type & 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
 
- Static Public Member Functions inherited from Kratos::Geometry< TContainerPointType::value_type >
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 inherited from Kratos::Geometry< TContainerPointType::value_type >
static constexpr IndexType BACKGROUND_GEOMETRY_INDEX
 
- Protected Member Functions inherited from Kratos::Geometry< TContainerPointType::value_type >
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 TContainerPointType, class TContainerPointEmbeddedType = TContainerPointType>
class Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >

The BrepCurveOnSurface acts as topology for curves on surfaces.

Member Typedef Documentation

◆ BaseType

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
typedef Geometry<typename TContainerPointType::value_type> Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::BaseType

◆ CoordinatesArrayType

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
typedef BaseType::CoordinatesArrayType Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::CoordinatesArrayType

◆ GeometriesArrayType

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
typedef BaseType::GeometriesArrayType Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::GeometriesArrayType

◆ GeometryPointer

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
typedef GeometryType::Pointer Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::GeometryPointer

◆ GeometryType

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
typedef Geometry<typename TContainerPointType::value_type> Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::GeometryType

◆ IndexType

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
typedef BaseType::IndexType Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::IndexType

◆ IntegrationMethod

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
typedef GeometryData::IntegrationMethod Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::IntegrationMethod

◆ IntegrationPointsArrayType

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
typedef BaseType::IntegrationPointsArrayType Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::IntegrationPointsArrayType

◆ NurbsCurveOnSurfacePointerType

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
typedef NurbsCurveOnSurfaceType::Pointer Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::NurbsCurveOnSurfacePointerType

◆ NurbsCurveOnSurfaceType

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
typedef NurbsCurveOnSurfaceGeometry<3, TContainerPointEmbeddedType, TContainerPointType> Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::NurbsCurveOnSurfaceType

◆ NurbsCurveType

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
typedef NurbsCurveGeometry<2, TContainerPointEmbeddedType> Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::NurbsCurveType

◆ NurbsSurfaceType

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
typedef NurbsSurfaceGeometry<3, TContainerPointType> Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::NurbsSurfaceType

◆ PointsArrayType

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
typedef BaseType::PointsArrayType Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::PointsArrayType

◆ PointType

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
typedef TContainerPointType::value_type Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::PointType

◆ SizeType

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
typedef BaseType::SizeType Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::SizeType

Constructor & Destructor Documentation

◆ BrepCurveOnSurface() [1/8]

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::BrepCurveOnSurface ( typename NurbsSurfaceType::Pointer  pSurface,
typename NurbsCurveType::Pointer  pCurve,
bool  SameCurveDirection = true 
)
inline

constructor for untrimmed surface

◆ BrepCurveOnSurface() [2/8]

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::BrepCurveOnSurface ( typename NurbsSurfaceType::Pointer  pSurface,
typename NurbsCurveType::Pointer  pCurve,
NurbsInterval  CurveNurbsInterval,
bool  SameCurveDirection = true 
)
inline

constructor for trimmed surface

◆ BrepCurveOnSurface() [3/8]

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::BrepCurveOnSurface ( NurbsCurveOnSurfacePointerType  pNurbsCurveOnSurface,
bool  SameCurveDirection = true 
)
inline

constructor for untrimmed surface with curve on surface

◆ BrepCurveOnSurface() [4/8]

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::BrepCurveOnSurface ( NurbsCurveOnSurfacePointerType  pNurbsCurveOnSurface,
NurbsInterval  CurveNurbsInterval,
bool  SameCurveDirection = true 
)
inline

constructor for trimmed surface with curve on surface

◆ BrepCurveOnSurface() [5/8]

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::BrepCurveOnSurface ( )
inline

◆ BrepCurveOnSurface() [6/8]

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::BrepCurveOnSurface ( const PointsArrayType ThisPoints)
inlineexplicit

◆ BrepCurveOnSurface() [7/8]

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::BrepCurveOnSurface ( BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType > const &  rOther)
inline

Copy constructor.

◆ BrepCurveOnSurface() [8/8]

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
template<class TOtherContainerPointType , class TOtherContainerPointEmbeddedType >
Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::BrepCurveOnSurface ( BrepCurveOnSurface< TOtherContainerPointType, TOtherContainerPointEmbeddedType > const &  rOther)
inlineexplicit

Copy constructor from a geometry with different point type.

◆ ~BrepCurveOnSurface()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::~BrepCurveOnSurface ( )
overridedefault

Destructor.

Member Function Documentation

◆ Calculate()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
void Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::Calculate ( const Variable< array_1d< double, 3 >> &  rVariable,
array_1d< double, 3 > &  rOutput 
) const
inlineoverridevirtual

◆ Center()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
Point Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::Center ( ) const
inlineoverridevirtual

Provides the center of the underlying curve on surface.

Reimplemented from Kratos::Geometry< TContainerPointType::value_type >.

◆ ClosestPointLocalToLocalSpace()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
virtual int Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::ClosestPointLocalToLocalSpace ( const CoordinatesArrayType rPointLocalCoordinates,
CoordinatesArrayType rClosestPointLocalCoordinates,
const double  Tolerance = std::numeric_limits<double>::epsilon() 
) const
inlineoverridevirtual

Calculates the closes point projection This method calculates the closest point projection of a point in local space coordinates.

Parameters
rPointLocalCoordinatesInput local coordinates
rClosestPointLocalCoordinatesClosest point local coordinates. This should be initialized with the initial guess
ToleranceAccepted orthogonal error
Returns
int -1 -> failed 0 -> outside 1 -> inside 2 -> on the boundary

Reimplemented from Kratos::Geometry< TContainerPointType::value_type >.

◆ Create()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
BaseType::Pointer Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::Create ( PointsArrayType const &  ThisPoints) const
inlineoverride

◆ CreateIntegrationPoints()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
void Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::CreateIntegrationPoints ( IntegrationPointsArrayType rIntegrationPoints,
IntegrationInfo rIntegrationInfo 
) const
inlineoverridevirtual

◆ CreateQuadraturePointGeometries()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
void Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::CreateQuadraturePointGeometries ( GeometriesArrayType rResultGeometries,
IndexType  NumberOfShapeFunctionDerivatives,
const IntegrationPointsArrayType rIntegrationPoints,
IntegrationInfo rIntegrationInfo 
)
inlineoverridevirtual

◆ DomainInterval()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
NurbsInterval Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::DomainInterval ( ) const
inline

◆ GetDefaultIntegrationInfo()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
IntegrationInfo Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::GetDefaultIntegrationInfo ( ) const
inlineoverridevirtual

Provides the default integration dependent on the polynomial degree.

Reimplemented from Kratos::Geometry< TContainerPointType::value_type >.

◆ GetGeometryFamily()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
GeometryData::KratosGeometryFamily Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::GetGeometryFamily ( ) const
inlineoverridevirtual

◆ GetGeometryType()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
GeometryData::KratosGeometryType Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::GetGeometryType ( ) const
inlineoverridevirtual

◆ GlobalCoordinates()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
CoordinatesArrayType& Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::GlobalCoordinates ( CoordinatesArrayType rResult,
const CoordinatesArrayType LocalCoordinates 
) const
inlineoverridevirtual

This method provides the global coordinates corresponding to the local coordinates provided

Parameters
rResultThe array containing the global coordinates corresponding to the local coordinates provided
LocalCoordinatesThe local coordinates provided
Returns
An array containing the global coordinates corresponding to the local coordinates provides
See also
PointLocalCoordinates

Reimplemented from Kratos::Geometry< TContainerPointType::value_type >.

◆ GlobalSpaceDerivatives()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
void Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::GlobalSpaceDerivatives ( std::vector< CoordinatesArrayType > &  rGlobalSpaceDerivatives,
const CoordinatesArrayType rLocalCoordinates,
const SizeType  DerivativeOrder 
) const
inlineoverridevirtual

This method maps from local space to global/working space and computes the number of derivatives at the underlying nurbs curve on surface at the parameter rLocalCoordinates[0].

Parameters
LocalCoordinatesThe local coordinates in paramater space
DerivativeNumber of computed derivatives 0 -> Location = PointLocalCoordinates 1 -> Tangent 2 -> Curvature ...
Returns
std::vector<array_1d<double, 3>> with the global space derivatives

Reimplemented from Kratos::Geometry< TContainerPointType::value_type >.

◆ HasGeometryPart()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
bool Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::HasGeometryPart ( const IndexType  Index) const
inlineoverridevirtual

This function is used to check if the index is either GeometryType::BACKGROUND_GEOMETRY_INDEX or CURVE_ON_SURFACE_INDEX.

Parameters
Indexof the geometry part.
Returns
true if GeometryType::BACKGROUND_GEOMETRY_INDEX or CURVE_ON_SURFACE_INDEX.

Reimplemented from Kratos::Geometry< TContainerPointType::value_type >.

◆ HasSameCurveDirection()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
bool Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::HasSameCurveDirection ( )
inline

◆ Info()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
std::string Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::Info ( ) const
inlineoverridevirtual

Turn back information as a string.

Reimplemented from Kratos::Geometry< TContainerPointType::value_type >.

◆ IsInside()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
bool Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::IsInside ( const CoordinatesArrayType rPoint,
CoordinatesArrayType rResult,
const double  Tolerance = std::numeric_limits<double>::epsilon() 
) const
inlineoverridevirtual

Returns whether given arbitrary point is inside the Geometry and the respective local point for the given global point

Parameters
rPointThe point to be checked if is inside o note in global coordinates
rResultThe local coordinates of the point
ToleranceThe tolerance that will be considered to check if the point is inside or not
Returns
True if the point is inside, false otherwise

Reimplemented from Kratos::Geometry< TContainerPointType::value_type >.

◆ IsInsideLocalSpace()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
int Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::IsInsideLocalSpace ( const CoordinatesArrayType rPointLocalCoordinates,
const double  Tolerance = std::numeric_limits<double>::epsilon() 
) const
inlineoverridevirtual

Checks if given point in local space coordinates of this geometry is inside the geometry boundaries.

Parameters
rPointLocalCoordinatesthe point on the geometry, which shall be checked if it lays within the boundaries.
Tolerancethe tolerance to the boundary.
Returns
-1 -> failed 0 -> outside 1 -> inside 2 -> on the boundary

Reimplemented from Kratos::Geometry< TContainerPointType::value_type >.

◆ KRATOS_CLASS_POINTER_DEFINITION()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::KRATOS_CLASS_POINTER_DEFINITION ( BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >  )

Pointer definition of BrepCurveOnSurface

◆ Length()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
double Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::Length ( ) const
inlineoverridevirtual

Computes the length of a nurbs curve.

Reimplemented from Kratos::Geometry< TContainerPointType::value_type >.

◆ operator=() [1/2]

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
template<class TOtherContainerPointType , class TOtherContainerPointEmbeddedType >
BrepCurveOnSurface& Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::operator= ( BrepCurveOnSurface< TOtherContainerPointType, TOtherContainerPointEmbeddedType > const &  rOther)
inline

Assignment operator for geometries with different point type.

◆ operator=() [2/2]

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
BrepCurveOnSurface& Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::operator= ( const BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType > &  rOther)
inline

Assignment operator.

◆ pGetCurveOnSurface() [1/2]

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
NurbsCurveOnSurfacePointerType Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::pGetCurveOnSurface ( )
inline

Returns the NurbsCurveOnSurface::Pointer of this brep.

◆ pGetCurveOnSurface() [2/2]

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
const NurbsCurveOnSurfacePointerType Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::pGetCurveOnSurface ( ) const
inline

Returns the const NurbsCurveOnSurface::Pointer of this brep.

◆ pGetGeometryPart() [1/2]

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
const GeometryPointer Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::pGetGeometryPart ( const IndexType  Index) const
inlineoverridevirtual

This function returns the pointer of the geometry which is corresponding to the index. Possible indices are: GeometryType::BACKGROUND_GEOMETRY_INDEX, EMBEDDED_CURVE_INDEX or CURVE_ON_SURFACE_INDEX.

Parameters
IndexSURFACE_INDEX, EMBEDDED_CURVE_INDEX or CURVE_ON_SURFACE_INDEX.
Returns
pointer of geometry, corresponding to the index.

Reimplemented from Kratos::Geometry< TContainerPointType::value_type >.

◆ pGetGeometryPart() [2/2]

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
GeometryPointer Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::pGetGeometryPart ( const IndexType  Index)
inlineoverridevirtual

This function returns the pointer of the geometry which is corresponding to the index. Possible indices are: SURFACE_INDEX, EMBEDDED_CURVE_INDEX or CURVE_ON_SURFACE_INDEX.

Parameters
IndexSURFACE_INDEX, EMBEDDED_CURVE_INDEX or CURVE_ON_SURFACE_INDEX.
Returns
pointer of geometry, corresponding to the index.

Reimplemented from Kratos::Geometry< TContainerPointType::value_type >.

◆ PointsNumberInDirection()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
SizeType Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::PointsNumberInDirection ( IndexType  DirectionIndex) const
inlineoverridevirtual

Returns number of points of NurbsCurveOnSurface.

Reimplemented from Kratos::Geometry< TContainerPointType::value_type >.

◆ PolynomialDegree()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
SizeType Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::PolynomialDegree ( IndexType  LocalDirectionIndex) const
inlineoverridevirtual

Return polynomial degree of the nurbs curve on surface.

Reimplemented from Kratos::Geometry< TContainerPointType::value_type >.

◆ PrintData()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
void Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::PrintData ( std::ostream &  rOStream) const
inlineoverridevirtual

Print object's data.

Reimplemented from Kratos::Geometry< TContainerPointType::value_type >.

◆ PrintInfo()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
void Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::PrintInfo ( std::ostream &  rOStream) const
inlineoverridevirtual

Print information about this object.

Reimplemented from Kratos::Geometry< TContainerPointType::value_type >.

◆ ProjectionPointGlobalToLocalSpace()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
int Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::ProjectionPointGlobalToLocalSpace ( const CoordinatesArrayType rPointGlobalCoordinates,
CoordinatesArrayType rProjectionPointLocalCoordinates,
const double  Tolerance = std::numeric_limits<double>::epsilon() 
) const
inlineoverridevirtual

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.

Parameters
rPointLocalCoordinatesGlobal coordinates of the point to be projected
rProjectionPointLocalCoordinatesProjection point local coordinates. This should be initialized with the initial guess
ToleranceAccepted orthogonal error
Returns
int 0 -> failed 1 -> converged

Reimplemented from Kratos::Geometry< TContainerPointType::value_type >.

◆ ShapeFunctionsLocalGradients()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
Matrix& Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::ShapeFunctionsLocalGradients ( Matrix rResult,
const CoordinatesArrayType rPoint 
) const
inlineoverridevirtual

This method gives gradient of all shape functions evaluated in given point. There is no calculation and it just give it from shape functions values container if they are existing. Otherwise it gives you error which this value is not exist.

Parameters
rResultthe given Container that will be overwritten by the solution
rPointthe given local coordinates the gradients will be evaluated for
Returns
a matrix of gradients for each shape function

Reimplemented from Kratos::Geometry< TContainerPointType::value_type >.

◆ ShapeFunctionsValues()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
Vector& Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::ShapeFunctionsValues ( Vector rResult,
const CoordinatesArrayType rCoordinates 
) const
inlineoverridevirtual

This method gives all non-zero shape functions values evaluated at the rCoordinates provided

Note
There is no control if the return vector is empty or not!
Returns
Vector of values of shape functions \( F_{i} \) where i is the shape function index (for NURBS it is the index of the local enumeration in the element).
See also
ShapeFunctionValue
ShapeFunctionsLocalGradients
ShapeFunctionLocalGradient

Reimplemented from Kratos::Geometry< TContainerPointType::value_type >.

◆ SpansLocalSpace()

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
void Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::SpansLocalSpace ( std::vector< double > &  rSpans,
IndexType  DirectionIndex = 0 
) const
inlineoverridevirtual

Friends And Related Function Documentation

◆ Serializer

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
friend class Serializer
friend

Member Data Documentation

◆ CURVE_ON_SURFACE_INDEX

template<class TContainerPointType , class TContainerPointEmbeddedType = TContainerPointType>
constexpr IndexType Kratos::BrepCurveOnSurface< TContainerPointType, TContainerPointEmbeddedType >::CURVE_ON_SURFACE_INDEX = std::numeric_limits<IndexType>::max() - 2
staticconstexpr

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