oomph::TetMeshFacetedClosedSurfaceForRemesh Class Reference

#include <tet_mesh.h>

+ Inheritance diagram for oomph::TetMeshFacetedClosedSurfaceForRemesh:

Public Member Functions

 TetMeshFacetedClosedSurfaceForRemesh (Vector< Node * > const &vertex_node_pt, Vector< Vector< unsigned >> const &facet_connectivity, Vector< unsigned > const &facet_boundary_id)
 
virtual ~TetMeshFacetedClosedSurfaceForRemesh ()
 Destructor. Delete allocated memory. More...
 
- Public Member Functions inherited from oomph::TetMeshFacetedClosedSurface
 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)
 

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

//////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////

Constructor & Destructor Documentation

◆ TetMeshFacetedClosedSurfaceForRemesh()

oomph::TetMeshFacetedClosedSurfaceForRemesh::TetMeshFacetedClosedSurfaceForRemesh ( Vector< Node * > const &  vertex_node_pt,
Vector< Vector< unsigned >> const &  facet_connectivity,
Vector< unsigned > const &  facet_boundary_id 
)

Constructor for a FacetedSurface created from a list of nodes and connectivity information. This is used in remeshing

45  {
46  // Create the vertices
47  unsigned n_vertex = vertex_node_pt.size();
48  Vertex_pt.resize(n_vertex);
49  for (unsigned v = 0; v < n_vertex; ++v)
50  {
51  Vertex_pt[v] = new TetMeshVertex(vertex_node_pt[v]);
52  }
53 
54  // Create the facets
55  unsigned n_facet = facet_connectivity.size();
56  Facet_pt.resize(n_facet);
57  for (unsigned f = 0; f < n_facet; ++f)
58  {
59  unsigned n_vertex_on_facet = facet_connectivity[f].size();
60  Facet_pt[f] = new TetMeshFacet(n_vertex_on_facet);
61  for (unsigned i = 0; i < n_vertex_on_facet; ++i)
62  {
63  Facet_pt[f]->set_vertex_pt(i, Vertex_pt[facet_connectivity[f][i]]);
64  }
65  // Add in the boundary id
66  Facet_pt[f]->set_one_based_boundary_id(facet_boundary_id[f]);
67  }
68  }
Array< int, Dynamic, 1 > v
Definition: Array_initializer_list_vector_cxx11.cpp:1
int i
Definition: BiCGSTAB_step_by_step.cpp:9
TetMeshFacetedClosedSurface()
Constructor:
Definition: tet_mesh.h:541
Vector< TetMeshVertex * > Vertex_pt
Vector pointers to vertices.
Definition: tet_mesh.h:483
Vector< TetMeshFacet * > Facet_pt
Vector of pointers to facets.
Definition: tet_mesh.h:486
static int f(const TensorMap< Tensor< int, 3 > > &tensor)
Definition: cxx11_tensor_map.cpp:237

References f(), oomph::TetMeshFacetedSurface::Facet_pt, i, v, and oomph::TetMeshFacetedSurface::Vertex_pt.

◆ ~TetMeshFacetedClosedSurfaceForRemesh()

oomph::TetMeshFacetedClosedSurfaceForRemesh::~TetMeshFacetedClosedSurfaceForRemesh ( )
virtual

Destructor. Delete allocated memory.

74  {
75  // Delete the facets and the vertices
76  unsigned n_facet = this->nfacet();
77  for (unsigned f = 0; f < n_facet; f++)
78  {
79  delete Facet_pt[f];
80  }
81  unsigned n_vertex = this->nvertex();
82  for (unsigned v = 0; v < n_vertex; v++)
83  {
84  delete Vertex_pt[v];
85  }
86  }
unsigned nfacet() const
Number of facets.
Definition: tet_mesh.h:325
unsigned nvertex() const
Number of vertices.
Definition: tet_mesh.h:319

References f(), oomph::TetMeshFacetedSurface::Facet_pt, oomph::TetMeshFacetedSurface::nfacet(), oomph::TetMeshFacetedSurface::nvertex(), v, and oomph::TetMeshFacetedSurface::Vertex_pt.


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