Defined function DislocationSource::emitDipole
This function emits a dislocation dipole with the appropriate nucleation
length.
Free memory allocated for axes at the end of function
DislocationSource::emitDipole
The memory allocated for calculating the axes for the dislocation dipole
is freed at the end of the function.
Added comment to DislocationSource::emitDipole to explain choice of
dislocation dipole position
Merge branch 'version_0.0_simulateSingleSlipPlane_dislocationDipoleSource' into version_0.0_simulateSingleSlipPlane_dislocationDipoleSource_emitDipole
Re-arranged function prototypes within class SlipPlane.
The function prototypes within the definition of the class SlipPlane
have been re-arranged to group together the functions for different
types of defects and other quantities.
Renamed the function SlipPlane::calculateVelocities to
SlipPlane::calculateDislocationVelocities
Defined the function SlipPlane::calculateDislocationSourceStresses.
Defined generic function that calculates the stress fields on all
defects presenton a given slip plane, due to all other defects present
on the same slip plane.
Defining function SlipPlane::checkDislocationSources
Attention:This function is incomplete.

We require another function which will return all defects that exist on
the slip plane between two given positions p0 and p1, such that they
appear on the list in the order as seen when travelling from p0 to p1.
This function will be defined in the next commit.
Function SlipPlane::findDefectsBetweenPoints defined.
This function looks for defects lying between the two points p0 and p1
provided. The elements of the vector are ordered such that they appear
as they would when travelling from p0 to p1. The function creates a
vector container with pointers to defects lying between two given
position vectors p0 and p1 (both specified in the slip plane co-ordinate
system). The order of pointers within the vector is the one that one
would have when travels from p0 to p1. In the case where there are no
defects lying in between these two points, an empty container is
returned.
Completed definition of SlipPlane::checkDislocationSources
Dislocation dipoles are emitted, the new dislocations are placed so as
to not conflict with existing defects. The new dislocations are inserted
into the slip plane's lists and at the end these lists are sorted.
Suggestion: Maybe a dislocation source should be made inactive if there
are defects lying too close to it.
Inserted call to SlipPlane::checkDislocationSources into the iterations
Used reverse iterators for backwards browsing of slip plane defects
Modified order of updating defect lists for slip plane
The order is as follows:
The dislocations are inserted.
The dislocations are sorted.
The defect list is updated.
Major bug in sort functions resolved
The sort functions were simply swapping pointers within the functions
without changing places of the data in the vectors. This has now been
corrected.
Defined new sort function for defects using the algorithm std::sort
All sort functions in SlipPlane class now use the std::sort algorithm to
sort their vectors.
Removed totalStress data members from class Dislocation
A dislocation approaches a Frank-Read source as it would approach
another dislocation.
Inserted missing break after switch-case.