<commit_before>#! /usr/bin/env python

from math import log

import numpy as np

import ase.io

from matscipy.fracture_mechanics.clusters import diamond_110_001

import atomistica

###

# Interaction potential
calc = atomistica.KumagaiScr()

# Fundamental material properties
el              = 'Si'
a0              = 5.429
C11             = 166.   # GPa
C12             = 65.    # GPa
C44             = 77.    # GPa
surface_energy  = 1.08  * 10    # GPa*A = 0.1 J/m^2

# Crack system
n               = [ 6, 1, 6 ]
crack_surface   = [ 1, 1, 0 ]
crack_front     = [ 0, 0, 1 ]

vacuum          = 6.0

# Simulation control
bonds = [( 58, 59 ), (61, 84)]
        
k1              = 1.00
bond_lengths    = np.linspace(2.5, 4.5, 41)

fmax            = 0.001

cutoff          = 5.0

# Setup crack system
cryst = diamond_110_001(el, a0, n, crack_surface, crack_front)
ase.io.write('cryst.cfg', cryst)

optimize_tip_position = True<commit_msg>Crack now in xy plane.<commit_after>#! /usr/bin/env python

from math import log

import numpy as np

import ase.io

from matscipy.fracture_mechanics.clusters import diamond_110_001

import atomistica

###

# Interaction potential
calc = atomistica.KumagaiScr()

# Fundamental material properties
el              = 'Si'
a0              = 5.429
C11             = 166.   # GPa
C12             = 65.    # GPa
C44             = 77.    # GPa
surface_energy  = 1.08  * 10    # GPa*A = 0.1 J/m^2

# Crack system
n               = [ 6, 6, 1 ]
crack_surface   = [ 1, 1, 0 ]
crack_front     = [ 0, 0, 1 ]

vacuum          = 6.0

# Simulation control
bonds = [( 58, 59 ), (61, 84)]
        
k1              = 1.00
bond_lengths    = np.linspace(2.5, 4.5, 41)

fmax            = 0.001

# Setup crack system
cryst = diamond_110_001(el, a0, n, crack_surface, crack_front)
ase.io.write('cryst.cfg', cryst)

optimize_tip_position = True
{'fraction_non_alphanumeric': 0.11069114470842333, 'fraction_numerical': 0.07883369330453564, 'mean_word_length': 1.9695512820512822, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '979613', 'n_tokens_mistral': 813, 'n_tokens_neox': 697, 'n_words': 183}