21 |
#ifndef _CELL_HPP_ |
#ifndef _CELL_HPP_ |
22 |
#define _CELL_HPP_ |
#define _CELL_HPP_ |
23 |
|
|
|
class Domain; |
|
24 |
#include <Vertex.hpp> |
#include <Vertex.hpp> |
25 |
|
|
26 |
/*! |
/** |
27 |
\class Cell |
* @file Cell.hpp |
28 |
This class describes 3D Mesh Hexahedron cells. |
* @author Stephane Del Pino |
29 |
|
* @date Sun Jun 15 19:49:43 2003 |
30 |
\author Stéphane Del Pino. |
* |
31 |
*/ |
* @brief This class describes 3D Mesh cells. |
32 |
|
* |
33 |
|
* |
34 |
|
*/ |
35 |
class Cell { |
class Cell { |
36 |
public: |
public: |
37 |
enum Type { |
enum Type { |
60 |
return __volume; |
return __volume; |
61 |
} |
} |
62 |
|
|
63 |
|
/** |
64 |
|
* Replaces |
65 |
|
* |
66 |
|
* @param v0 |
67 |
|
* @param v1 |
68 |
|
*/ |
69 |
|
inline void replace(Vertex* v0, Vertex* v1) |
70 |
|
{ |
71 |
|
ffout(0) << *v0 << " -> " << *v1 << '\n'; |
72 |
|
for (size_t i = 0; i<numberOfVertices(); ++i) { |
73 |
|
if (__vertices[i] == v0) { |
74 |
|
__vertices[i] = v1; |
75 |
|
return; |
76 |
|
} |
77 |
|
fferr(0) << __FILE__ << ':' << __LINE__ << ':' << *v1 << " was not found!\n"; |
78 |
|
// std::exit(1); |
79 |
|
} |
80 |
|
} |
81 |
|
|
82 |
//! Number of Vertices. |
//! Number of Vertices. |
83 |
virtual const size_t numberOfVertices() const = 0; |
virtual const size_t numberOfVertices() const = 0; |
84 |
|
|