oomph::TetMeshFacetedClosedSurface Class Reference

#include <tet_mesh.h>

+ Inheritance diagram for oomph::TetMeshFacetedClosedSurface:

Public Member Functions

 TetMeshFacetedClosedSurface ()
 Constructor: More...
 
virtual ~TetMeshFacetedClosedSurface ()
 Empty destructor. More...
 
void enable_faceted_volume_represents_hole_for_gmsh ()
 Declare closed surface to represent hole for gmsh. More...
 
void disable_faceted_volume_represents_hole_for_gmsh ()
 Declare closed surface NOT to represent hole for gmsh. More...
 
bool faceted_volume_represents_hole_for_gmsh () const
 Does closed surface represent hole for gmsh? More...
 
const doubleinternal_point_for_tetgen (const unsigned &j, const unsigned &i) const
 i=th coordinate of the j-th internal point for tetgen More...
 
void set_hole_for_tetgen (const Vector< double > &hole_point)
 Specify coordinate of hole for tetgen. More...
 
void set_region_for_tetgen (const unsigned &region_id, const Vector< double > &region_point)
 
unsigned ninternal_point_for_tetgen ()
 
const intregion_id_for_tetgen (const unsigned &j) const
 
bool internal_point_identifies_hole_for_tetgen (const unsigned &j)
 Is j-th internal point for tetgen associated with a hole? More...
 
bool internal_point_identifies_region_for_tetgen (const unsigned &j)
 Is j-th internal point for tetgen associated with a region? More...
 
- Public Member Functions inherited from oomph::TetMeshFacetedSurface
 TetMeshFacetedSurface ()
 Constructor: More...
 
virtual ~TetMeshFacetedSurface ()
 Empty destructor. More...
 
unsigned nvertex () const
 Number of vertices. More...
 
unsigned nfacet () const
 Number of facets. More...
 
unsigned one_based_facet_boundary_id (const unsigned &j) const
 One-based boundary id of j-th facet. More...
 
unsigned one_based_vertex_boundary_id (const unsigned &j) const
 First (of possibly multiple) one-based boundary id of j-th vertex. More...
 
double vertex_coordinate (const unsigned &j, const unsigned &i) const
 i-th coordinate of j-th vertex More...
 
unsigned nvertex_on_facet (const unsigned &j) const
 Number of vertices defining the j-th facet. More...
 
bool boundaries_can_be_split_in_tetgen ()
 Test whether boundary can be split in tetgen. More...
 
void enable_boundaries_can_be_split_in_tetgen ()
 Test whether boundaries can be split in tetgen. More...
 
void disable_boundaries_can_be_split_in_tetgen ()
 Test whether boundaries can be split in tetgen. More...
 
TetMeshFacetfacet_pt (const unsigned &j) const
 Pointer to j-th facet. More...
 
TetMeshVertexvertex_pt (const unsigned &j) const
 Pointer to j-th vertex. More...
 
DiskLikeGeomObjectWithBoundariesgeom_object_with_boundaries_pt ()
 
void output (std::ostream &outfile) const
 Output. More...
 
void output (const std::string &filename) const
 Output. More...
 
virtual void boundary_zeta01 (const unsigned &facet_id, const double &zeta_boundary, Vector< double > &zeta)
 
virtual void boundary_zeta12 (const unsigned &facet_id, const double &zeta_boundary, Vector< double > &zeta)
 
virtual void boundary_zeta20 (const unsigned &facet_id, const double &zeta_boundary, Vector< double > &zeta)
 
Vector< unsignedvertex_index_in_tetgen (const unsigned &f)
 

Private Attributes

Vector< std::pair< Vector< double >, int > > Internal_point_for_tetgen
 
bool Faceted_volume_represents_hole_for_gmsh
 Does closed surface represent hole for gmsh? More...
 

Additional Inherited Members

- Protected Attributes inherited from oomph::TetMeshFacetedSurface
Vector< TetMeshVertex * > Vertex_pt
 Vector pointers to vertices. More...
 
Vector< TetMeshFacet * > Facet_pt
 Vector of pointers to facets. More...
 
bool Boundaries_can_be_split_in_tetgen
 
Vector< Vector< unsigned > > Facet_vertex_index_in_tetgen
 
DiskLikeGeomObjectWithBoundariesGeom_object_with_boundaries_pt
 GeomObject with boundaries associated with this surface. More...
 

Detailed Description

///////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// Base class for closed tet mesh boundary bounded by polygonal planar facets

Constructor & Destructor Documentation

◆ TetMeshFacetedClosedSurface()

oomph::TetMeshFacetedClosedSurface::TetMeshFacetedClosedSurface ( )
inline

Constructor:

543  {
544  }
bool Faceted_volume_represents_hole_for_gmsh
Does closed surface represent hole for gmsh?
Definition: tet_mesh.h:624
TetMeshFacetedSurface()
Constructor:
Definition: tet_mesh.h:309

◆ ~TetMeshFacetedClosedSurface()

virtual oomph::TetMeshFacetedClosedSurface::~TetMeshFacetedClosedSurface ( )
inlinevirtual

Empty destructor.

547 {}

Member Function Documentation

◆ disable_faceted_volume_represents_hole_for_gmsh()

void oomph::TetMeshFacetedClosedSurface::disable_faceted_volume_represents_hole_for_gmsh ( )
inline

Declare closed surface NOT to represent hole for gmsh.

557  {
559  }

