GraphNet: Discrete element modeling for network connected materials
Applications to polymeric networks
crack.h
Go to the documentation of this file.
1 #ifndef CRACK_H
2 #define CRACK_H
3 
4 #include <stddef.h>
5 #include "params.h"
6 
7 using namespace std;
8 
13 class Crack {
14 
15 protected:
16 
17  void clear();
18  void copy(Crack const & source);
19 
20 public:
21  float * c;
22  float * a;
23  float * trig;
24  int dim;
25  Crack(); //: Crack(2) {}
26  void setter(float, float,float, float,float, float);
27  void setter(Crack &);
28  float inside(float* R);
29  virtual ~Crack();
30  Crack(Crack const & source);
31  Crack const & operator=(Crack const & other);
32  void print_info();
33 
34 };
35 
36 class Cracklist : public Crack{
37 
38 public:
39  int n_cracks;
41  Crack & operator[](int);
42  Cracklist(int);
43  Cracklist();
44  Cracklist(Crack&);
45  ~Cracklist();
46 } ;
47 
48 #endif
Definition: crack.h:36
float * c
Holds the coordinates of the center of the ellipse.
Definition: crack.h:21
float * trig
Holds the sine and cosine of the angle the major axis of the ellipse makes with the problem&#39;s x axis...
Definition: crack.h:23
int n_cracks
Number of cracks in the Cracklist.
Definition: crack.h:39
Definition: crack.h:13
float * a
Holds the lengths of the major and minor axes of the ellipse.
Definition: crack.h:22
int dim
Obsolete. Is generally equal to DIM from params.h.
Definition: crack.h:24
Crack * listofCracks
Definition: crack.h:40