session_set_nodal_values
Assign nodal values (scalar or vector) to selected nodes or a whole model part in a live Kratos simulation. Control DOF fixity, effective on next advance, without modifying disk files.
Instructions
Assign a nodal solution-step value (a number, or [x, y, z] for vector variables such as DISPLACEMENT or VELOCITY) to node_ids, or to every node of model_part when node_ids is omitted. fix=True/False fixes/frees the DOF (a list of 3 booleans sets each vector component); omit it to leave fixity unchanged. Takes effect from the next session_advance, so you can add a support, pin a temperature or perturb the state mid-run. Writes into the live model only: files on disk are unchanged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | No | ||
| value | Yes | ||
| node_ids | No | ||
| variable | Yes | ||
| model_part | No | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||