HydPy-Test-Discontinuous (test model for discontinuous ODEs)¶
test_discontinous
serves to test numerical integration strategies only. It can be
seen from two perspectives. On the one hand, it implements a simple discontinuous
equation, which causes trouble for numerical integration algorithms. On the other
hand, it describes simple storage with a constant loss over time as long as some
storage content is left. The loss rate Q
and the initial storage content S
can be
set as required.
- class hydpy.models.test_discontinous.Model[source]¶
Bases:
ELSModel
HydPy-Test-Discontinuous (test model for discontinuous ODEs).
- The following methods define the relevant components of a system of ODE equations (e.g. direct runoff):
Calc_Q_V2
Calculate the actual storage loss.
- The following methods define the complete equations of an ODE system (e.g. change in storage of fast water due to effective precipitation and direct runoff):
Calc_S_V1
Calculate the actual storage content.
- REUSABLE_METHODS: ClassVar[tuple[type[ReusableMethod], ...]] = ()¶
- class hydpy.models.test_discontinous.ControlParameters(master: Parameters, cls_fastaccess: type[FastAccessParameter] | None = None, cymodel: CyModelProtocol | None = None)¶
Bases:
SubParameters
Control parameters of model test_discontinous.
- The following classes are selected:
K()
Storage coefficient [1/T].
- class hydpy.models.test_discontinous.FluxSequences(master: Sequences, cls_fastaccess: type[TypeFastAccess_co] | None = None, cymodel: CyModelProtocol | None = None)¶
Bases:
FluxSequences
Flux sequences of model test_discontinous.
- The following classes are selected:
Q()
Storage loss [mm/T]
- class hydpy.models.test_discontinous.SolverParameters(master: Parameters, cls_fastaccess: type[FastAccessParameter] | None = None, cymodel: CyModelProtocol | None = None)¶
Bases:
SubParameters
Solver parameters of model test_discontinous.
- The following classes are selected:
AbsErrorMax()
Absolute numerical error tolerance [mm/T].RelErrorMax()
Relative numerical error tolerance [1/T].RelDTMin()
Smallest relative integration time step size allowed [-].RelDTMax()
Largest relative integration time step size allowed [-].
- class hydpy.models.test_discontinous.StateSequences(master: Sequences, cls_fastaccess: type[TypeFastAccess_co] | None = None, cymodel: CyModelProtocol | None = None)¶
Bases:
StateSequences
State sequences of model test_discontinous.
- The following classes are selected:
S()
Storage content [mm].