Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ElmerCSC
GitHub Repository: ElmerCSC/elmerfem
Path: blob/devel/meshgen2d/src/include/MeshNode.h
3203 views
1
#if !defined( BL_MESHNODE_H )
2
#define BL_MESHNODE_H
3
4
#include "Node.h"
5
#include "GeometryNode.h"
6
7
enum node_type { NEUTRAL = 0, FIXED, CRYSTALNODE };
8
class MeshNode : public Node
9
{
10
public:
11
MeshNode();
12
MeshNode(const int t, const double xc, const double yc);
13
MeshNode(const double xc, const double yc);
14
MeshNode(const GeometryNode& nd);
15
~MeshNode() { }
16
17
void fix() { fixed = FIXED; }
18
bool isFixed() { return fixed == FIXED; }
19
void putOnCrysralIfNotFixed() { if( fixed != FIXED ) fixed = CRYSTALNODE; }
20
bool isCrystal() { return fixed == CRYSTALNODE; }
21
22
private:
23
node_type fixed;
24
};
25
26
#endif /* BL_MESHNODE_H */
27
28