result_mass_properties
Computes volume and mass for selected COMSOL domains and solutions, with optional named selections, custom expressions, and table storage.
Instructions
Volume, mass (and center-of-mass unit) of selected domains.
Uses the COMSOL MassProperties feature (verified working with the
default three-expression set ["1", "comp1.spatial.rho", "1/1[m^2]"]).
Returned rows are [volume, mass]; units ["m^3", "kg"]. The third unit
("m") belongs to the (optional) center-of-mass expression.
Args: dataset: dataset tag (None = default solution dataset). entities: domain numbers (default = all domains). named_selection: named domain selection instead of entities. expressions: optional explicit 3 expressions (volume, mass, arm); default is COMSOL's density-based set. Must have length 3. 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
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "result_mass_properties"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| table | No | ||
| solnum | No | ||
| dataset | No | ||
| entities | No | ||
| expressions | No | ||
| named_selection | No |