Graphical User Interfaces (GUIs)

Graphics user interfaces for topology optimization.

Base GUI

class topopt.guis.GUI(problem, title='')[source]

Graphics user interface of the topology optimization.

Draws the outputs a topology optimization problem.

__init__(problem, title='')[source]

Create a plot and draw the initial design.

Parameters:
  • problem (topopt.Problem) – problem to visualize
  • title (str) – title of the plot
init_subplots()[source]

Create the subplots.

plot_force_arrows()[source]

Add arrows to the plot for each force.

update(xPhys, title=None)[source]

Plot the results.

Stress GUI

class topopt.guis.StressGUI(problem, title='')[source]

Graphics user interface of the topology optimization.

Draws the output, stress, and derivative of stress of the topology optimization problem.

__init__(problem, title='')[source]

Create a plot and draw the initial design.

init_subplots()[source]

Create the subplots (one for the stress and one for diff stress).

update(xPhys, title=None)[source]

Plot the results.