conatus.expert.CollocationMesh

class conatus.expert.CollocationMesh(ntst, ncol, tmesh)[source]

Bases: object

Mesh in τ = t/T ∈ [0, 1]: ntst intervals, ncol Gauss collocation points each.

Parameters:
  • ntst (int)

  • ncol (int)

  • tmesh (ndarray)

ntst: int
ncol: int
tmesh: ndarray
classmethod uniform(ntst, ncol)[source]

Uniform mesh of ntst intervals with ncol collocation points each.

Parameters:
  • ntst (int)

  • ncol (int)

Return type:

CollocationMesh

property h: ndarray

Interval lengths in τ.

property npts: int

Number of nodes, ntst·ncol + 1 (the last one repeats τ = 1).

explain()[source]

Mesh of the orbit collocation.

Return type:

str

times()[source]

τ of every node (ntst·ncol + 1 values).

Return type:

ndarray