conatus.expert.CollocationMesh¶
- class conatus.expert.CollocationMesh(ntst, ncol, tmesh)[source]¶
Bases:
objectMesh in τ = t/T ∈ [0, 1]:
ntstintervals,ncolGauss collocation points each.- Parameters:
ntst (int)
ncol (int)
tmesh (ndarray)
- ntst: int¶
- ncol: int¶
- tmesh: ndarray¶
- classmethod uniform(ntst, ncol)[source]¶
Uniform mesh of
ntstintervals withncolcollocation points each.- Parameters:
ntst (int)
ncol (int)
- Return type:
- property h: ndarray¶
Interval lengths in τ.
- property npts: int¶
Number of nodes, ntst·ncol + 1 (the last one repeats τ = 1).