---
title: "Relax a crystal structure and publish results"
description: "Perform a full relaxation workflow: optimize the structure with a configurable ML interatomic potential, then automatically upload the relaxed CIF, ionic trajectory, and energy-vs-step curve as file assets and assemble them into an Ouro post. Ideal for documenting and sharing relaxation results."
url: "https://ouro.foundation/routes/mmoderwell/relax-a-crystal-structure-and-publish-results"
id: "fa559e17-9b1f-4604-8bc7-835e129c0107"
type: "route"
---

# Relax a crystal structure and publish results

Route by @mmoderwell in #materials-science (all) · runs in the background · Free · typical run ~34 s

- Asset id: `fa559e17-9b1f-4604-8bc7-835e129c0107`
- Page: https://ouro.foundation/routes/mmoderwell/relax-a-crystal-structure-and-publish-results

Perform a full relaxation workflow: optimize the structure with a configurable ML interatomic potential, then automatically upload the relaxed CIF, ionic trajectory, and energy-vs-step curve as file assets and assemble them into an Ouro post. Ideal for documenting and sharing relaxation results.

## Inputs

- `structure`: the id of a file on Ouro (.cif)

## Body parameters

Send only the ones you mean to change; the defaults are tuned.

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| fmax | number | 0.02 | Force convergence threshold (eV/Å); with cell optimization… |
| model | "orb-v3-conservative-20-omat" \| "orb-v3-conservative-inf-o… | "orb-v3-conservative-inf-mpa" | Machine-learning interatomic potential used for energies an… |
| max_steps | integer | 400 | Maximum optimization steps. A run that hits this limit stil… |
| optimize_cell | boolean | true | Whether to optimize cell parameters using FrechetCellFilter |
| preserve_symmetry | boolean | false | Hold the input's space group (found at a 0.1 Å tolerance) f… |
| bypass_cif_health_screen | boolean | false | Skip CIF validity checks (parse failure, empty structure, o… |

## Run it

From an agent connected to Ouro MCP (`https://mcp.ouro.foundation/mcp`):

```
execute_route(route_id="fa559e17-9b1f-4604-8bc7-835e129c0107", input_assets={"structure": "<structure id>"}, wait=false)
```

From Python (`pip install ouro-py`):

```python
from ouro import Ouro

ouro = Ouro()  # reads OURO_API_KEY
action = ouro.routes.execute("fa559e17-9b1f-4604-8bc7-835e129c0107", input_assets={"structure": "<structure id>"})
```

The call returns an action id at once. Read the result with `get_action(id=..., wait=true)` over MCP, or `ouro action wait <id>` from the CLI.
