PolyDiM
C++ library for POLYtopal DIscretization Methods
Loading...
Searching...
No Matches
Gedim::ConformerMeshSegment Class Referencefinal

#include <ConformerMeshSegment.hpp>

Classes

struct  ConformMesh
 

Public Member Functions

 ConformerMeshSegment (const Gedim::GeometryUtilities &geometryUtilities)
 
 ~ConformerMeshSegment ()
 
void CreateConformMesh (const Gedim::IntersectorMesh2DSegment::IntersectionMesh &meshIntersection, const Gedim::UnionMeshSegment::UnionMesh &meshUnion, const unsigned int &meshIntersectionPosition, ConformMesh &result)
 Create ConformMesh on segment starting from an intersection mesh and the corresponding union mesh.
 
void InsertExternalPoint (const Eigen::Vector3d &segmentOrigin, const Eigen::Vector3d &segmentEnd, const Gedim::IMeshDAO &mesh2D, const double &curvilinearCoordinate, ConformMesh &result)
 Insert an external point on conform mesh.
 
void UpdateWithUpdatedMesh2D (const Gedim::IMeshDAO &mesh2D, ConformMesh &conformedMesh) const
 Update the conformed 1D mesh with updated mesh 2D data.
 
void UpdateWithActiveMesh2D (const Gedim::MeshUtilities::ExtractActiveMeshData &activeMesh2DData, ConformMesh &conformedMesh) const
 Update the conformed 1D mesh with active mesh 2D data.
 
std::vector< doubleAddMissingMesh2DCell0Ds (const Eigen::Vector3d &segmentOrigin, const Eigen::Vector3d &segmentTangent, const double &segmentSquaredLength, const Gedim::IMeshDAO &mesh2D, ConformMesh &conformedMesh) const
 Add Missing Mesh2D Cell0Ds generated from the intersections with other interfaces.
 

Static Public Member Functions

static void ToCurvilinearCoordinates (const ConformMesh &conformMesh, std::vector< double > &curvilinearCoordinates)
 convert IntersectionMesh to Curvilinear Coordinates vector
 
static std::string ToString (const ConformMesh &conformMesh)
 
static void CreateConformSegments (ConformMesh &result)
 
static void Serialize (std::ostream &os, const ConformMesh &mesh)
 
static void Deserialize (std::istream &is, ConformMesh &mesh)
 

Constructor & Destructor Documentation

◆ ConformerMeshSegment()

Gedim::ConformerMeshSegment::ConformerMeshSegment ( const Gedim::GeometryUtilities geometryUtilities)

◆ ~ConformerMeshSegment()

Gedim::ConformerMeshSegment::~ConformerMeshSegment ( )

Member Function Documentation

◆ AddMissingMesh2DCell0Ds()

vector< double > Gedim::ConformerMeshSegment::AddMissingMesh2DCell0Ds ( const Eigen::Vector3d &  segmentOrigin,
const Eigen::Vector3d &  segmentTangent,
const double segmentSquaredLength,
const Gedim::IMeshDAO mesh2D,
ConformMesh conformedMesh 
) const

Add Missing Mesh2D Cell0Ds generated from the intersections with other interfaces.

Parameters
mesh2Dthe mesh data
conformedMeshthe resulting conformed mesh
Note
the mesh2D shall be made by only active elements
Returns
the list of coordinates added

◆ CreateConformMesh()

void Gedim::ConformerMeshSegment::CreateConformMesh ( const Gedim::IntersectorMesh2DSegment::IntersectionMesh meshIntersection,
const Gedim::UnionMeshSegment::UnionMesh meshUnion,
const unsigned int meshIntersectionPosition,
ConformMesh result 
)

Create ConformMesh on segment starting from an intersection mesh and the corresponding union mesh.

Parameters
meshIntersectionthe segment intersection mesh
meshUnionthe segment mesh union of meshIntersection and an other meshIntersection
meshIntersectionPositionthe position of meshIntersection inside meshUnion, starting from 0
resultthe resulting conform mesh

◆ CreateConformSegments()

void Gedim::ConformerMeshSegment::CreateConformSegments ( ConformerMeshSegment::ConformMesh result)
static

◆ Deserialize()

void Gedim::ConformerMeshSegment::Deserialize ( std::istream &  is,
ConformMesh mesh 
)
static

◆ InsertExternalPoint()

void Gedim::ConformerMeshSegment::InsertExternalPoint ( const Eigen::Vector3d &  segmentOrigin,
const Eigen::Vector3d &  segmentEnd,
const Gedim::IMeshDAO mesh2D,
const double curvilinearCoordinate,
ConformMesh result 
)

Insert an external point on conform mesh.

Parameters
mesh2Dthe bidimensional mesh where to add the new point
curvilinearCoordinatethe curvilinear coordinate of the new point
resultthe resulting conform mesh

◆ Serialize()

void Gedim::ConformerMeshSegment::Serialize ( std::ostream &  os,
const ConformMesh mesh 
)
static

◆ ToCurvilinearCoordinates()

void Gedim::ConformerMeshSegment::ToCurvilinearCoordinates ( const ConformMesh conformMesh,
std::vector< double > &  curvilinearCoordinates 
)
static

convert IntersectionMesh to Curvilinear Coordinates vector

◆ ToString()

string Gedim::ConformerMeshSegment::ToString ( const ConformMesh conformMesh)
static

◆ UpdateWithActiveMesh2D()

void Gedim::ConformerMeshSegment::UpdateWithActiveMesh2D ( const Gedim::MeshUtilities::ExtractActiveMeshData activeMesh2DData,
ConformMesh conformedMesh 
) const

Update the conformed 1D mesh with active mesh 2D data.

Parameters
activeMesh2DDatathe active mesh data
conformedMeshthe resulting conformed mesh

◆ UpdateWithUpdatedMesh2D()

void Gedim::ConformerMeshSegment::UpdateWithUpdatedMesh2D ( const Gedim::IMeshDAO mesh2D,
ConformMesh conformedMesh 
) const

Update the conformed 1D mesh with updated mesh 2D data.

Parameters
mesh2Dthe updated mesh data
conformedMeshthe resulting conformed mesh

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