statmechcrack.tests.test_zero¶
A module for testing when something is zero.
- class Zero(methodName='runTest')[source]¶
Bases:
TestCase
Class to test for when something is zero.
- test_zero_minimized_nondimensional_energy()[source]¶
Function to test for zero minimized nondimensional energy.
- random_crack_model(N=16, M=17, kappa=69.75733328948753, alpha=1.2807179552512473, varepsilon=54.79674000369688)[source]¶
Function to produce a random crack model.
- Parameters:
N (int, optional, default=random) – The number of broken bonds.
M (int, optional, default=random) – The number of intact bonds.
kappa (float, optional, default=random) – The nondimensional bending stiffness.
alpha (float, optional, default=random) – The nondimensional Morse parameter.
varepsilon (float, optional, default=random) – The nondimensional bond energy.
- Returns:
A crack model instance.
- Return type:
object