materials_set_property
Add or update one Materials.json entry by model part name, creating the file if needed. Merge variables/tables or replace the entry without rewriting the whole file.
Instructions
Add or update ONE entry of a Materials.json (created if the file does not exist), keyed by model_part_name (e.g. 'Structure.domain'). New entries get the next free properties_id unless given. 'preset' (see list_material_presets) fills the constitutive law and default variables; 'constitutive_law' and 'variables' then override. On an existing entry, variables/tables are merged into the current ones; replace=true rebuilds the entry from scratch. This is the incremental counterpart of create_materials, which rewrites the whole file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preset | No | ||
| tables | No | ||
| replace | No | ||
| variables | No | ||
| properties_id | No | ||
| materials_file | Yes | ||
| model_part_name | Yes | ||
| constitutive_law | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||