Analysis functions for common FLASH problems.
Given a shock with radius r over time t, returns the parameters of best fit to the following power-law:
Parameters : | t : iterable
r : iterable
kwargs : optional
|
---|---|
Returns : | r_o : float
alpha : float
|
Given radius (r) and data (v) arrays, finds the outer most shock. Currently this assumes that the radius is montonically increasing.
Parameters : | r : ndarray
v : ndarray
threshold : float, optional
min_threshold : float, optional
|
---|---|
Returns : | shock_r : r.dtype
shock_v : v.dtype
shock_i : int
|