References Faceted_volume_represents_hole_for_gmsh.

◆ enable_faceted_volume_represents_hole_for_gmsh()

void oomph::TetMeshFacetedClosedSurface::enable_faceted_volume_represents_hole_for_gmsh ( )
inline

Declare closed surface to represent hole for gmsh.

551  {
553  }

References Faceted_volume_represents_hole_for_gmsh.

Referenced by oomph::CubicTetMeshFacetedSurface::build_it().

◆ faceted_volume_represents_hole_for_gmsh()

bool oomph::TetMeshFacetedClosedSurface::faceted_volume_represents_hole_for_gmsh ( ) const
inline

Does closed surface represent hole for gmsh?

563  {
565  }

References Faceted_volume_represents_hole_for_gmsh.

Referenced by oomph::GmshTetScaffoldMesh::write_geo_file().

◆ internal_point_for_tetgen()

const double& oomph::TetMeshFacetedClosedSurface::internal_point_for_tetgen ( const unsigned j,
const unsigned i 
) const
inline

i=th coordinate of the j-th internal point for tetgen

570  {
571  return (Internal_point_for_tetgen[j].first)[i];
572  }
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Vector< std::pair< Vector< double >, int > > Internal_point_for_tetgen
Definition: tet_mesh.h:621
std::ptrdiff_t j
Definition: tut_arithmetic_redux_minmax.cpp:2

References i, Internal_point_for_tetgen, and j.

Referenced by oomph::TetgenMesh< ELEMENT >::build_tetgenio().

◆ internal_point_identifies_hole_for_tetgen()

bool oomph::TetMeshFacetedClosedSurface::internal_point_identifies_hole_for_tetgen ( const unsigned j)
inline

Is j-th internal point for tetgen associated with a hole?

606  {
607  return (Internal_point_for_tetgen[j].second < 0);
608  }

References Internal_point_for_tetgen, and j.

Referenced by oomph::TetgenMesh< ELEMENT >::build_tetgenio().

◆ internal_point_identifies_region_for_tetgen()

bool oomph::TetMeshFacetedClosedSurface::internal_point_identifies_region_for_tetgen ( const unsigned j)
inline

Is j-th internal point for tetgen associated with a region?

612  {
613  return (Internal_point_for_tetgen[j].second >= 0);
614  }

References Internal_point_for_tetgen, and j.

Referenced by oomph::TetgenMesh< ELEMENT >::build_tetgenio(), and oomph::TetgenMesh< ELEMENT >::TetgenMesh().

◆ ninternal_point_for_tetgen()

unsigned oomph::TetMeshFacetedClosedSurface::ninternal_point_for_tetgen ( )
inline

Number of internal points (identifying either regions or holes) for tetgen

592  {
593  return Internal_point_for_tetgen.size();
594  }

References Internal_point_for_tetgen.

Referenced by oomph::TetgenMesh< ELEMENT >::build_tetgenio(), and oomph::TetgenMesh< ELEMENT >::TetgenMesh().

◆ region_id_for_tetgen()

const int& oomph::TetMeshFacetedClosedSurface::region_id_for_tetgen ( const unsigned j) const
inline

Return the (zero-based) region ID of j-th internal point for tetgen. Negative if it's actually a hole.

599  {
600  return Internal_point_for_tetgen[j].second;
601  }

References Internal_point_for_tetgen, and j.

Referenced by oomph::TetgenMesh< ELEMENT >::build_tetgenio().

◆ set_hole_for_tetgen()

void oomph::TetMeshFacetedClosedSurface::set_hole_for_tetgen ( const Vector< double > &  hole_point)
inline

Specify coordinate of hole for tetgen.

576  {
577  Internal_point_for_tetgen.push_back(std::make_pair(hole_point, -1));
578  }

References Internal_point_for_tetgen.

Referenced by oomph::CubicTetMeshFacetedSurface::build_it().

◆ set_region_for_tetgen()

void oomph::TetMeshFacetedClosedSurface::set_region_for_tetgen ( const unsigned region_id,
const Vector< double > &  region_point 
)
inline

Specify a region; pass (zero-based) region ID and coordinate of point in region for tetgen

584  {
585  Internal_point_for_tetgen.push_back(
586  std::make_pair(region_point, region_id));
587  }

References Internal_point_for_tetgen.

Referenced by oomph::CubicTetMeshFacetedSurface::build_it(), oomph::DiskWithTorusAroundEdgeTetMeshFacetedSurface::DiskWithTorusAroundEdgeTetMeshFacetedSurface(), and oomph::DiskWithTwoLayersTetMeshFacetedSurface::DiskWithTwoLayersTetMeshFacetedSurface().

Member Data Documentation

◆ Faceted_volume_represents_hole_for_gmsh

bool oomph::TetMeshFacetedClosedSurface::Faceted_volume_represents_hole_for_gmsh
private

◆ Internal_point_for_tetgen

Vector<std::pair<Vector<double>, int> > oomph::TetMeshFacetedClosedSurface::Internal_point_for_tetgen
private

Storage for internal points for tetgen. Stores pair of: – Vector containing coordinates of internal point – region ID (negative if it's a hole)

Referenced by internal_point_for_tetgen(), internal_point_identifies_hole_for_tetgen(), internal_point_identifies_region_for_tetgen(), ninternal_point_for_tetgen(), region_id_for_tetgen(), set_hole_for_tetgen(), and set_region_for_tetgen().


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