pymloc.model.dynamical_system.boundary_value_problem¶
Classes
|
Subclass for the case of exactly 2 boundary values. |
|
MultipleBoundaryValues subclass for the case of exactly two boundary values and \(q=2\). |
|
Baseclass for boundary value problems with multiple boundary values, possibly more than 2. |
|
Base class for all boundary values of a bounday value problem of the form |
-
class
pymloc.model.dynamical_system.boundary_value_problem.BoundaryValueProblem(time_interval, dynamical_system, boundary_values)¶ Bases:
pymloc.model.dynamical_system.boundary_value_problem.MultipleBoundaryValueProblemSubclass for the case of exactly 2 boundary values.
- Parameters
boundary_values (pymloc.model.dynamical_system.boundary_value_problem.BoundaryValues) –
-
property
boundary_values¶ The corresponding object storing the boundary condition
-
class
pymloc.model.dynamical_system.boundary_value_problem.BoundaryValues(boundary_0, boundary_f, inhomogeneity, z_gamma=None)¶ Bases:
pymloc.model.dynamical_system.boundary_value_problem.MultipleBoundaryValuesMultipleBoundaryValues subclass for the case of exactly two boundary values and \(q=2\).
- Parameters
boundary_0 (boundary coefficient at \(t=t_0\)) –
boundary_f (boundary coefficient at \(t=t_f\)) –
inhomogeneity (numpy.ndarray) –
z_gamma –
-
class
pymloc.model.dynamical_system.boundary_value_problem.MultipleBoundaryValueProblem(time_intervals, dynamical_system, boundary_values)¶ Bases:
pymloc.model.solvable.VariableSolvableBaseclass for boundary value problems with multiple boundary values, possibly more than 2.
- Parameters
time_intervals (Tuple[pymloc.model.variables.time_function.Time, ..]) –
boundary_values (pymloc.model.dynamical_system.boundary_value_problem.MultipleBoundaryValues) –
-
property
boundary_values¶ The corresponding object storing the boundary condition
-
property
dynamical_system¶ The corresponding dynamical system of the boundary value problem.
-
property
final_time¶ final time of the boundary value problem
-
property
initial_time¶ initial time of the boundary value problem
-
property
nodes¶
-
solve(*args, **kwargs)¶ - Return type
-
property
time_interval¶ Time interval object.
-
class
pymloc.model.dynamical_system.boundary_value_problem.MultipleBoundaryValues(boundary_coefficients, inhomogeneity, z_gamma=None)¶ Bases:
objectBase class for all boundary values of a bounday value problem of the form
MultipleBoundaryValueProblemThe boundary conditions have the general form\[\sum_{i=0}^{q}{\Gamma_{i}x(t_{i})}=\gamma.\]- Parameters
boundary_coefficients (Boundary coefficients for every corresponding boundary node) –
inhomogeneity (righthandside of the boundary condition) –
z_gamma (Selector matrix of the boundary condition) –
-
property
boundary_values¶
-
property
inhomogeneity¶
-
property
n_inhom¶
-
property
nnodes¶
-
residual(node_values)¶ Computes the residual of the boundary values by inserting the current values at the nodes
- Parameters
node_values (numpy.ndarray) –
- Return type
numpy.ndarray
-
set_z_gamma(rank, n)¶ - Parameters
rank (int) –
n (int) –
- Return type
None
-
property
z_gamma¶