biosspheres.laplace.drawing#

Functions

biosspheres.laplace.drawing.draw_cut_representation_formula_n_sphere(cut: int, center: ndarray, horizontal: float, vertical: float, inter_horizontal: int, inter_vertical: int, coefficients: ndarray, radii: ndarray, positions: list[ndarray], big_l: int, exterior: Callable[[ndarray], float]) → ndarray[source]#
Parameters:
  • cut (int) – 1, 2 or 3. Indicates if the drawing is a parallel cut of the plane: xy if = 1, xz if = 2, yz = 3 if other.

  • center (np.ndarray) – array of floats of length 2. Coordinates of the center of the drawing.

  • horizontal (float) – horizontal length of the rectangle that is going to be drawn.

  • vertical (float) – vertical length of the rectangle that is going to be drawn.

  • inter_horizontal (int) – > 0, quantity of points in the horizontal axis.

  • inter_vertical (int) – > 0, quantity of points in the vertical axis.

  • coefficients (np.ndarray) – coefficients of the spherical harmonics expansion.

  • radii (np.ndarray) – numpy array of floats with the radii of the spheres.

  • positions (list) – with numpy arrays that represents the position vector of the center of the spheres.

  • big_l (int) – > 0, maximum order of the spherical harmonics used to discretize the traces.

  • exterior (Callable[[np.ndarray], float]) – exterior function, to be evaluated in each point.

Returns:

data_for_plotting – 2D of floats for plotting.

Return type:

np.ndarray

biosspheres.laplace.drawing.draw_cut_representation_formula_one_sphere_azimuthal_symmetry(cut: int, center: ndarray, horizontal: float, vertical: float, inter_horizontal: int, inter_vertical: int, coefficients: ndarray, radius: float, big_l: int, exterior: Callable[[ndarray], float]) → ndarray[source]#
Parameters:
  • cut (int) – 1, 2 or 3. Indicates if the drawing is a parallel cut of the plane: xy if = 1, xz if = 2, yz = 3 if other.

  • center (np.ndarray) – array of floats of length 2. Coordinates of the center of the drawing.

  • horizontal (float) – horizontal length of the rectangle that is going to be drawn.

  • vertical (float) – vertical length of the rectangle that is going to be drawn.

  • inter_horizontal (int) – > 0, quantity of points in the horizontal axis.

  • inter_vertical (int) – > 0, quantity of points in the vertical axis.

  • coefficients (np.ndarray) – coefficients of the spherical harmonics expansion.

  • radius (float) – radius of the sphere.

  • big_l (int) – > 0, maximum order of the spherical harmonics used to discretize the traces.

  • exterior (Callable[[np.ndarray], float]) – exterior function, to be evaluated in each point.

Returns:

data_for_plotting – 2D of floats for plotting.

Return type:

np.ndarray