Initial Value Problem Interface (i_initial_value_problem)¶
- class pypint.problems.i_initial_value_problem.IInitialValueProblem(*args, **kwargs)[source]¶
Bases: pypint.problems.i_problem.IProblem, pypint.problems.transient_problem_mixin.TransientProblemMixin
Basic interface for initial value problems.
Parameters: initial_value (numpy.ndarray) – Initial value of \(u(t_0,\phi(t_0))\) with \(t_0\) being the time interval start. - initial_value[source]¶
Accessor for the initial value.
Parameters: initial_value (numpy.ndarray) – Initial value of the solution.
Returns: initial_value – Initial value of the solution.
Return type: numpy.ndarray
Raises: ValueError –
- if initial_value is not a numpy.ndarray with shape of IProblem.dim
- if initial_value‘s size is not equal the number of spacial IProblem.dim