CubicTetMeshFacetedSurface Class Reference

TetMeshFacetedSurface that defines outer boundary. More...

+ Inheritance diagram for CubicTetMeshFacetedSurface:

Public Member Functions

 CubicTetMeshFacetedSurface ()
 Constructor. 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

TetMeshFacetedSurface that defines outer boundary.

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

Constructor & Destructor Documentation

◆ CubicTetMeshFacetedSurface()

CubicTetMeshFacetedSurface::CubicTetMeshFacetedSurface ( )
inline

Constructor.

376  {
377  const double box_width = Global_Parameters::Box_width;
378  const double box_length = Global_Parameters::Box_length;
379 
380  // Make vertices
381  unsigned n_vertex=8;
382  Vertex_pt.resize(n_vertex);
383  Vector<double> box_point(3);
384 
385  box_point[0] = -box_width;
386  box_point[1] = -box_width;
387  box_point[2] = -box_length;
388  Vertex_pt[0]=new TetMeshVertex(box_point);
389 
390  box_point[0] = -box_width;
391  box_point[1] = box_width;
392  box_point[2] = -box_length;
393  Vertex_pt[1]=new TetMeshVertex(box_point);
394 
395  box_point[0] = -box_width;
396  box_point[1] = box_width;
397  box_point[2] = box_length;
398  Vertex_pt[2]=new TetMeshVertex(box_point);
399 
400  box_point[0] = -box_width;
401  box_point[1] = -box_width;
402  box_point[2] = box_length;
403  Vertex_pt[3]=new TetMeshVertex(box_point);
404 
405  box_point[0] = box_width;
406  box_point[1] = -box_width;
407  box_point[2] = -box_length;
408  Vertex_pt[4]=new TetMeshVertex(box_point);
409 
410  box_point[0] = box_width;
411  box_point[1] = box_width;
412  box_point[2] = -box_length;
413  Vertex_pt[5]=new TetMeshVertex(box_point);
414 
415  box_point[0] = box_width;
416  box_point[1] = box_width;
417  box_point[2] = box_length;
418  Vertex_pt[6]=new TetMeshVertex(box_point);
419 
420  box_point[0] = box_width;
421  box_point[1] = -box_width;
422  box_point[2] = box_length;
423  Vertex_pt[7]=new TetMeshVertex(box_point);
424 
425 
426  // Make facets
427  unsigned n_facet=6;
428  Facet_pt.resize(n_facet);
429 
430  unsigned n_vertex_on_facet=4;
431  Facet_pt[0]=new TetMeshFacet(n_vertex_on_facet);
432  unsigned one_based_boundary_id=2;
433  Facet_pt[0]->set_one_based_boundary_id(one_based_boundary_id);
434  Facet_pt[0]->set_vertex_pt(0,Vertex_pt[0]);
435  Facet_pt[0]->set_vertex_pt(1,Vertex_pt[4]);
436  Facet_pt[0]->set_vertex_pt(2,Vertex_pt[7]);
437  Facet_pt[0]->set_vertex_pt(3,Vertex_pt[3]);
438 
439  Facet_pt[1]=new TetMeshFacet(n_vertex_on_facet);
440  one_based_boundary_id=3;
441  Facet_pt[1]->set_one_based_boundary_id(one_based_boundary_id);
442  Facet_pt[1]->set_vertex_pt(0,Vertex_pt[4]);
443  Facet_pt[1]->set_vertex_pt(1,Vertex_pt[5]);
444  Facet_pt[1]->set_vertex_pt(2,Vertex_pt[6]);
445  Facet_pt[1]->set_vertex_pt(3,Vertex_pt[7]);
446 
447  // top
448  Facet_pt[2]=new TetMeshFacet(n_vertex_on_facet);
449  one_based_boundary_id=4;
450  Facet_pt[2]->set_one_based_boundary_id(one_based_boundary_id);
451  Facet_pt[2]->set_vertex_pt(0,Vertex_pt[3]);
452  Facet_pt[2]->set_vertex_pt(1,Vertex_pt[7]);
453  Facet_pt[2]->set_vertex_pt(2,Vertex_pt[6]);
454  Facet_pt[2]->set_vertex_pt(3,Vertex_pt[2]);
455 
456  Facet_pt[3]=new TetMeshFacet(n_vertex_on_facet);
457  one_based_boundary_id=5;
458  Facet_pt[3]->set_one_based_boundary_id(one_based_boundary_id);
459  Facet_pt[3]->set_vertex_pt(0,Vertex_pt[6]);
460  Facet_pt[3]->set_vertex_pt(1,Vertex_pt[5]);
461  Facet_pt[3]->set_vertex_pt(2,Vertex_pt[1]);
462  Facet_pt[3]->set_vertex_pt(3,Vertex_pt[2]);
463 
464  Facet_pt[4]=new TetMeshFacet(n_vertex_on_facet);
465  one_based_boundary_id=6;
466  Facet_pt[4]->set_one_based_boundary_id(one_based_boundary_id);
467  Facet_pt[4]->set_vertex_pt(0,Vertex_pt[3]);
468  Facet_pt[4]->set_vertex_pt(1,Vertex_pt[2]);
469  Facet_pt[4]->set_vertex_pt(2,Vertex_pt[1]);
470  Facet_pt[4]->set_vertex_pt(3,Vertex_pt[0]);
471 
472  // bottom
473  Facet_pt[5]=new TetMeshFacet(n_vertex_on_facet);
474  one_based_boundary_id=7;
475  Facet_pt[5]->set_one_based_boundary_id(one_based_boundary_id);
476  Facet_pt[5]->set_vertex_pt(0,Vertex_pt[5]);
477  Facet_pt[5]->set_vertex_pt(1,Vertex_pt[1]);
478  Facet_pt[5]->set_vertex_pt(2,Vertex_pt[0]);
479  Facet_pt[5]->set_vertex_pt(3,Vertex_pt[4]);
480  }
Definition: tet_mesh.h:168
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
Definition: tet_mesh.h:50
double Box_length
Definition: uns_adapt_3d.cc:47
double Box_width
Definition: uns_adapt_3d.cc:46

References Global_Parameters::Box_length, and Global_Parameters::Box_width.


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