gemseo.problems.topology_optimization.volume_fraction_disc module#
A discipline for topology optimization volume fraction.
- class VolumeFraction(n_x=100, n_y=100, empty_elements=None, full_elements=None, name='')[source]#
Bases:
DisciplineCompute the volume fraction from the density.
Volume fraction is computed as the average of the density value (rho) on each finite element.
Initialize self. See help(type(self)) for accurate signature.
- Parameters:
n_x (int) --
The number of elements in the x-direction.
By default it is set to 100.
n_y (int) --
The number of elements in the y-direction.
By default it is set to 100.
empty_elements (Sequence[int] | None) -- The index of the empty element ids that are not part of the design space.
full_elements (Sequence[int] | None) -- The index of the full element ids that are not part of the design space.
name (str) --
The name of the discipline. If empty, use the name of the class.
By default it is set to "".