Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,15 @@
},
{
"cell_type": "code",
"outputs": [],
"source": [
"# Material and structure parameters\n",
"TWIST_ANGLE_A = 2.64 # Twist angle in degrees for A material\n",
"TWIST_ANGLE_B = 60 + 2.64 # Twist angle in degrees for B material\n",
"\n",
"# Nanoribbons parameters\n",
"\n",
"RIBBON_WIDTH = 100 # Width of the nanoribbon in Angstroms\n",
"RIBBON_LENGTH = 100 # Length of the nanoribbon in Angstrom\n",
"RIBBON_WIDTH = 40 # Width of the nanoribbon in unit cells\n",
"RIBBON_LENGTH = 40 # Length of the nanoribbon in unit cells\n",
"\n",
"# Interface parameters\n",
"INTERFACE_DISTANCE = 3.23 # Distance between layers in Angstroms\n",
Expand All @@ -65,6 +64,7 @@
"collapsed": false
},
"id": "47af0a587ce80b91",
"outputs": [],
"execution_count": null
},
{
Expand All @@ -79,7 +79,6 @@
},
{
"cell_type": "code",
"outputs": [],
"source": [
"import sys\n",
"\n",
Expand All @@ -95,6 +94,7 @@
"collapsed": false
},
"id": "f67b53c0f60f257c",
"outputs": [],
"execution_count": null
},
{
Expand All @@ -110,7 +110,6 @@
},
{
"cell_type": "code",
"outputs": [],
"source": [
"from mat3ra.made.material import Material\n",
"from mat3ra.standata.materials import Materials\n",
Expand All @@ -130,6 +129,7 @@
"collapsed": false
},
"id": "f1c2ac4b7553961b",
"outputs": [],
"execution_count": null
},
{
Expand All @@ -145,7 +145,6 @@
},
{
"cell_type": "code",
"outputs": [],
"source": [
"from mat3ra.made.tools.build.interface.builders import NanoRibbonTwistedInterfaceBuilder\n",
"from mat3ra.made.tools.build.interface.configuration import NanoRibbonTwistedInterfaceConfiguration\n",
Expand Down Expand Up @@ -174,6 +173,7 @@
"collapsed": false
},
"id": "80ac5dd96d8622b7",
"outputs": [],
"execution_count": null
},
{
Expand All @@ -188,7 +188,6 @@
},
{
"cell_type": "code",
"outputs": [],
"source": [
"interface_a = builder.get_material(config_a)\n",
"interface_b = builder.get_material(config_b)\n",
Expand All @@ -203,6 +202,7 @@
"collapsed": false
},
"id": "10f0a8aac5fec58f",
"outputs": [],
"execution_count": null
},
{
Expand All @@ -217,7 +217,6 @@
},
{
"cell_type": "code",
"outputs": [],
"source": [
"visualize_materials([interface_a, interface_b], repetitions=VISUALIZE_REPETITIONS)\n",
"visualize_materials([interface_a, interface_b], repetitions=VISUALIZE_REPETITIONS, rotation=\"-90x\")"
Expand All @@ -226,6 +225,7 @@
"collapsed": false
},
"id": "c4049a69b2dcbaa1",
"outputs": [],
"execution_count": null
},
{
Expand All @@ -240,7 +240,6 @@
},
{
"cell_type": "code",
"outputs": [],
"source": [
"from utils.jupyterlite import download_content_to_file, set_materials\n",
"\n",
Expand All @@ -252,6 +251,7 @@
"collapsed": false
},
"id": "a64a81bb1ab4d47d",
"outputs": [],
"execution_count": null
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
" await micropip.install('mat3ra-api-examples', deps=False)\n",
" from utils.jupyterlite import install_packages\n",
"\n",
" await install_packages(\"specific-examples\")"
" await install_packages(\"specific_examples\")"
],
"metadata": {
"collapsed": false
Expand Down
Loading