SystemModel#
A SystemModel freezes the model into the operator slots of one balance law:
SystemModel.from_model(model) derives it, the solvers read the slots and never inspect the model.
slot |
role |
|---|---|
|
explicit |
|
explicit, well-balanced with the nonconservative term |
|
explicit, path-conservative |
|
implicit under IMEX, else part of the explicit step |
|
always explicit |
|
implicit under IMEX, else part of the explicit step |
|
always explicit |
|
wave speeds, |
|
Spatial derivatives the operators need are aux variables, filled by the solver with least-squares gradients.
you set |
how |
|---|---|
initial state |
|
aux initial state |
|
parameter values |
|
pressure split (Chorin) |
|
sm.describe() renders the slots.
Tutorial: Model and SystemModel.
API: zoomy_core.systemmodel.