phys_add_feature
Create COMSOL physics features such as boundary conditions and domain settings, with options for parent sub-features, selections, properties, and interface-specific types.
Instructions
Create a physics feature (boundary condition, domain setting, ...).
feature_type must be a COMSOL type valid for the interface (verified
against the catalog and, ultimately, COMSOL). Use parent to create a
sub-feature inside an existing feature (e.g. Plasticity under the Linear
Elastic Model).
Args: interface: interface tag/label/type (e.g. "ht"). feature_type: COMSOL feature type, e.g. "TemperatureBoundary", "HeatFluxBoundary", "HeatSource", "Fixed", "InletBoundary". tag: new feature tag (None = auto "prefixN"). label: optional display label. entity_dim: entity dimension (3=domains, 2=boundaries, 1=edges, 0=points in 3D; None = domain dimension of the geometry). selection: entity list (e.g. [1,2,3]), "all", or a named-selection tag. named_selection: named selection tag to assign instead of entities. all_entities: select all entities of the feature's dimension. properties: property dict, e.g. {"T0": "400[K]"}. parent: parent feature tag (or nested path "lemm1/pl1") for sub-features. 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": {
"interface": "<interface>",
"feature_type": "<feature_type>"
},
"name": "phys_add_feature"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| label | No | ||
| model | No | ||
| parent | No | ||
| interface | Yes | ||
| selection | No | ||
| entity_dim | No | ||
| properties | No | ||
| all_entities | No | ||
| feature_type | Yes | ||
| named_selection | No |