-
-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Honeycomb flakes #636
Honeycomb flakes #636
Conversation
How about an API of |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #636 +/- ##
==========================================
+ Coverage 87.71% 87.73% +0.01%
==========================================
Files 362 362
Lines 48354 48403 +49
==========================================
+ Hits 42415 42464 +49
Misses 5939 5939
☔ View full report in Codecov by Sentry. |
What would you attach to what in this case? 😅 |
A new flake/ribbon, connecting ribbons and flakes could be quite interesting ;) |
Hmm yes, but the construction of the flake itself is not a composite geometry, no? So I would imagine you can take |
yes, that sounds cool :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great!
If adding 2 atoms, would it then alternate in each hexagon? That would be my ideal usecase, no?
Sorry, haven't tested, but looks good!
Good 👍 I will then finish the PR some time this week probably. To do the section stuff, it would be useful that the |
See the picture in the initial PR comment, is this how you expect it? Is there any other way? |
Sorry, too fast ;) Beautiful! :) |
7ffc10e
to
bee7ca2
Compare
Ok, this PR is ready 👍 |
g = graphene_flake(shells=0, bond=1.42) | ||
assert g.na == 6 | ||
# All atoms are close to the center | ||
assert len(g.close(g.center(), 1.44)) == g.na |
Check failure
Code scanning / CodeQL
An assert statement has a side-effect Error test
expression
|
||
g = graphene_flake(shells=1, bond=1.42) | ||
assert g.na == 24 | ||
assert len(g.close(g.center(), 4)) == g.na |
Check failure
Code scanning / CodeQL
An assert statement has a side-effect Error test
expression
bee7ca2
to
86fd8c0
Compare
Should I set the boundary conditions to |
All you need to do is to call This will set the boundary conditions correctly, to UNKNOWN. |
Why do you say the correct bc is UNKNOWN and not OPEN? It is a 0D flake. |
For this it would be better to use |
86fd8c0
to
266dd34
Compare
Ok, it should be fine now 👍 |
Could a honeycomb/graphene flake geometry be useful? I'm using one currently and I think they are useful in general to create finite bilayers with arbitrary twist.
This PR is a proposal to add them.
Examples
isort .
at top--leveldocs/
CHANGELOG.md