run_code
Run Python code in the active Ansys CFX session with access to pre, solver, and post helpers, returning stdout, stderr, and any return value.
Instructions
Execute Python code against the active PyCFX session namespace. The code runs with pre, solver, post, session, cfxpre, cfxsolver, and cfxpost helpers refreshed from the current CFX sessions. Returns stdout, stderr, and any __return__ value. Prefer cfx_workflow or cfx_model_context for routed actions and read-only queries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Python source code submitted for validation, grounding, or execution. |