result_integrate
Integrate expressions over COMSOL domains, boundaries, or edges with dimension-aware measures and units, then store results in a table for comparison and reporting.
Instructions
Integrate expressions over domains, boundaries or edges.
Dimension-aware COMSOL types (verified): 3D -> IntVolume (domains) / IntSurface (boundaries) / IntLine (edges); 2D -> IntSurface (domains) / IntLine (boundaries). Physical unit includes the integration measure, e.g. "m^3K" for T over a 3D volume or "m^2K" over a 2D domain.
Args: expressions: expressions to integrate, e.g. ["T"]. kind: "volume"/"domain" (domains), "surface"/"boundary" (boundaries) or "line"/"edge" (edges; 2D: boundaries). dataset: dataset tag (None = default solution dataset). entities: entity numbers of the resolved dimension (3=domains, 2=boundaries, 1=edges in 3D; 2D: 2=domains, 1=boundaries); default = all entities of that dimension. named_selection: named selection instead of entities. solnum: 1-based solution number(s) (None = all). table: table tag to store the result in. model: model name/tag (None = current model).
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": {
"expressions": "<expressions>"
},
"name": "result_integrate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | volume | |
| model | No | ||
| table | No | ||
| solnum | No | ||
| dataset | No | ||
| entities | No | ||
| expressions | Yes | ||
| named_selection | No |