adhishm / dd2d_Matryoshka

A set of classes defining the behaviour of crystalline defects, with the final goal of carrying out dislocation dynamics simulations in two dimensions.
Other
5 stars 4 forks source link

Plot Tools - handling disappearing objects #48

Closed adhishm closed 11 years ago

adhishm commented 11 years ago

The current plotting script takes in data in the form of a matrix with each row corresponding to an instant in time and each column giving the position of a certain defect. The trouble is that when one or more dislocations disappear (by annihilation, or by absorption into a free surface), the number of of columns changes. Is there a simple way for the script to know that it is time to stop plotting a certain defect as it has disappeared from the simulation?

adhishm commented 11 years ago

This can be handled by plotting each time instant separately. At each instant, only the objects present then are plotted, and there is no line connecting points between one instant and the next. Having a hign enough frequency will solve the problem of visual continuity automatically.

The graph should then look something like this image below (The colours red and blue represent dislocations with opposite signs): schematic