Add a custom variable to an existing model
Append a new custom variable to a model’s config (append-only).
Validates the expression, serializes it to JSON, and stores it. Custom variables cannot be edited or deleted after creation because evaluated values are persisted in simulation result files.
Path Parameters
Body
Response
Successful Response
Model with config loaded from database.
The name of the model.
The unique identifier for the model.
The ID of the user who created the model.
The ID of the organization this model belongs to.
Timestamp of when the model was created.
Timestamp of when the model was last updated.
Model configuration stored as JSON.
Check if this is a custom model (has compressed model data).
An optional description for the model.
PyBaMM version used for this model. If not provided, will be read from pybamm.version.
Model chemistry kind: 'lithium_ion' (default — assumes pybamm lithium-ion conventions), 'lithium_sulfur', 'ecm', or 'generic' (no chemistry-specific enrichment).
lithium_ion, lithium_sulfur, ecm, generic Email of the user who created the model.