« home

elementari Examples

Select Structure from Dropdown

JSON for structure Bi2Zr2O7-Fm3m

{
  "@module": "pymatgen.core.structure",
  "@class": "Structure",
  "charge": 0,
  "lattice": {
    "matrix": [
      [
        5.3485,
        0,
        3.275011702619809e-16
      ],
      [
        -3.275011702619809e-16,
        5.3485,
        3.275011702619809e-16
      ],
      [
        0,
        0,
        5.3485
      ]
    ],
    "pbc": [
      true,
      true,
      true
    ],
    "a": 5.3485,
    "b": 5.3485,
    "c": 5.3485,
    "alpha": 90,
    "beta": 90,
    "gamma": 90,
    "volume": 153.00160985912498
  },
  "properties": {},
  "sites": [
    {
      "species": [
        {
          "element": "Bi",
          "oxidation_state": 3,
          "spin": null,
          "occu": 0.5
        },
        {
          "element": "Zr",
          "oxidation_state": 4,
          "spin": null,
          "occu": 0.5
        }
      ],
      "abc": [
        0,
        0,
        0
      ],
      "xyz": [
        0,
        0,
        0
      ],
      "properties": {},
      "label": "Zr"
    },
    {
      "species": [
        {
          "element": "Bi",
          "oxidation_state": 3,
          "spin": null,
          "occu": 0.5
        },
        {
          "element": "Zr",
          "oxidation_state": 4,
          "spin": null,
          "occu": 0.5
        }
      ],
      "abc": [
        0.5,
        0.5,
        0
      ],
      "xyz": [
        2.67425,
        2.67425,
        3.275011702619809e-16
      ],
      "properties": {},
      "label": "Zr"
    },
    {
      "species": [
        {
          "element": "Bi",
          "oxidation_state": 3,
          "spin": null,
          "occu": 0.5
        },
        {
          "element": "Zr",
          "oxidation_state": 4,
          "spin": null,
          "occu": 0.5
        }
      ],
      "abc": [
        0.5,
        0,
        0.5
      ],
      "xyz": [
        2.67425,
        0,
        2.67425
      ],
      "properties": {},
      "label": "Zr"
    },
    {
      "species": [
        {
          "element": "Bi",
          "oxidation_state": 3,
          "spin": null,
          "occu": 0.5
        },
        {
          "element": "Zr",
          "oxidation_state": 4,
          "spin": null,
          "occu": 0.5
        }
      ],
      "abc": [
        0,
        0.5,
        0.5
      ],
      "xyz": [
        -1.6375058513099044e-16,
        2.67425,
        2.67425
      ],
      "properties": {},
      "label": "Zr"
    },
    {
      "species": [
        {
          "element": "O",
          "oxidation_state": -2,
          "spin": null,
          "occu": 1
        }
      ],
      "abc": [
        0.25,
        0.25,
        0.25
      ],
      "xyz": [
        1.337125,
        1.337125,
        1.3371250000000001
      ],
      "properties": {},
      "label": "O"
    },
    {
      "species": [
        {
          "element": "O",
          "oxidation_state": -2,
          "spin": null,
          "occu": 1
        }
      ],
      "abc": [
        0.75,
        0.75,
        0.25
      ],
      "xyz": [
        4.011374999999999,
        4.011374999999999,
        1.3371250000000003
      ],
      "properties": {},
      "label": "O"
    },
    {
      "species": [
        {
          "element": "O",
          "oxidation_state": -2,
          "spin": null,
          "occu": 1
        }
      ],
      "abc": [
        0.75,
        0.75,
        0.75
      ],
      "xyz": [
        4.011374999999999,
        4.011374999999999,
        4.011375
      ],
      "properties": {},
      "label": "O"
    },
    {
      "species": [
        {
          "element": "O",
          "oxidation_state": -2,
          "spin": null,
          "occu": 1
        }
      ],
      "abc": [
        0.75,
        0.25,
        0.75
      ],
      "xyz": [
        4.011374999999999,
        1.337125,
        4.011375
      ],
      "properties": {},
      "label": "O"
    },
    {
      "species": [
        {
          "element": "O",
          "oxidation_state": -2,
          "spin": null,
          "occu": 1
        }
      ],
      "abc": [
        0.75,
        0.25,
        0.25
      ],
      "xyz": [
        4.011374999999999,
        1.337125,
        1.3371250000000001
      ],
      "properties": {},
      "label": "O"
    },
    {
      "species": [
        {
          "element": "O",
          "oxidation_state": -2,
          "spin": null,
          "occu": 1
        }
      ],
      "abc": [
        0.25,
        0.75,
        0.75
      ],
      "xyz": [
        1.3371249999999997,
        4.011374999999999,
        4.011375
      ],
      "properties": {},
      "label": "O"
    },
    {
      "species": [
        {
          "element": "O",
          "oxidation_state": -2,
          "spin": null,
          "occu": 1
        }
      ],
      "abc": [
        0.25,
        0.75,
        0.25
      ],
      "xyz": [
        1.3371249999999997,
        4.011374999999999,
        1.3371250000000001
      ],
      "properties": {},
      "label": "O"
    },
    {
      "species": [
        {
          "element": "O",
          "oxidation_state": -2,
          "spin": null,
          "occu": 1
        }
      ],
      "abc": [
        0.25,
        0.25,
        0.75
      ],
      "xyz": [
        1.337125,
        1.337125,
        4.011375
      ],
      "properties": {},
      "label": "O"
    }
  ],
  "id": "Bi2Zr2O7-Fm3m"
}

Bi2Zr2O7-Fm3m

Structure

Formula Bi2 O8 Zr2
Number of atoms 12
Volume 153.00 ų
Density 7.91 g/cm³
Lattice lengths a, b, c 5.35, 5.35, 5.35 Å
Lattice angles α, β, γ 90°, 90°, 90°

canvas width=0, height=0

Bismuth
Zirconium
Oxygen

Drop a JSON file onto the canvas to load a new structure.

Click on an atom to make it active. Then hover another atom to get its distance to the active atom.

Hold shift or cmd or ctrl and drag to pan the scene.

Click on an element label in the corner to change its color. Double click to reset.

Show


<script>
  import { Structure, StructureCard } from '$lib'
  import { structures } from '$site'
  import Select from 'svelte-multiselect'

  let mp_id = `Bi2Zr2O7-Fm3m`
  let width
  let height
  $: href = `https://materialsproject.org/materials/${mp_id}`
  $: structure = structures.find((struct) => struct.id === mp_id) || {}
</script>

<form>
  <label for="select">Select a structure:</label>
  <Select
    id="select"
    options={structures.map((struct) => struct.id)}
    selected={[mp_id]}
    bind:value={mp_id}
    maxSelect={1}
    minSelect={1}
  />

  <details>
    <summary>JSON for structure {mp_id}</summary>
    <pre>
    <code>
    {JSON.stringify(structure, null, 2)}
    </code>
  </pre>
  </details>
</form>

<h3 align='center'><a {href}>{mp_id}</a></h3>
<StructureCard {structure} />
<p>canvas width=<span>{width}</span>, height=<span>{height}</span></p>
<Structure {structure} bind:width bind:height />

Structures in a grid

Just to show off you can load several without the page getting too slow.

  • mp-1

    Cesium

    Drop a JSON file onto the canvas to load a new structure.

    Click on an atom to make it active. Then hover another atom to get its distance to the active atom.

    Hold shift or cmd or ctrl and drag to pan the scene.

    Click on an element label in the corner to change its color. Double click to reset.

    Show


  • mp-2

    Palladium

    Drop a JSON file onto the canvas to load a new structure.

    Click on an atom to make it active. Then hover another atom to get its distance to the active atom.

    Hold shift or cmd or ctrl and drag to pan the scene.

    Click on an element label in the corner to change its color. Double click to reset.

    Show


  • mp-1234

    Lutetium
    Aluminium

    Drop a JSON file onto the canvas to load a new structure.

    Click on an atom to make it active. Then hover another atom to get its distance to the active atom.

    Hold shift or cmd or ctrl and drag to pan the scene.

    Click on an element label in the corner to change its color. Double click to reset.

    Show


  • Bi2Zr2O7-Fm3m

    Bismuth
    Zirconium
    Oxygen

    Drop a JSON file onto the canvas to load a new structure.

    Click on an atom to make it active. Then hover another atom to get its distance to the active atom.

    Hold shift or cmd or ctrl and drag to pan the scene.

    Click on an element label in the corner to change its color. Double click to reset.

    Show


  • mp-1229155

    Silver
    Mercury
    Sulfur
    Bromine
    Chlorine

    Drop a JSON file onto the canvas to load a new structure.

    Click on an atom to make it active. Then hover another atom to get its distance to the active atom.

    Hold shift or cmd or ctrl and drag to pan the scene.

    Click on an element label in the corner to change its color. Double click to reset.

    Show


  • mp-1229168

    Aluminium
    Iron
    Nickel

    Drop a JSON file onto the canvas to load a new structure.

    Click on an atom to make it active. Then hover another atom to get its distance to the active atom.

    Hold shift or cmd or ctrl and drag to pan the scene.

    Click on an element label in the corner to change its color. Double click to reset.

    Show


<script>
  import { Structure } from '$lib'
  import { structures } from '$site'
</script>

<ul>
  {#each structures.filter(({sites}) => sites.length < 80) as structure}
    {@const { id } = structure}
    {@const href = `https://materialsproject.org/materials/${id}`}
    <li>
      <h2><a {href}>{id}</a></h2>
      <Structure {structure} />
    </li>
  {/each}
</ul>