Skip to content

Add polymorphic InternalBoundaryConditionModel hierarchy and dynamic solver integration - #2451

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_977177491
Sep 19, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
test_977177491

Conversation

@copybara-service

Copy link
Copy Markdown

Add polymorphic InternalBoundaryConditionModel hierarchy and dynamic solver integration

Refactor internal boundary conditions in TORAX to support model-based IBCs:

  • Introduce InternalBoundaryConditionModel base class with PrescribedIBCModel implementation.
  • Break internal boundary conditions into modular files under _src/internal_boundary_conditions/.
  • Introduce NoIBCModel as the default model when no IBC is configured.
  • Update Pydantic config with PrescribedIBC (model_name: prescribed) and NoIBC (model_name: no_ibc).
  • Wire internal_boundary_condition_model into Models and evaluate dynamically in calc_coeffs.

@copybara-service
copybara-service Bot force-pushed the test_977177491 branch 2 times, most recently from d1a1e0e to 8e1e112 Compare September 11, 2026 16:42
@copybara-service
copybara-service Bot force-pushed the test_977177491 branch 2 times, most recently from 8361502 to 4afd753 Compare September 19, 2026 18:35
…solver integration

Refactor internal boundary conditions in TORAX to support model-based IBCs:
- Introduce InternalBoundaryConditionModel base class with PrescribedIBCModel implementation.
- Break internal boundary conditions into modular files under _src/internal_boundary_conditions/.
- Introduce NoIBCModel as the default model when no IBC is configured.
- Update Pydantic config with PrescribedIBC (model_name: prescribed) and NoIBC (model_name: no_ibc).
- Wire internal_boundary_condition_model into Models and evaluate dynamically in calc_coeffs.

PiperOrigin-RevId: 984481391
@copybara-service
copybara-service Bot merged commit 6898dfa into main Sep 19, 2026
3 checks passed
@copybara-service
copybara-service Bot deleted the test_977177491 branch September 19, 2026 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant