InputHandler#
- class osaft.core.helper.InputHandler[source]#
Bases:
object
Handles inputs for velocity field methods
Tests if inputs r, theta, t passed to methods that compute the velocity field are valid inputs and converts the inputs to numpy.ndarray.
Public Methods:
handle_input
(r, theta, t, R_0, inside_sphere)Tests if inputs r, theta, t passed to methods that compute the velocity field are valid inputs and converts the inputs to numpy.ndarray.
- classmethod handle_input(r, theta, t, R_0, inside_sphere)[source]#
Tests if inputs r, theta, t passed to methods that compute the velocity field are valid inputs and converts the inputs to numpy.ndarray.
- Parameters:
r (Number | Sequence) – radial coordinate
theta (Number | Sequence) – tangential coordinate
t (Number | Sequence) – time
R_0 (Number | Sequence) – radius of the sphere
inside_sphere (bool) – if True/False tests if r is inside/outside