{"action":"created","issue":{"url":"https://api.github.com/repos/KratosMultiphysics/Kratos/issues/3044","repository_url":"https://api.github.com/repos/KratosMultiphysics/Kratos","labels_url":"https://api.github.com/repos/KratosMultiphysics/Kratos/issues/3044/labels{/name}","comments_url":"https://api.github.com/repos/KratosMultiphysics/Kratos/issues/3044/comments","events_url":"https://api.github.com/repos/KratosMultiphysics/Kratos/issues/3044/events","html_url":"https://github.com/KratosMultiphysics/Kratos/issues/3044","id":369135482,"node_id":"MDU6SXNzdWUzNjkxMzU0ODI=","number":3044,"title":"Error: eigenvalue analysis with nodal masses","user":{"login":"veiguf","id":33318417,"node_id":"MDQ6VXNlcjMzMzE4NDE3","avatar_url":"https://avatars2.githubusercontent.com/u/33318417?v=4","gravatar_id":"","url":"https://api.github.com/users/veiguf","html_url":"https://github.com/veiguf","followers_url":"https://api.github.com/users/veiguf/followers","following_url":"https://api.github.com/users/veiguf/following{/other_user}","gists_url":"https://api.github.com/users/veiguf/gists{/gist_id}","starred_url":"https://api.github.com/users/veiguf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veiguf/subscriptions","organizations_url":"https://api.github.com/users/veiguf/orgs","repos_url":"https://api.github.com/users/veiguf/repos","events_url":"https://api.github.com/users/veiguf/events{/privacy}","received_events_url":"https://api.github.com/users/veiguf/received_events","type":"User","site_admin":false},"labels":[{"id":539268248,"node_id":"MDU6TGFiZWw1MzkyNjgyNDg=","url":"https://api.github.com/repos/KratosMultiphysics/Kratos/labels/Applications","name":"Applications","color":"0052cc","default":false},{"id":538597496,"node_id":"MDU6TGFiZWw1Mzg1OTc0OTY=","url":"https://api.github.com/repos/KratosMultiphysics/Kratos/labels/Error","name":"Error","color":"b60205","default":false},{"id":538395922,"node_id":"MDU6TGFiZWw1MzgzOTU5MjI=","url":"https://api.github.com/repos/KratosMultiphysics/Kratos/labels/Help%20Wanted","name":"Help Wanted","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-11T13:59:36Z","updated_at":"2018-10-15T14:29:18Z","closed_at":null,"author_association":"NONE","body":"I'm adding nodal masses to 3D structures in order to manipulate the vibrational behavior of the structure itself and want to perform the eigenvalue analysis. It worked until a new build of Kratos of some days or weeks ago, but now I don't get results any more. In the following is listed the code of how the nodal masses are assigned.\r\n```\r\nsimulation.Initialize()\r\nsolver = simulation._GetSolver()\r\ncomputing_model_part = solver.GetComputingModelPart()\r\nstiffness = 0.0\r\ndamping = 0.0\r\ncomputing_model_part = solver.GetComputingModelPart()\r\nelement = computing_model_part.CreateNewElement(\"NodalConcentratedElement3D1N\", 99999, [1], None) \r\nelement.SetValue(NODAL_MASS, mass)\r\nelement.SetValue(NODAL_STIFFNESS, [0, stiffness, 0])\r\nelement.SetValue(NODAL_DAMPING_RATIO , [0, damping, 0])\r\nsimulation.RunSolutionLoop()\r\nsimulation.Finalize()\r\n```\r\nAs I understood, the simulation runs through until `simulation.Finalize()`. In the following is listed the code of `Finalize`. The only error message I get is \"Speicherzugriffsfehler\".\r\n```\r\n    def Finalize(self):\r\n        super(StructuralMechanicsAnalysisWithEigenPostProcessing,self).Finalize()\r\n        main_model_part_name = self.project_parameters[\"solver_settings\"][\"model_part_name\"].GetString()\r\n        main_model_part = self.model[main_model_part_name]\r\n        self.Lambda = main_model_part.ProcessInfo[sm.EIGENVALUE_VECTOR]\r\n        mass_process = sm.TotalStructuralMassProcess(main_model_part)\r\n        mass_process.Execute()\r\n        self.mass = main_model_part.ProcessInfo[km.NODAL_MASS]\r\n```\r\nAny idea of what is wrong and how to fix this?\r\nThanks in advance!"},"comment":{"url":"https://api.github.com/repos/KratosMultiphysics/Kratos/issues/comments/429875429","html_url":"https://github.com/KratosMultiphysics/Kratos/issues/3044#issuecomment-429875429","issue_url":"https://api.github.com/repos/KratosMultiphysics/Kratos/issues/3044","id":429875429,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTg3NTQyOQ==","user":{"login":"e-dub","id":8830285,"node_id":"MDQ6VXNlcjg4MzAyODU=","avatar_url":"https://avatars3.githubusercontent.com/u/8830285?v=4","gravatar_id":"","url":"https://api.github.com/users/e-dub","html_url":"https://github.com/e-dub","followers_url":"https://api.github.com/users/e-dub/followers","following_url":"https://api.github.com/users/e-dub/following{/other_user}","gists_url":"https://api.github.com/users/e-dub/gists{/gist_id}","starred_url":"https://api.github.com/users/e-dub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e-dub/subscriptions","organizations_url":"https://api.github.com/users/e-dub/orgs","repos_url":"https://api.github.com/users/e-dub/repos","events_url":"https://api.github.com/users/e-dub/events{/privacy}","received_events_url":"https://api.github.com/users/e-dub/received_events","type":"User","site_admin":false},"created_at":"2018-10-15T14:29:18Z","updated_at":"2018-10-15T14:29:18Z","author_association":"MEMBER","body":"We are adding point masses (without stiffness or damping) to an existing structure with the following commands: \r\n```\r\ncomputing_model_part.CreateNewElement(\"NodalConcentratedElement3D1N\", 9999999, [10], None)    element.SetValue(km.NODAL_MASS, m[ii])\r\nelement.SetValue(sm.NODAL_STIFFNESS, [0, stiffness, 0])\r\nelement.SetValue(sm.NODAL_DAMPING_RATIO, [0, damping, 0])\r\n```\r\nIn order to access the values for the eigenvalues and mass we wrote the following Finalize function within the class StructuralMechanicsAnalysisWithEigenPostProcessing:\r\n```\r\nclass StructuralMechanicsAnalysisWithEigenPostProcessing(StructuralMechanicsAnalysis):\r\n    def Finalize(self):\r\n        super(StructuralMechanicsAnalysisWithEigenPostProcessing,self).Finalize()\r\n        main_model_part_name = self.project_parameters[\"solver_settings\"][\"model_part_name\"].GetString()\r\n        main_model_part = self.model[main_model_part_name]\r\n        self.Lambda = main_model_part.ProcessInfo[sm.EIGENVALUE_VECTOR]\r\n```\r\nWe are getting the memory access error at `super(StructuralMechanicsAnalysisWithEigenPostProcessing,self).Finalize()`.  \r\n\r\nThe error is still there even if we \"turn off\" everything to do with mass calculation. Further, the proper eigenvalues are printed to the output window before the error.  \r\n\r\nTherefore I am thinking has something to do with the Finalize class with added nodes.  \r\n\r\nAny ideas what this could be?  Is this the same problem I was having here: https://github.com/KratosMultiphysics/Kratos/issues/2959\r\n\r\nThanks in advance!"}}
{"actor":{"display_login":"e-dub"}}