16 #define BND_DIRICHLET 3
18 #define BND_ROBIN (BND_DIRICHLET & BND_NEUMANN)
19 #define BND_ANY (BND_DIRICHLET | BND_NEUMANN)
20 #define BND_INTERNAL 2 // physical boundary for extrapolated b.c.
21 #define INTERNAL BND_NONE
22 #define XLAYER_INTERNAL 4 // internal nodes in extrapolation band
30 FELIB
void Swap (
Node &n1,
Node &n2);
31 FELIB
double Dist (
const Node &n1,
const Node &n2);
32 FELIB std::istream& operator>> (std::istream& is,
Node& nd);
33 FELIB std::ostream& operator<< (std::ostream& os,
Node& nd);
43 Node (
int dim,
char _bndtp = BND_NONE);
58 friend FELIB
void Swap (
Node &n1,
Node &n2);
61 friend FELIB
double Dist (
const Node &n1,
const Node &n2);
65 char BndTp()
const {
return bndtp; }
66 bool isInternalInterface()
const {
return bndtp == 2; }
67 bool isBnd()
const {
return bndtp != 0 && bndtp != 2; }
68 bool isAnyBnd()
const {
return bndtp != 0 ; }
69 void SetBndTp (
char _bndtp) { bndtp = _bndtp; }
70 double Phi ()
const {
return phi; }
73 int Region()
const {
return region; }
74 void SetRegion (
int _region) { region = _region; }
void Copy(const TVector &v)
Vector copy. Replaces the vector with a copy of 'v'.
friend std::istream & operator>>(std::istream &is, TVector< double > &v)
Read vector from input stream.
friend std::ostream & operator<<(std::ostream &os, const TVector< double > &v)
Write vector to output stream.
friend bool operator!=(const TVector< double > &v1, const TVector< double > &v2)
Vector comparison (relational operator)
friend bool operator==(const TVector< double > &v1, const TVector< double > &v2)
Vector comparison (relational operator)