Triangle class.
More...
#include <phelm.h>
List of all members.
|
Public Member Functions |
| | Triangle (int p1, int p2, int p3, int zone=0) |
| | Initialization of point numbers and subdomain number.
|
| double | X (int i, const std::vector< MeshPoint > &ps) const |
| | Returns vertex x coordinate.
|
| double | Y (int i, const std::vector< MeshPoint > &ps) const |
| | Returns vertex y coordinate.
|
| void | prepare (const std::vector< MeshPoint > &ps) |
| | Initialize arrays x and y of mesh points array.
|
| const std::vector< Polynom > & | elem1 () const |
| | Returns first order finite elements.
|
| const Polynom & | elem1 (int p1) const |
| | Returns finite element in point p1.
|
Public Attributes |
|
int | p [3] |
| | point number
|
|
int | z |
| | zone number
|
|
std::vector< Polynom > | phik |
| | basis functions
|
|
double | x [3] |
| | vertices x coordinates
|
|
double | y [3] |
| | vertices y coordinates
|
Detailed Description
Triangle class.
- Examples:
-
test_system_laplace.cpp.
Definition at line 339 of file phelm.h.
Constructor & Destructor Documentation
| phelm::Triangle::Triangle |
( |
int |
p1, |
|
|
int |
p2, |
|
|
int |
p3, |
|
|
int |
zone = 0 | |
|
) |
| | [inline] |
Initialization of point numbers and subdomain number.
- Parameters:
-
| p1 | - point 1 |
| p2 | - point 2 |
| p3 | - point 3 |
| zone | - subdomain number, the triangle belongs to that subdomain |
Definition at line 353 of file phelm.h.
Member Function Documentation
| const Polynom& phelm::Triangle::elem1 |
( |
int |
p1 |
) |
const [inline] |
Returns finite element in point p1.
- Parameters:
-
- Returns:
- finite element
Definition at line 426 of file phelm.h.
| const std::vector< Polynom >& phelm::Triangle::elem1 |
( |
|
) |
const [inline] |
Returns first order finite elements.
- Returns:
- first order finite elements
Definition at line 416 of file phelm.h.
| void phelm::Triangle::prepare |
( |
const std::vector< MeshPoint > & |
ps |
) |
[inline] |
Initialize arrays x and y of mesh points array.
- Parameters:
-
Definition at line 387 of file phelm.h.
| double phelm::Triangle::X |
( |
int |
i, |
|
|
const std::vector< MeshPoint > & |
ps | |
|
) |
| | const [inline] |
Returns vertex x coordinate.
- Parameters:
-
| i | - vertex number (from 0 to 2) |
| ps | - mesh points |
- Returns:
- x coordinate
Definition at line 367 of file phelm.h.
| double phelm::Triangle::Y |
( |
int |
i, |
|
|
const std::vector< MeshPoint > & |
ps | |
|
) |
| | const [inline] |
Returns vertex y coordinate.
- Parameters:
-
| i | - vertex number (from 0 to 2) |
| ps | - mesh points |
- Returns:
- y coordinate
Definition at line 378 of file phelm.h.
The documentation for this struct was generated from the following file: