Metadata-Version: 2.4
Name: v_ase-gui
Version: 0.5.2
Summary: A local 3D viewer, editor, and analysis workspace for atomistic structures, trajectories, and DFT fields.
Author: v_ase contributors
License-Expression: AGPL-3.0-or-later
Project-URL: Homepage, https://github.com/lgyEthan/v_ase
Project-URL: Documentation, https://v-ase.readthedocs.io/
Project-URL: Repository, https://github.com/lgyEthan/v_ase
Project-URL: Issues, https://github.com/lgyEthan/v_ase/issues
Project-URL: Changelog, https://v-ase.readthedocs.io/en/latest/whats-new.html
Keywords: ase,atomistic-simulation,materials-science,molecular-visualization,trajectory-analysis,density-functional-theory,scientific-visualization
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Chemistry
Classifier: Topic :: Scientific/Engineering :: Physics
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: ase>=3.26
Requires-Dist: matscipy<1.2.0,>=1.1.1; python_version < "3.13"
Requires-Dist: matscipy>=1.2.0; python_version >= "3.13"
Requires-Dist: fastapi>=0.110
Requires-Dist: uvicorn[standard]>=0.29
Requires-Dist: numpy<2.0,>=1.24; python_version < "3.13"
Requires-Dist: numpy>=2.0; python_version >= "3.13"
Requires-Dist: scipy>=1.10
Requires-Dist: scikit-image>=0.23
Requires-Dist: plotly>=5.24
Requires-Dist: matplotlib>=3.7
Requires-Dist: imageio-ffmpeg>=0.5
Requires-Dist: Pillow>=10
Requires-Dist: requests>=2.31
Requires-Dist: jsonschema>=4.23
Provides-Extra: mcp
Requires-Dist: mcp<3,>=2.1.1; extra == "mcp"
Provides-Extra: soap
Requires-Dist: dscribe<3,>=2.1.2; extra == "soap"
Provides-Extra: dev
Requires-Dist: pytest>=8; extra == "dev"
Requires-Dist: playwright>=1.40; extra == "dev"
Requires-Dist: build>=1.2; extra == "dev"
Requires-Dist: twine>=5; extra == "dev"
Provides-Extra: rhino
Requires-Dist: rhino3dm>=8.0; extra == "rhino"
Dynamic: description
Dynamic: description-content-type
Dynamic: license-file

<p align="center">
  <img src="https://raw.githubusercontent.com/lgyEthan/v_ase/v0.5.2/docs/assets/v_ase-logo.png" width="720" alt="v_ase logo">
</p>

# v_ase

v_ase is a desktop viewer and editor for atomistic simulations built on the
Atomic Simulation Environment (ASE). Measure a bond in a crystal, follow
atoms through a trajectory, or plot a charge-density difference. Save your
work as an editable project, a figure, or an interactive HTML file.

[![PyPI version](https://img.shields.io/pypi/v/v_ase-gui.svg)](https://pypi.org/project/v-ase-gui/)
[![Documentation](https://readthedocs.org/projects/v-ase/badge/?version=latest)](https://v-ase.readthedocs.io/en/latest/)
[![License: AGPL v3+](https://img.shields.io/badge/license-AGPL--3.0--or--later-2f855a.svg)](https://github.com/lgyEthan/v_ase/blob/v0.5.2/LICENSE)

## Download and install

**[Download v_ase for macOS or Windows](https://v-ase.readthedocs.io/en/latest/desktop.html#choose-a-download)**

In the viewport, select part of a phosphorene ribbon and rotate it. Repeat
along the ribbon to turn a flat sheet into a twist.

![Successive atom selections and rotations turn a flat phosphorene ribbon into a twist](https://raw.githubusercontent.com/lgyEthan/v_ase/v0.5.2/docs/assets/github/readme_phosphorene_twist.gif)

The desktop app includes Python and ASE. On a Mac, choose the Apple silicon or
Intel build. On Windows 10/11, choose the x64 installer. On Linux or a remote
workstation, use the Python package. To try the editor with a small structure,
download the ethane CIF from [Example inputs](https://v-ase.readthedocs.io/en/latest/example-inputs.html).

### Python and Jupyter

With Python 3.10 or newer, install [v_ase from PyPI](https://pypi.org/project/v-ase-gui/).

```bash
python -m pip install v_ase-gui
v_ase gui
```

Use `v_ase gui POSCAR` to open a file from the command line. In Python or Jupyter,
pass an ASE object directly to v_ase.

```python
from ase.build import molecule
from v_ase import view

view(molecule("H2O"))
```

[Python installation](https://v-ase.readthedocs.io/en/latest/installation.html) ·
[Jupyter and remote systems](https://v-ase.readthedocs.io/en/latest/notebooks-remote.html)

## Open, edit, and save

1. Choose **File → Open** or drop a structure file into the window. v_ase reads
   extended XYZ, ASE trajectories, CIF, VASP files, and [other formats](https://v-ase.readthedocs.io/en/latest/formats.html).
2. Use **View only** to inspect a structure or play a trajectory. Switch to
   **Edit structure** to change atoms, coordinates, or the cell.
3. Save a `.vase` project to continue editing later. Use
   **Export HTML View** to share an interactive view or **Render → Image** to
   save a figure.

For a first measurement, open the ethane example and press **X** for a side
view. Click one carbon and Shift-click the other. Their separation is **1.52 Å**.
**Find tools…** (⌘F / Ctrl+F) locates commands in any panel.

[Quick start](https://v-ase.readthedocs.io/en/latest/quickstart.html) ·
[Worked examples](https://v-ase.readthedocs.io/en/latest/worked-examples.html) ·
[Keyboard shortcuts](https://v-ase.readthedocs.io/en/latest/shortcuts.html)

[Build and edit](#build-and-edit) · [Water and fields](#water-and-volumetric-fields) ·
[Periodic interfaces](#periodic-cells-and-interfaces) · [Appearance](#atoms-bonds-and-coordination) ·
[Trajectories and analysis](#trajectories-and-analysis) · [Constraints and relaxation](#constraints-and-relaxation) ·
[AI collaboration](#work-with-an-ai-agent) · [Rendering](#render-and-export) · [Save and share](#save-and-share)

## Build and edit

### Start from an empty cell

Create a cell, choose a composition and populate it with atoms. Build a crystal
with ASE, or prepare a disordered starting structure and remove close contacts.

![An empty workspace becomes a populated cell, followed by overlap relaxation](https://raw.githubusercontent.com/lgyEthan/v_ase/v0.5.2/docs/assets/github/readme_scratch_amorphous.gif)

[Atomic distributions](https://v-ase.readthedocs.io/en/latest/atomic-distributions.html) ·
[Crystal and atom builders](https://v-ase.readthedocs.io/en/latest/build-atoms.html)

### Add atoms where you need them

Define an insertion region and control composition, density and allowed space.
Here, oxygen is added around an existing copper structure while the host remains in place.

![Oxygen atoms placed within a chosen region around copper, then relaxed](https://raw.githubusercontent.com/lgyEthan/v_ase/v0.5.2/docs/assets/github/readme_add_atoms_allowed.gif)

[Insertion regions and placement](https://v-ase.readthedocs.io/en/latest/insertion-regions.html)

### Fill pores and surround surfaces with molecules

Insert rigid molecules into a selected region, set their number or density,
and relax close contacts before keeping the result. This example places water
around hydroxylated graphene-oxide layers.

![Water molecules inserted and relaxed around a layered graphene-oxide structure](https://raw.githubusercontent.com/lgyEthan/v_ase/v0.5.2/docs/assets/github/readme_add_molecules.gif)

[Molecular insertion](https://v-ase.readthedocs.io/en/latest/molecules.html)

### Move, rotate and scale selected atoms

Use `G`, `R` and `S` for direct manipulation, or enter exact values. Rotate a
fragment about its center, the active atom, or a chosen pivot. Press Enter to
apply the preview or Escape to restore the starting positions. Use
**Build → Rigid translation** to move selected or all atoms by Cartesian Å or
fractional cell units in the current frame or every frame.

Right-click a viewport object for its actions. When you have selected atoms,
the menu also offers actions for that selection. Right-drag pans the view.

![A selected ferrocene ring rotates about an explicit pivot and axis](https://raw.githubusercontent.com/lgyEthan/v_ase/v0.5.2/docs/assets/github/readme_ferrocene_pivot.gif)

[Move](https://v-ase.readthedocs.io/en/latest/move.html) ·
[Rotate and choose a pivot](https://v-ase.readthedocs.io/en/latest/rotate.html) ·
[Scale](https://v-ase.readthedocs.io/en/latest/scale.html) ·
[Keyboard controls](https://v-ase.readthedocs.io/en/latest/shortcuts.html)

## Water and volumetric fields

### Show water as a continuous surface

Turn H₂O coordinates into a translucent water envelope while keeping ions and
solids visible. Adjust color, opacity, smoothing and lighting, and follow the
surface through a trajectory.

![An animated translucent water surface surrounds ions and an atomistic membrane](https://raw.githubusercontent.com/lgyEthan/v_ase/v0.5.2/docs/assets/github/water-surface-experiment.gif)

[Water surfaces](https://v-ase.readthedocs.io/en/latest/water-surface.html)

### Explore charge, potential and orbital fields

Display positive and negative isosurfaces, change the threshold, and control
color and transparency. The example below changes the isovalue of a fixed
signed field around a carbon structure.

Use **Analyze → Fields → Combine** to add or subtract compatible grids, such
as A + B − C. Adjust the **Positive (+) color** and **Negative (−) color** for
the selected dataset, including the combined result.

![Positive and negative isosurfaces expand and contract as the isovalue changes](https://raw.githubusercontent.com/lgyEthan/v_ase/v0.5.2/docs/assets/github/readme_volumetric.gif)

[Isosurfaces](https://v-ase.readthedocs.io/en/latest/isosurfaces.html) ·
[Import and combine fields](https://v-ase.readthedocs.io/en/latest/field-processing.html)

### Slice through a scalar field

Move a colored section through the data to inspect what lies inside. Choose
Cartesian or crystallographic planes and keep the atomic structure in view.

![A colored scalar-field plane sweeps through an atomic structure](https://raw.githubusercontent.com/lgyEthan/v_ase/v0.5.2/docs/assets/github/readme_volumetric_plane.gif)

[Field planes and cross-sections](https://v-ase.readthedocs.io/en/latest/field-planes.html)

## Periodic cells and interfaces

### Find a common cell for rotated layers

Explore relative rotations and compatible periodic cells within your strain
and size limits. Preview candidates before creating the matched structure.
Cell tools also provide supercells, wrapping and cell transformations.
Supercell creation preserves supported restraints across periodic boundaries
and checks whether the chosen transform can preserve the constraints.
**Build → Cell matrix → Align a to +X, ab to XY** aligns
the cell and coordinates of each editable frame.
Press `A`, `B` or `C` for an upright view along that lattice vector. Press it
again for the opposite side. `X`, `Y` and `Z` select Cartesian views.

![Rotating a graphene and hBN bilayer reveals a compatible periodic cell](https://raw.githubusercontent.com/lgyEthan/v_ase/v0.5.2/docs/assets/github/readme_commensurate.gif)

[Commensurate rotation](https://v-ase.readthedocs.io/en/latest/commensurate.html#commensurate-same-lattice-rotation) ·
[Cells and supercells](https://v-ase.readthedocs.io/en/latest/cell-tools.html)

### Match different host and guest lattices

Load a second material, search possible common cells and compare the required
strain. Here, graphene and MoS₂ are matched as separate host and guest structures.

![Graphene and MoS2 host and guest lattices are searched for a common periodic cell](https://raw.githubusercontent.com/lgyEthan/v_ase/v0.5.2/docs/assets/github/readme_commensurate_host_guest.gif)

[Host/guest matching](https://v-ase.readthedocs.io/en/latest/commensurate.html)

### Explore interfacial registry

Scan lateral alignments or relax a whole selected fragment as one rigid body.
Registry maps compare geometric contact or bond-strain scores while preserving
the fragment's internal structure. Rigid relaxation checks positional-constraint
compatibility and includes Hookean forces in the gradient. Use **Finish** to keep the result or
**Cancel** to restore the starting structure.

![A selected layer translates rigidly over its host without deforming its internal structure](https://raw.githubusercontent.com/lgyEthan/v_ase/v0.5.2/docs/assets/github/readme_registry_relax.gif)

[Registry maps and rigid translation](https://v-ase.readthedocs.io/en/latest/registry.html)

## Atoms, bonds and coordination

### Give scientific groups their own appearance

Give substrate, surface and adsorbate atoms distinct labels. Set color, radius,
material and visibility for each group, and choose which label pairs form
bonds. The **Atoms** eye hides the spheres while keeping bonds and constraint
guides visible. On a trajectory, apply a selection change to one frame or to
compatible atom indices across frames.

![Substrate copper is separated into a label and styled independently of the surface oxide](https://raw.githubusercontent.com/lgyEthan/v_ase/v0.5.2/docs/assets/github/readme_cu5o4_view_appearance.gif)

[Atom appearance](https://v-ase.readthedocs.io/en/latest/appearance.html) ·
[Pair-specific bonds](https://v-ase.readthedocs.io/en/latest/bonds.html)

### Reveal coordination polyhedra

Open a CIF and enable **Style → Polyhedra → Show polyhedra**. Inspect the
suggested center–ligand pairs, distance cutoffs and coordination counts before
assigning a motif. Choose **Use bonded neighbors only** to restrict the ligand
set to the configured bonds. Set face and edge styles for each center group.

![Two groups of IrO2 coordination polyhedra receive independent colors and face opacity](https://raw.githubusercontent.com/lgyEthan/v_ase/v0.5.2/docs/assets/github/readme_polyhedra.gif)

[Coordination polyhedra](https://v-ase.readthedocs.io/en/latest/polyhedra.html)

## Trajectories and analysis

### Follow motion and map per-atom properties

Scrub or play a trajectory, color atoms by stored scalar data, and display force
or displacement vectors. Keep a shared colorscale across frames for comparison.
Atom radii can also follow a scalar such as charge or fractional existence.

![Trajectory playback combines a force-magnitude colorscale with force vectors](https://raw.githubusercontent.com/lgyEthan/v_ase/v0.5.2/docs/assets/github/readme_atom_colorscale.gif)

[Trajectories](https://v-ase.readthedocs.io/en/latest/trajectories.html) ·
[Colorscales](https://v-ase.readthedocs.io/en/latest/scalar-colors.html) ·
[Property-based radii](https://v-ase.readthedocs.io/en/latest/property-radius.html) ·
[Forces and displacement](https://v-ase.readthedocs.io/en/latest/vectors.html)

### Edit and match frames

Press **Home** or **End** to jump to the first or last frame. In **Edit
structure**, **⌘T / Ctrl+T** inserts a copy after the current frame. Add
**Shift** to put the copy at the end. Right-click the timeline to duplicate
or delete a frame. Undo restores a deleted frame and its saved data.

In **Edit structure**, click **Match atoms…** on the timeline, choose
**Edit → Match trajectory atom indices…** from the document menu, or search
for `permutation` or `atom order` in **Find tools**. Choose **Minimum image**
(default), **Cartesian distance**,
or **SOAP + translation** to reorder atom indices against frame 1. Coordinates
keep their stored values. Undo restores the previous order.

[Trajectory tools](https://v-ase.readthedocs.io/en/latest/data-input.html#trajectory-tools) ·
[Frame and label editing](https://v-ase.readthedocs.io/en/latest/trajectories.html#frame-identity-and-selection)

### Follow energies and fit a NEB path

**Overlays → Energy graph** plots saved energies, follows playback, and seeks
to a frame when you drag the marker. Click the graph or its Scene row to
choose colors, line styles, markers, and axis limits. Export the graph as PNG
or its data as CSV.

For a saved nudged elastic band (NEB), plot stored energy samples, an ASE
force-based fit, and tangents at the images. Verify atom correspondence and
periodic wrapping before interpreting a fitted barrier. Periodic paths and
force tangents use the same continuous image sequence.

[Energy graph and NEB fits](https://v-ase.readthedocs.io/en/latest/data-input.html#neb-fits-and-force-tangents)

### Measure distances, angles and torsions

Pick atoms in order to measure a distance, angle, or torsion. Drag to select
a group for editing. Click the ruler or open **Analyze → Measure** to read
the current cell lengths and angles without selecting atoms.

![Ordered atom picks reveal a distance, angle and torsion](https://raw.githubusercontent.com/lgyEthan/v_ase/v0.5.2/docs/assets/github/readme_measurement.gif)

[Selection and measurements](https://v-ase.readthedocs.io/en/latest/selection.html)

### Compare local structure with pair distributions

Plot bulk *g(r)* for a 3D periodic cell, neighbors per atom per ångström for a
periodic slab or wire, or a pair-distance probability density for a finite
structure. Select label pairs to compare local environments. Float a graph
over the structure or dock it below. Click it to set curve styles and axis
limits, then export the data as CSV or the plot as PNG.

![Total and label-resolved Cu-Zr radial distribution curves beside the atomic structure](https://raw.githubusercontent.com/lgyEthan/v_ase/v0.5.2/docs/assets/github/readme_rdf.png)

[Radial and pair distributions](https://v-ase.readthedocs.io/en/latest/rdf.html)

## Constraints and relaxation

### Control which directions atoms can move

Keep atoms fixed, restrict motion to a line or plane, or constrain selected
Cartesian or fractional directions. Visible guides make the allowed motion clear.

**FixedLine** restricts motion to a line. In this example a lithium atom moves
along the nanotube axis.

![FixedLine keeps selected atom motion on a visible guide line](https://raw.githubusercontent.com/lgyEthan/v_ase/v0.5.2/docs/assets/github/readme_fixedline.gif)

**FixedPlane** lets an adsorbate move parallel to the surface at a fixed
height. Select the guide to see the blocked normal.

![FixedPlane lets a lithium adsorbate move within a plane above copper](https://raw.githubusercontent.com/lgyEthan/v_ase/v0.5.2/docs/assets/github/readme_fixedplane.gif)

[Fixed atoms, lines, planes and fractional constraints](https://v-ase.readthedocs.io/en/latest/constraints.html)

### Add spring-like restraints

Use Hookean restraints between atoms or relative to a point or plane. The
spring guide shows the relationship as the structure changes.

![A Hookean restraint stretches as the selected atom is moved](https://raw.githubusercontent.com/lgyEthan/v_ase/v0.5.2/docs/assets/github/readme_hookean.gif)

[Hookean restraints](https://v-ase.readthedocs.io/en/latest/constraints.html#hookean)

### Relax and inspect the path

Remove close contacts with built-in repulsion, or optimize using a configured
ASE calculator. Play the relaxation trajectory, keep a chosen frame, or restore
the starting structure. The example shows repulsive overlap removal.

![A crowded atomic cluster separates during repulsive relaxation](https://raw.githubusercontent.com/lgyEthan/v_ase/v0.5.2/docs/assets/github/readme_relaxation.gif)

[Relaxation and calculators](https://v-ase.readthedocs.io/en/latest/relaxation.html)

## Work with an AI agent

Connect an MCP-capable agent to the open v_ase document to edit a structure or
prepare a figure. You can inspect the changes and continue by hand. Install the
Skill matching your v_ase version, then connect the MCP server.
[Skill and MCP setup](https://v-ase.readthedocs.io/en/latest/agent-setup.html)

![A user and an AI agent exchange requests and refine one shared live v_ase document](https://raw.githubusercontent.com/lgyEthan/v_ase/v0.5.2/docs/assets/github/readme_ai_collaboration.gif)

For example, turn a selected graphene site into a pyridinic N₃ vacancy and place
a Li atom above it. The resulting atoms remain editable in the GUI.

![An agent creates a pyridinic N3 vacancy in graphene and places a lithium atom above it](https://raw.githubusercontent.com/lgyEthan/v_ase/v0.5.2/docs/assets/github/readme_ai_edit.gif)

[MCP setup](https://v-ase.readthedocs.io/en/latest/ai-tools.html#install-and-connect-an-mcp-client) ·
[Shared-document workflow](https://v-ase.readthedocs.io/en/latest/ai-agents.html#share-one-document) ·
[ChatGPT connection](https://v-ase.readthedocs.io/en/latest/chatgpt-local.html)

## Render and export

Compose editable figures from generated structures. The six examples below
show three AuO₂ structures from CrystaLLM and three Li₄Fe₅CoO₁₂ structures from
ALM Edit. Download the examples to inspect the structure files and how each
figure was styled. [Model-output workflow](https://v-ase.readthedocs.io/en/latest/model-output-figures.html) ·
[Portable example](https://github.com/lgyEthan/v_ase/blob/v0.5.2/examples/model_output_figures/README.md)

![Materials-model outputs rendered in v_ase](https://raw.githubusercontent.com/lgyEthan/v_ase/v0.5.2/docs/assets/github/model_output_figures.png)

Choose flat 2D or shaded 3D, adjust materials and lighting, and set a camera,
output scale and resolution in **Render**. In flat 2D, **Outline width**
controls the strokes on both atoms and bond ribbons. Select a frame range to
export an animation.

![Standard, Metal and Rubber materials compared on identical copper clusters](https://raw.githubusercontent.com/lgyEthan/v_ase/v0.5.2/docs/assets/github/readme_materials.png)

Continue working in **Blender** with atom and bond geometry, water-surface
meshes, camera and Sun settings. The generated script configures materials
and smooth shading for atom spheres.
Use **OBJ/MTL** or **Rhino 3DM** for additional geometry formats. Export
ASE structure formats to reuse the coordinates and scientific data.

[Camera and image output](https://v-ase.readthedocs.io/en/latest/render-images.html) ·
[Movies and GIFs](https://v-ase.readthedocs.io/en/latest/export-video.html) ·
[Blender and geometry export](https://v-ase.readthedocs.io/en/latest/export-structures.html)

## Save and share

| You want to… | Use |
| --- | --- |
| Continue editing later | **Save** a `.vase` project. |
| Share an interactive view that opens in a browser | [Export HTML View](https://v-ase.readthedocs.io/en/latest/save-projects.html#html-view). |
| Share a browser view that can also reopen for editing | In **Project save settings**, enable **Include interactive rendered view** and save as HTML. |
| Publish a figure or animation | Export an image, movie or GIF from **Render**. |

Use **Include graph** to add the Energy graph and floating Distributions to
the HTML preview, poster, and browser view. In the offline viewer,
Distributions follow the trajectory. **Reset saved view** restores the camera,
plot bounds, and legend visibility.

Reopen an editable HTML project in v_ase to recover its saved views and plots.
Use a project to hand off an editable scene and keep the original calculation
files for energy and force analysis.

Open **Style → Visual presets** to export or import a JSON preset. Choose
**Apply to Open Tab…** to reuse the current style in another tab in the same
window.

[Saving projects](https://v-ase.readthedocs.io/en/latest/save-projects.html)

## Help and project information

[User guide](https://v-ase.readthedocs.io/en/latest/) ·
[Troubleshooting](https://v-ase.readthedocs.io/en/latest/troubleshooting.html) ·
[Report a problem](https://github.com/lgyEthan/v_ase/issues) ·
[What's new](https://v-ase.readthedocs.io/en/latest/whats-new.html)

[Scientific methods](https://v-ase.readthedocs.io/en/latest/scientific-validation.html) ·
[Contributing](https://v-ase.readthedocs.io/en/latest/development.html) ·
[Cite v_ase](https://github.com/lgyEthan/v_ase/blob/v0.5.2/CITATION.cff) · [AGPL-3.0-or-later](https://github.com/lgyEthan/v_ase/blob/v0.5.2/LICENSE) ·
[Third-party license](https://github.com/lgyEthan/v_ase/blob/v0.5.2/v_ase/static/vendor/THREE_LICENSE)
