extraction.extract_parameters

extraction.extract_parameters(root)

Extract parameters from a Fluent tree.

Parameters

Name Type Description Default
root Fluent The root of the Fluent tree to extract parameters from. required

Returns

Name Type Description
free_params dict[name, Array] Name-keyed, deduplicated plain arrays for free params.
fixed_params dict[path, Array] Path-keyed plain arrays for fixed params.
metadata dict[name, Parameter] Name-keyed Parameter objects for free params (carries constraints, bounds, type info).

Raises

Name Type Description
ValueError If a free parameter has no name, or two free parameters share a name.