orbithunter.ShiftReflectionOrbitKS.dimension_based_discretization

classmethod ShiftReflectionOrbitKS.dimension_based_discretization(dimensions, **kwargs)

Return discretization size according to orbithunter conventions for the KSe.

Parameters
dimensionstuple

tuple containing (T, L) as first two entries of tuple (i.e. self.parameters or self.dimensions)

kwargs :
resolutionstr

Takes values ‘coarse’, ‘normal’, ‘fine’, ‘power’. These options return the according discretization sizes as described below.

discretizationtuple of int or None

If one wants to force or specify a particular dimension’s discretization, it can be provided as, for example, discretization=(N, None).

Returns
discretizationtuple of ints

The new spatiotemporal field discretization; number of time points (rows) and number of space points (columns)

Notes

This function should only ever be called by resize, the returned values can always be accessed by the appropriate attributes of the rediscretized orbit.