Public Member Functions | Private Attributes | List of all members
oomph::TetMeshFacet Class Reference

#include <tet_mesh.h>

Public Member Functions

 TetMeshFacet (const unsigned &nvertex)
 Constructor: Specify number of vertices. More...
 
unsigned nvertex () const
 Number of vertices. More...
 
TetMeshVertexvertex_pt (const unsigned &j) const
 Pointer to j-th vertex (const) More...
 
void set_vertex_pt (const unsigned &j, TetMeshVertex *vertex_pt)
 
unsigned one_based_boundary_id () const
 Constant access to (one-based!) boundary IDs this facet lives on. More...
 
void set_one_based_boundary_id (const unsigned &one_based_id)
 Set (one-based!) boundary IDs this facet lives on. Passed to any existing vertices and to any future ones. More...
 
void set_one_based_adjacent_region_id (const unsigned &one_based_id)
 Set (one-based!) region ID this facet is adjacent to. Specification of zero argument is harmless as it indicates that that facet is not adjacent to any region. More...
 
std::set< unsigned > one_based_adjacent_region_id () const
 Return set of (one-based!) region IDs this facet is adjacent to. More...
 
bool facet_is_embedded_in_a_specified_region ()
 Boolean indicating that facet is embedded in a specified region. More...
 
void set_one_based_region_that_facet_is_embedded_in (const unsigned &one_based_region_id)
 Facet is to be embedded in specified one-based region. More...
 
unsigned one_based_region_that_facet_is_embedded_in ()
 
void output (std::ostream &outfile) const
 Output. More...
 

Private Attributes

Vector< TetMeshVertex * > Vertex_pt
 Pointer to vertices. More...
 
unsigned One_based_boundary_id
 (One-based!) boundary IDs this facet lives on More...
 
std::set< unsigned > One_based_adjacent_region_id
 Set of one-based adjacent region ids; no adjacent region if it's zero. More...
 
unsigned One_based_region_id_that_facet_is_embedded_in
 Facet is to be embedded in specified one-based region. Defaults to zero, indicating that its not embedded. More...
 

Detailed Description

Facet for Tet mesh generation. Can lie on boundary (identified via one-based enumeration!) and can have GeomObject associated with those boundaries.

Definition at line 157 of file tet_mesh.h.

Constructor & Destructor Documentation

◆ TetMeshFacet()

oomph::TetMeshFacet::TetMeshFacet ( const unsigned &  nvertex)
inline

Constructor: Specify number of vertices.

Definition at line 162 of file tet_mesh.h.

Member Function Documentation

◆ facet_is_embedded_in_a_specified_region()

bool oomph::TetMeshFacet::facet_is_embedded_in_a_specified_region ( )
inline

Boolean indicating that facet is embedded in a specified region.

Definition at line 233 of file tet_mesh.h.

◆ nvertex()

unsigned oomph::TetMeshFacet::nvertex ( ) const
inline

◆ one_based_adjacent_region_id()

std::set<unsigned> oomph::TetMeshFacet::one_based_adjacent_region_id ( ) const
inline

Return set of (one-based!) region IDs this facet is adjacent to.

Definition at line 227 of file tet_mesh.h.

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

◆ one_based_boundary_id()

unsigned oomph::TetMeshFacet::one_based_boundary_id ( ) const
inline

Constant access to (one-based!) boundary IDs this facet lives on.

Definition at line 197 of file tet_mesh.h.

References oomph::TetMeshVertex::One_based_boundary_id.

◆ one_based_region_that_facet_is_embedded_in()

unsigned oomph::TetMeshFacet::one_based_region_that_facet_is_embedded_in ( )
inline

Which (one-based) region is facet embedded in (if zero, it's not embedded in any region)

Definition at line 247 of file tet_mesh.h.

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

◆ output()

void oomph::TetMeshFacet::output ( std::ostream &  outfile) const
inline

Output.

Definition at line 253 of file tet_mesh.h.

References oomph::TetMeshVertex::One_based_boundary_id.

◆ set_one_based_adjacent_region_id()

void oomph::TetMeshFacet::set_one_based_adjacent_region_id ( const unsigned &  one_based_id)
inline

Set (one-based!) region ID this facet is adjacent to. Specification of zero argument is harmless as it indicates that that facet is not adjacent to any region.

Definition at line 221 of file tet_mesh.h.

◆ set_one_based_boundary_id()

void oomph::TetMeshFacet::set_one_based_boundary_id ( const unsigned &  one_based_id)
inline

Set (one-based!) boundary IDs this facet lives on. Passed to any existing vertices and to any future ones.

Definition at line 204 of file tet_mesh.h.

References oomph::TetMeshVertex::One_based_boundary_id, and oomph::TetMeshVertex::set_one_based_boundary_id().

◆ set_one_based_region_that_facet_is_embedded_in()

void oomph::TetMeshFacet::set_one_based_region_that_facet_is_embedded_in ( const unsigned &  one_based_region_id)
inline

Facet is to be embedded in specified one-based region.

Definition at line 239 of file tet_mesh.h.

◆ set_vertex_pt()

void oomph::TetMeshFacet::set_vertex_pt ( const unsigned &  j,
TetMeshVertex vertex_pt 
)
inline

Set pointer to j-th vertex and pass one-based boundary id that may already have been set for this facet.

Definition at line 184 of file tet_mesh.h.

References oomph::TetMeshVertex::One_based_boundary_id, and oomph::TetMeshVertex::set_one_based_boundary_id().

◆ vertex_pt()

TetMeshVertex* oomph::TetMeshFacet::vertex_pt ( const unsigned &  j) const
inline

Member Data Documentation

◆ One_based_adjacent_region_id

std::set<unsigned> oomph::TetMeshFacet::One_based_adjacent_region_id
private

Set of one-based adjacent region ids; no adjacent region if it's zero.

Definition at line 282 of file tet_mesh.h.

◆ One_based_boundary_id

unsigned oomph::TetMeshFacet::One_based_boundary_id
private

(One-based!) boundary IDs this facet lives on

Definition at line 278 of file tet_mesh.h.

◆ One_based_region_id_that_facet_is_embedded_in

unsigned oomph::TetMeshFacet::One_based_region_id_that_facet_is_embedded_in
private

Facet is to be embedded in specified one-based region. Defaults to zero, indicating that its not embedded.

Definition at line 287 of file tet_mesh.h.

◆ Vertex_pt

Vector<TetMeshVertex*> oomph::TetMeshFacet::Vertex_pt
private

Pointer to vertices.

Definition at line 275 of file tet_mesh.h.


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