biosspheres.miscella.mathfunctions#
Functions
|
|
|
Constant function. |
|
Evaluating in two DIFFERENT points. |
|
Linear function. |
|
Plane wave function, input in three dimensions. |
|
Returns 1. |
- biosspheres.miscella.mathfunctions.cte(c: float)[source]#
Constant function.
- Parameters:
c (float) – constant parameter.
- Returns:
constant_function
- Return type:
Callable of one parameter
- biosspheres.miscella.mathfunctions.laplace_almost_fundamental_function(r_1: ndarray, r_2: ndarray, p_1: ndarray, p_2: ndarray) float[source]#
Evaluating in two DIFFERENT points.
- Parameters:
r_1
r_2
p_1
p_2
- Returns:
value
- Return type:
float
- biosspheres.miscella.mathfunctions.linear_function(coefficients: ndarray)[source]#
Linear function.
Notes
All arrays that represent vectors are in the cartesian coordinate system.
- Parameters:
coefficients (np.ndarray) – of floats, parameters of the linear function.
- Returns:
linear
- Return type:
Callable of one parameter
- biosspheres.miscella.mathfunctions.plane_wave(a: float, k: ndarray, r: ndarray, p: ndarray) complex[source]#
Plane wave function, input in three dimensions.
Notes
All arrays that represent vectors are in the cartesian coordinate system.
- Parameters:
a (float) – amplitude.
k (np.ndarray) – wave vector.
r (np.ndarray) – variable.
p (np.ndarray)
- Returns:
result of the plane wave function given the parameters and the vector variable.
- Return type:
complex
- biosspheres.miscella.mathfunctions.point_source(r: ndarray, p: ndarray, sigma_e: float) float[source]#
Returns 1. / (4 * pi * sigma_e * ||r - p||_2), where
Notes
All arrays that represent vectors are in the cartesian coordinate system.
- Parameters:
r (numpy array) – of length 3 in the cartesian coordinate system. Position vector to be evaluated.
p (numpy array) – of length 3 in the cartesian coordinate system. Position vector of the point source.
sigma_e (float) – > 0.
- Return type:
float