InputHandler
- class osaft.core.helper.InputHandler[source]
Bases:
objectHandles 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 (
Union[Number,Sequence]) – radial coordinatetheta (
Union[Number,Sequence]) – tangential coordinatet (
Union[Number,Sequence]) – timeR_0 (
Union[Number,Sequence]) – radius of the sphereinside_sphere (
bool) – if True/False tests if r is inside/outside