GraphNet: Discrete element modeling for network connected materials
Applications to polymeric networks
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Crack Class Reference

#include <crack.h>

Inheritance diagram for Crack:
Inheritance graph
[legend]

Public Member Functions

 Crack ()
 Default constructor for a Crack object. Zero-initializes all data members. More...
 
void setter (float, float, float, float, float, float)
 Sets the value of data members according to: More...
 
void setter (Crack &)
 Sets the value of data members according to the Crack source object Effectively, overloads setter() to implement copy constructor. More...
 
float inside (float *R)
 Checks whether a node lies inside the specified ellipse of not. A negative implies point lies inside while a positive implies outside. More...
 
virtual ~Crack ()
 Destructor. More...
 
 Crack (Crack const &source)
 Copy constructor. More...
 
Crack const & operator= (Crack const &other)
 Assignment(=) overloading. Calls copy constructor. More...
 
void print_info ()
 Prints the data members of Crack object to STDOUT. More...
 

Public Attributes

float * c
 Holds the coordinates of the center of the ellipse. More...
 
float * a
 Holds the lengths of the major and minor axes of the ellipse. More...
 
float * trig
 Holds the sine and cosine of the angle the major axis of the ellipse makes with the problem's x axis. More...
 
int dim
 Obsolete. Is generally equal to DIM from params.h. More...
 

Protected Member Functions

void clear ()
 Called by destructor. Clears all variables from memory. More...
 
void copy (Crack const &source)
 Implements copying from source. Called by copy constructor. More...
 

Constructor & Destructor Documentation

Crack::Crack ( )

Default constructor for a Crack object. Zero-initializes all data members.

Crack::~Crack ( )
virtual

Destructor.

Crack::Crack ( Crack const &  source)

Copy constructor.

Member Function Documentation

void Crack::clear ( )
protected

Called by destructor. Clears all variables from memory.

void Crack::copy ( Crack const &  source)
protected

Implements copying from source. Called by copy constructor.

float Crack::inside ( float *  R)

Checks whether a node lies inside the specified ellipse of not. A negative implies point lies inside while a positive implies outside.

Crack const & Crack::operator= ( Crack const &  other)

Assignment(=) overloading. Calls copy constructor.

void Crack::print_info ( )

Prints the data members of Crack object to STDOUT.

void Crack::setter ( float  cx,
float  cy,
float  ax,
float  ay,
float  sine,
float  cosine 
)

Sets the value of data members according to:

Parameters
cxabcissa of center of ellipse
cyordinate of center of ellipse
axlength of the semi-major axis of the ellipse
aylength of the semi-minor axis of the ellipse
sinesine of the angle that major-axis forms with x-axis
cosinecosine of the angle that major-axis forms with x-axis (redundant)
void Crack::setter ( Crack source)

Sets the value of data members according to the Crack source object Effectively, overloads setter() to implement copy constructor.

Member Data Documentation

float* Crack::a

Holds the lengths of the major and minor axes of the ellipse.

float* Crack::c

Holds the coordinates of the center of the ellipse.

int Crack::dim

Obsolete. Is generally equal to DIM from params.h.

float* Crack::trig

Holds the sine and cosine of the angle the major axis of the ellipse makes with the problem's x axis.


The documentation for this class was generated from the following files: