result_eval_line
Evaluate COMSOL line results by sampling expressions along a CutLine dataset or computing integral, average, max, min, standard deviation, or length over line entities and named selections.
Instructions
Evaluate on a line: pointwise along a CutLine dataset or line integrals.
dataset given (e.g. a CutLine3D dataset): Interp at all line points, returns coordinates + values + min/max/mean.
entities/named_selection given: line entities (dimension 1) evaluated with the
kindoperation: "integral" (IntLine), "average" (AvLine), "max"/"min", "stddev", "measure".
Args: expressions: expressions, e.g. ["T"]. dataset: CutLine3D dataset tag for pointwise sampling along the line. entities: line entity numbers (None = all line entities with kind op). named_selection: named line selection. kind: "integral" (default for entities is average), "average", "max", "min", "stddev", "measure". solnum: 1-based solution number(s) (None = all). max_points: cap on returned points for dataset sampling. 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_eval_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | average | |
| model | No | ||
| solnum | No | ||
| dataset | No | ||
| entities | No | ||
| max_points | No | ||
| expressions | Yes | ||
| named_selection | No |