param_sweep_setup
Configure a parametric sweep for a COMSOL model parameter by providing parameter name and value list, then attach it to a study for batch simulation.
Instructions
Set up a parametric sweep for a parameter.
Args: parameter_name: Name of the parameter to sweep values: List of parameter values to sweep through model_name: Model name (default: current model) study_name: Study to attach sweep to (default: first study)
Returns: Sweep configuration confirmation, or error message
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"parameter_name": "<parameter_name>",
"values": "<values>"
},
"name": "param_sweep_setup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parameter_name | Yes | ||
| values | Yes | ||
| model_name | No | ||
| study_name | No |