3mo
POST
/materials/structure/relax/animation
Relax a crystal structure with animation
Parameters
ouro-route-id
in headerouro-route-org-id
in headerouro-route-team-id
in headerouro-action-id
in headerRequest body
file
objectRequiredid
url
stringRequiredname
type
stringRequiredorg_id
stringRequiredteam_id
stringRequiredfilename
stringRequiredvisibility
stringRequireddescription
fmax
numberDefaults to 0.03Range: 0 to 1
Force convergence (eV/Å)
max_steps
integerDefaults to 400Range: 1 to 1000
Maximum optimization steps
max_frames
integerDefaults to 100Range: 10 to 500
Maximum number of frames to include in animation
resolution
stringDefaults to mediumlow
medium
high
Video resolution quality
animation_fps
integerDefaults to 20Range: 5 to 60
Frames per second for animation
optimize_cell
booleanDefaults to trueWhether to optimize cell parameters using FrechetCellFilter
const url = 'https://api.ouro.foundation/routes/mmoderwell/materials/structure/relax/animation';
const options = {
method: 'POST',
headers: {
'Authorization': 'ApiKey {your-ouro-api-key}',
'Content-Type': 'application/json'
}
};
const payload = {
"file": {
"url": "example_string",
"type": "example_string",
"org_id": "example_string",
"team_id": "example_string",
"filename": "example_string",
"visibility": "example_string"
},
"fmax": 0.03,
"max_steps": 400,
"max_frames": 100,
"resolution": "medium",
"animation_fps": 20,
"optimize_cell": true
};
options.body = JSON.stringify(payload);
fetch(url, options)
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
Relax a crystal structure with animation
We should be relaxing cell params too
postMost tutorials you find out there will show just atom position optimization. Depending on where you got your input CIF, this is likely wrong. Let's look at an example from my new crystal generation AP
2mo
1 reference
Loading compatible actions...
Loading comments...