Layout#

layout.fixed_thickness_beam_from_df(df: DataFrame) Array[source]#
layout.grid_of_uniform_beams(n_x: int, n_y: int, dimensions: tuple[float, float], thickness: float) Array[source]#

Initialises a grid of crossed Uniform Beams in the domain

Parameters:
  • n_x – int - The number of component pairs (crosses) in the x direction

  • n_y – int - The number of component pairs (crosses) in the y direction

  • dimensions – tuple[float, float] - The dimensions to fill with the grid

  • thickness – float - The thickness of the beam components

Returns:

list[Component] - The list of components

layout.grid_of_uniform_beams_of_fixed_thickness(n_x: int, n_y: int, dimensions: tuple[float, float], thickness: list[float] | float) Array[source]#

Initialises a grid of crossed Uniform Beams in the domain

Parameters:
  • n_x – int - The number of component pairs (crosses) in the x direction

  • n_y – int - The number of component pairs (crosses) in the y direction

  • dimensions – tuple[float, float] - The dimensions to fill with the grid

  • thickness – float - The thickness of the beam components

Returns:

list[Component] - The list of components

layout.random_beams(min: ndarray[Any, dtype[_ScalarType_co]], max: ndarray[Any, dtype[_ScalarType_co]], n: int, np_random: Generator | None) Array[source]#