-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dee97a3
commit 6b4e33b
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from hoomd_organics.library import Graphene | ||
|
||
|
||
class TestSurfaces: | ||
def test_create_graphene_surface(self): | ||
surface = Graphene( | ||
x_repeat=2, | ||
y_repeat=2, | ||
n_layers=3, | ||
periodicity=(False, False, False), | ||
) | ||
assert surface.n_particles == 4 * 2 * 2 * 3 | ||
assert surface.n_bonds == 54 | ||
|
||
def test_graphene_with_periodicity(self): | ||
surface = Graphene( | ||
x_repeat=2, y_repeat=2, n_layers=3, periodicity=(True, True, False) | ||
) | ||
assert surface.n_particles == 4 * 2 * 2 * 3 | ||
assert surface.periodicity == (True, True, False) | ||
assert surface.n_bonds == 72 |