Describe the bug
When optimising shells using cross sections with different materials, the results of mass, reaction force, and element material are incorrect but only when a GroupId of the whole mesh element is provided to the optimiser.
I've attached a script were I've isolated and tested the problem. In this script we've created two different materials: the first represents a normal steel plate (name:'Plate-THK 6mm-0 % Perforated') and the second is perforated steel plate (Plate-THK 6mm-50 % Perforated). The material of the perforated steel has a reduced density, stiffness and strength.
I've set up the optimisation analysis so that the plate thickness with and without the 'GroupIDs' is the same. However, toggling the GroupIDs shows that the model mass and reaction forces change, while the plate thickness and SW displacement stays the same (this would change if the material changes due to the change in density and stiffness).
To Reproduce
Steps to reproduce the behavior:
Create a shell model where the elements will not be highly stressed.
Give the shell element an ID
Create two shell cross section with different materials (including different densities). Also use subtly different thicknesses in each cross section to see the change in thickness created by the optimiser.
Provide the shell element with heaviest material cross section.
Optimise the shell with cross sections using different materials
Provide the shell ID to the 'GroupIDs' input of the optimiser.
Describe the bug When optimising shells using cross sections with different materials, the results of mass, reaction force, and element material are incorrect but only when a GroupId of the whole mesh element is provided to the optimiser.
Notes Karamba Shell Optimisation Bug_230510.zip
I've attached a script were I've isolated and tested the problem. In this script we've created two different materials: the first represents a normal steel plate (name:'Plate-THK 6mm-0 % Perforated') and the second is perforated steel plate (Plate-THK 6mm-50 % Perforated). The material of the perforated steel has a reduced density, stiffness and strength.
I've set up the optimisation analysis so that the plate thickness with and without the 'GroupIDs' is the same. However, toggling the GroupIDs shows that the model mass and reaction forces change, while the plate thickness and SW displacement stays the same (this would change if the material changes due to the change in density and stiffness).
To Reproduce Steps to reproduce the behavior: