gemseo.problems.topology_optimization.topopt_initialize module#

Design space and disciplines of the topology optimization problems.

initialize_design_space_and_discipline_to(problem, n_x, n_y, e0, nu, penalty, min_member_size, vf0)[source]#

Initialize design space and disciplines for 2D topology optimization problems.

Parameters:
  • problem (str) -- The problem name, one of "MBB", "L-Shape", "Short_Cantilever".

  • n_x (int) -- The number of elements in the x-direction.

  • n_y (int) -- The number of elements in the y-direction.

  • e0 (float) -- The full material Young's modulus.

  • nu (float) -- The material Poisson's ratio.

  • penalty (float) -- The SIMP penalty coefficient.

  • min_member_size (float) -- The minimum structural member size.

  • vf0 (float) -- The minimum structural element dimension imposed in the topology optimization solution.

Returns:

  • The design space.

  • The disciplines.

Return type:

tuple[DesignSpace, list[Discipline]]