mdpa_add_entities
Add elements, conditions, or geometries of one type to a Kratos MDPA file, with optional sub-model part assignment for new entities and nodes.
Instructions
Add elements, conditions or geometries of one type. kind: 'element', 'condition' or 'geometry'. entity_type is the Kratos name (e.g. 'SmallDisplacementElement2D4N', 'LineLoadCondition2D2N', 'Line2D2'); its 2D3N/3D8N-style suffix fixes the node count. Each item of 'entities' is {"nodes": [ids...], "id": optional, "property_id": optional (default 1, not for geometries)}. With sub_model_part the new entities and their nodes join that part (and its ancestors).
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": {
"path": "<path>",
"kind": "<kind>",
"entity_type": "<entity_type>",
"entities": "<entities>"
},
"name": "mdpa_add_entities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| path | Yes | ||
| output | No | ||
| entities | Yes | ||
| overwrite | No | ||
| entity_type | Yes | ||
| sub_model_part | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||