fem_add_constraint
Add structural or thermal constraints to an AnkusDrive FEM analysis using face/edge tags, keeping references valid after geometry edits.
Instructions
Add a constraint by face/edge tag (Slice 1).
kind: structural: 'fixed' | 'force' | 'pressure' | 'displacement' thermal: 'temperature' | 'heatflux' | 'initial_temperature' refs: list of {handle, tag} dicts; 'tag' may be a face tag (f_...) or edge tag (e_...). Resolved against the live shape so refs survive unrelated geometry edits.
For 'force': force (N), optional direction {handle, edge|tag}. For 'pressure': pressure (MPa). For 'displacement': x/y/z (mm) or x_free/y_free/z_free. For 'temperature' / 'initial_temperature': temperature (°C / K). For 'heatflux': flux_type ('DFlux'|'Convection'|'Radiation'), and DFlux: flux (W/m²); Convection: ambient_temp (°C) + film_coef (W/m²K); Radiation: ambient_temp + emissivity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| z | No | ||
| flux | No | ||
| kind | Yes | ||
| name | No | ||
| refs | Yes | ||
| force | No | ||
| x_free | No | ||
| y_free | No | ||
| z_free | No | ||
| analysis | Yes | ||
| pressure | No | ||
| reversed | No | ||
| direction | No | ||
| film_coef | No | ||
| flux_type | No | ||
| emissivity | No | ||
| temperature | No | ||
| ambient_temp | No |