Skip to content

Commit

Permalink
WIP: Added debugging print statements for alpha_range
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraser-Birks committed Sep 26, 2023
1 parent 10aa552 commit c5ba684
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/fracture_mechanics/parallel_NCFlex.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,13 +692,13 @@ def main(K_range,alpha_range):
closest_x = xpos[closest_y_mask&xmask]

#sort these atoms and find the largest x gap

print('closest_x', closest_x)
sorted_x = np.sort(closest_x)

print('sorted_x', sorted_x)
diffs = np.diff(sorted_x)

print('diffs',diffs)
alpha_period = np.sum(np.unique(np.round(np.diff(sorted_x),decimals=4)))

print('alpha_period',alpha_period)
# setup the crack
crk = CubicCrystalCrack(parameter('crack_surface'),
parameter('crack_front'),
Expand Down

0 comments on commit c5ba684

Please sign in to comment.