IVP.__init__()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 4
Bugs 0 Features 0
Metric Value
cc 1
c 4
b 0
f 0
dl 0
loc 3
rs 10
1
"""
2
Classes for modeling initial value problems.
3
4
@author : David R. Pugh
5
6
"""
7
from . bvp import TwoPointBVP
8
9
10
class IVP(TwoPointBVP):
11
    r"""
12
    Class for modeling Initial Value Problems (IVPs).
13
14
    Attributes
15
    ----------
16
    bcs_lower : function
17
        Function that calculates the difference between the lower boundary
18
        conditions and the current values of the model dependent variables.
19
    number_bcs_lower : int
20
        The number of lower boundary conditions (BCS).
21
    number_odes : int
22
        The number of Ordinary Differential Equations (ODEs) in the system.
23
    params : dict(str: float)
24
        A dictionary of model parameters.
25
    rhs : function
26
        Function which calculates the value of the right-hand side of a
27
        system of Ordinary Differential Equations (ODEs).
28
29
    """
30
31
    def __init__(self, bcs_lower, number_bcs_lower, number_odes, params, rhs):
32
        super(IVP, self).__init__(bcs_lower, None, number_bcs_lower,
33
                                  number_odes, params, rhs)
34