Skip to navigation

Run a calculation synchronously

View as MarkdownOpen in Claude

Submit a calculation and block until it completes, then return the result. Use /submit instead to receive a request ID immediately without holding the connection open.

Request

This endpoint expects an object.
configobjectRequired
Configuration settings that define how to launch VASP.
atomsobject or nullOptional

Atomic structure to evaluate. Supply either this field or a POSCAR entry in files, but not both.

infostring or nullOptional
Optional metadata string echoed back on the reply.
filesmap from strings to strings or objectsOptional

Input files to pass to the service. Keys are file names; values are either the file contents as plaintext or a reference to a previously uploaded file. An INCAR entry is required.

Response

The calculation finished. The status code is 200 whether or not the calculation itself succeeded; inspect success and failure_info in the body.

atomsobject
The output atomic structure, which may differ from the input after a relaxation.
resultsobject or null
Results of the computation, or null if it failed.
configobject or null
The configuration used for the calculation.
request_idstring or nullOptional
Identifier used to correlate the reply with output files.
infostring or nullOptional
The metadata string passed with the request.
successbooleanOptionalDefaults to true
Whether the computation completed successfully.
failure_infoobject or nullOptional
Failure details if the computation did not succeed.
memoryobject or nullOptional
Memory usage statistics during the computation.
runtimedouble or nullOptional
Runtime of the computation in seconds, excluding queue time.

Errors

422
Unprocessable Entity Error
500
Internal Server Error