pymloc.model.dynamical_system.boundary_value_problem

Classes

BoundaryValueProblem(time_interval, …)

Subclass for the case of exactly 2 boundary values.

BoundaryValues(boundary_0, boundary_f, …)

MultipleBoundaryValues subclass for the case of exactly two boundary values and \(q=2\).

MultipleBoundaryValueProblem(time_intervals, …)

Baseclass for boundary value problems with multiple boundary values, possibly more than 2.

MultipleBoundaryValues(…[, z_gamma])

Base class for all boundary values of a bounday value problem of the form MultipleBoundaryValueProblem The boundary conditions have the general form

class pymloc.model.dynamical_system.boundary_value_problem.BoundaryValueProblem(time_interval, dynamical_system, boundary_values)

Bases: pymloc.model.dynamical_system.boundary_value_problem.MultipleBoundaryValueProblem

Subclass 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.MultipleBoundaryValues

MultipleBoundaryValues 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.VariableSolvable

Baseclass for boundary value problems with multiple boundary values, possibly more than 2.

Parameters
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

pymloc.solvers.base_solver.TimeSolution

property time_interval

Time interval object.

class pymloc.model.dynamical_system.boundary_value_problem.MultipleBoundaryValues(boundary_coefficients, inhomogeneity, z_gamma=None)

Bases: object

Base class for all boundary values of a bounday value problem of the form MultipleBoundaryValueProblem The 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