Skip to content

Improve configuration of parameter-parameter dependencies #504

@schmoelder

Description

@schmoelder

The current configuration of parameter-parameter dependencies (e.g., in the Radial General Rate Model) is not ideal. For example, axial dispersion is set as follows:

model.root.input.model.unit_001.col_dispersion = 1e-6
model.root.input.model.unit_001.col_dispersion_dep = 'POWER_LAW'
model.root.input.model.unit_001.col_dispersion_dep_base = 1
model.root.input.model.unit_001.col_dispersion_dep_exponent = 1
model.root.input.model.unit_001.col_dispersion_dep_abs = 1

Note that the current approach lacks modularity. Dependency parameters are not hierarchically grouped; they are only distinguished by name prefixes. This makes it difficult to swap or modify dependencies.

To enhance modularity, we can restructure the configuration hierarchically:

model.root.input.model.unit_001.col_dispersion = 1e-6
model.root.input.model.unit_001.col_dispersion_dep.dependency_type = 'POWER_LAW'
model.root.input.model.unit_001.col_dispersion_dep.base = 1
model.root.input.model.unit_001.col_dispersion_dep.exponent = 1
model.root.input.model.unit_001.col_dispersion_dep.abs = 1

For more information refer to the relevant section of our documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions