Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Mesh::GeometricEntity Class Reference

Connects continuous to discrete. More...

#include <Mesh.H>

Inheritance diagram for Mesh::GeometricEntity:
Collaboration diagram for Mesh::GeometricEntity:

Public Member Functions

GeoNameType Name () const
 
GeoDimType Dim () const
 

Public Attributes

Mesh::Connectivity _collections
 

Friends

std::ostream & operator<< (std::ostream &oSt, const Mesh::GeometricEntity &ge)
 
std::istream & operator>> (std::istream &iSt, Mesh::GeometricEntity &ge)
 

Detailed Description

Connects continuous to discrete.

The GeometricEntity object encodes a physical geometry by dimension and can maintain a list of all discrete mesh entities that are associated with the given geometrical object.
Here is a brief description of the types of objects we can represent with a GeometricEntity and their interconnections:

dim  discrete   physical
---  --------   --------
0     Node       Point
1     Edge       Curve
2     Face      Surface
3    Region      Volume

Definition at line 433 of file Mesh.H.

Member Function Documentation

GeoDimType Dim ( ) const
inline

Definition at line 441 of file Mesh.H.

441 { return this->second; };
GeoNameType Name ( ) const
inline

Definition at line 440 of file Mesh.H.

440 { return this->first; };

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  oSt,
const Mesh::GeometricEntity ge 
)
friend

Definition at line 2166 of file Mesh.C.

2167  {
2168  if(ge.first.empty()) return(oSt);
2169  oSt << std::setiosflags(std::ios::left) << ge.first << "\n";
2170  oSt << ge._collections;
2171  return(oSt);
2172  }
Mesh::Connectivity _collections
Definition: Mesh.H:441
std::istream& operator>> ( std::istream &  iSt,
Mesh::GeometricEntity ge 
)
friend

Definition at line 2074 of file Mesh.C.

2075  {
2076  std::string line;
2077  std::getline(iSt,line);
2078  std::istringstream Istr(line);
2079  Istr >> ge.first;
2080  iSt >> ge._collections;
2081  ge.second = ge._collections.size();
2082  return(iSt);
2083  }
Mesh::Connectivity _collections
Definition: Mesh.H:441

Member Data Documentation

Mesh::Connectivity _collections

Definition at line 441 of file Mesh.H.

Referenced by Mesh::operator<<(), and Mesh::operator>>().


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