def UpdateMeshAccordingInputVariable(self, InputVariable): self.mesh_controller.UpdateMeshAccordingInputVariable(InputVariable) if self.model_settings["damping"]["recalculate_damping"].GetBool(): self.damping_utility = KSO.DampingUtilities( self.design_surface, self.damping_regions, self.model_settings["damping"])
def Initialize(self): self.__ImportOptimizationModelPart() self.__IdentifyDesignSurface() self.mesh_controller.Initialize() if self.model_settings["damping"]["apply_damping"].GetBool(): self.__IdentifyDampingRegions() self.damping_utility = KSO.DampingUtilities(self.design_surface, self.damping_regions, self.model_settings["damping"])