Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
plotLoops Namespace Reference

Variables

 simulationDir = os.path.abspath(".")
 materialFile = getStringInFile('inputFiles/polycrystal.txt','materialFile')
 F
 Flabels
 ddBase = pyMoDELib.DefectiveCrystalBase(simulationDir)
 b_SI = ddBase.poly.b_SI
 cs_SI = ddBase.poly.cs_SI
 configIO = pyMoDELib.DefectiveCrystalConfigIO(simulationDir+'/config')
 defectiveCrystal = pyMoDELib.DefectiveCrystal(ddBase)
 dislocationNetwork = defectiveCrystal.dislocationNetwork()
 runIDs = getFarray(F,Flabels,'runID')
int times = getFarray(F,Flabels,'time [b/cs]')*b_SI/cs_SI/3600
list loopRaii = []
list loopTimes = []
list loopPlanes = []
list loopTypes = []
list dislocationDensity = []
 runID = int(runIDs[k])
int time = times[k]
 networkLengthTuple = dislocationNetwork.networkLength()
 loop = dislocationNetwork.loops().getRef(loopID)
 planeID = loop.glidePlane.planeBaseID()
float r = np.sqrt(loop.slippedArea()/np.pi)*b_SI*1.0e9
dict mapping
 unique_strings = sorted(list(set(mapping.values())))
 cmap = plt.colormaps['plasma']
dict string_colors
 fig
 axs
 string_mask = np.zeros(len(loopRaii), dtype=bool)
 color
 label
 s
 alpha
 loc
 markerscale
 bbox_inches
 format

Variable Documentation

◆ alpha

plotLoops.alpha

Definition at line 87 of file plotLoops.py.

◆ axs

plotLoops.axs

Definition at line 72 of file plotLoops.py.

◆ b_SI

plotLoops.b_SI = ddBase.poly.b_SI

Definition at line 16 of file plotLoops.py.

◆ bbox_inches

plotLoops.bbox_inches

Definition at line 90 of file plotLoops.py.

◆ cmap

plotLoops.cmap = plt.colormaps['plasma']

Definition at line 67 of file plotLoops.py.

◆ color

plotLoops.color

Definition at line 85 of file plotLoops.py.

◆ configIO

plotLoops.configIO = pyMoDELib.DefectiveCrystalConfigIO(simulationDir+'/config')

Definition at line 18 of file plotLoops.py.

◆ cs_SI

plotLoops.cs_SI = ddBase.poly.cs_SI

Definition at line 17 of file plotLoops.py.

◆ ddBase

plotLoops.ddBase = pyMoDELib.DefectiveCrystalBase(simulationDir)

Definition at line 15 of file plotLoops.py.

◆ defectiveCrystal

plotLoops.defectiveCrystal = pyMoDELib.DefectiveCrystal(ddBase)

Definition at line 19 of file plotLoops.py.

◆ dislocationDensity

list plotLoops.dislocationDensity = []

Definition at line 29 of file plotLoops.py.

◆ dislocationNetwork

plotLoops.dislocationNetwork = defectiveCrystal.dislocationNetwork()

Definition at line 20 of file plotLoops.py.

◆ F

plotLoops.F

Definition at line 14 of file plotLoops.py.

◆ fig

plotLoops.fig

Definition at line 72 of file plotLoops.py.

◆ Flabels

plotLoops.Flabels

Definition at line 14 of file plotLoops.py.

◆ format

plotLoops.format

Definition at line 90 of file plotLoops.py.

◆ label

plotLoops.label

Definition at line 86 of file plotLoops.py.

◆ loc

plotLoops.loc

Definition at line 89 of file plotLoops.py.

◆ loop

plotLoops.loop = dislocationNetwork.loops().getRef(loopID)

Definition at line 38 of file plotLoops.py.

◆ loopPlanes

plotLoops.loopPlanes = []

Definition at line 27 of file plotLoops.py.

◆ loopRaii

plotLoops.loopRaii = []

Definition at line 25 of file plotLoops.py.

◆ loopTimes

plotLoops.loopTimes = []

Definition at line 26 of file plotLoops.py.

◆ loopTypes

plotLoops.loopTypes = []

Definition at line 28 of file plotLoops.py.

◆ mapping

dict plotLoops.mapping
Initial value:
1= {
2 (0, 1): "basal vacancy",
3 (0, 0): "basal interstitial",
4 (1, 1): "prismatic vacancy", # (<a>1)
5 (1, 0): "prismatic interstial", # (<a>1)
6 (2, 1): "prismatic vacancy", # (<a>2)
7 (2, 0): "prismatic interstial", # (<a>2)
8 (3, 1): "prismatic vacancy", # (<a>3)
9 (3, 0): "prismatic interstial", # (<a>3)
10}

Definition at line 54 of file plotLoops.py.

◆ markerscale

plotLoops.markerscale

Definition at line 89 of file plotLoops.py.

◆ materialFile

plotLoops.materialFile = getStringInFile('inputFiles/polycrystal.txt','materialFile')

Definition at line 13 of file plotLoops.py.

◆ networkLengthTuple

plotLoops.networkLengthTuple = dislocationNetwork.networkLength()

Definition at line 35 of file plotLoops.py.

◆ planeID

plotLoops.planeID = loop.glidePlane.planeBaseID()

Definition at line 39 of file plotLoops.py.

◆ r

float plotLoops.r = np.sqrt(loop.slippedArea()/np.pi)*b_SI*1.0e9

Definition at line 41 of file plotLoops.py.

◆ runID

plotLoops.runID = int(runIDs[k])

Definition at line 31 of file plotLoops.py.

◆ runIDs

plotLoops.runIDs = getFarray(F,Flabels,'runID')

Definition at line 21 of file plotLoops.py.

◆ s

plotLoops.s

Definition at line 87 of file plotLoops.py.

◆ simulationDir

plotLoops.simulationDir = os.path.abspath(".")

Definition at line 12 of file plotLoops.py.

◆ string_colors

dict plotLoops.string_colors
Initial value:
1= {string: cmap(i / max(1, len(unique_strings) - 1))
2 for i, string in enumerate(unique_strings)}

Definition at line 68 of file plotLoops.py.

◆ string_mask

plotLoops.string_mask = np.zeros(len(loopRaii), dtype=bool)

Definition at line 76 of file plotLoops.py.

◆ time

int plotLoops.time = times[k]

Definition at line 32 of file plotLoops.py.

◆ times

int plotLoops.times = getFarray(F,Flabels,'time [b/cs]')*b_SI/cs_SI/3600

Definition at line 22 of file plotLoops.py.

◆ unique_strings

plotLoops.unique_strings = sorted(list(set(mapping.values())))

Definition at line 66 of file plotLoops.py.