{"action":"created","issue":{"url":"https://api.github.com/repos/KratosMultiphysics/Kratos/issues/1819","repository_url":"https://api.github.com/repos/KratosMultiphysics/Kratos","labels_url":"https://api.github.com/repos/KratosMultiphysics/Kratos/issues/1819/labels{/name}","comments_url":"https://api.github.com/repos/KratosMultiphysics/Kratos/issues/1819/comments","events_url":"https://api.github.com/repos/KratosMultiphysics/Kratos/issues/1819/events","html_url":"https://github.com/KratosMultiphysics/Kratos/pull/1819","id":312526046,"number":1819,"title":"Core/fix calculate sensitivity matrix","user":{"login":"armingeiser","id":25903585,"avatar_url":"https://avatars2.githubusercontent.com/u/25903585?v=4","gravatar_id":"","url":"https://api.github.com/users/armingeiser","html_url":"https://github.com/armingeiser","followers_url":"https://api.github.com/users/armingeiser/followers","following_url":"https://api.github.com/users/armingeiser/following{/other_user}","gists_url":"https://api.github.com/users/armingeiser/gists{/gist_id}","starred_url":"https://api.github.com/users/armingeiser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/armingeiser/subscriptions","organizations_url":"https://api.github.com/users/armingeiser/orgs","repos_url":"https://api.github.com/users/armingeiser/repos","events_url":"https://api.github.com/users/armingeiser/events{/privacy}","received_events_url":"https://api.github.com/users/armingeiser/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-09T13:14:59Z","updated_at":"2018-04-09T13:41:34Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/KratosMultiphysics/Kratos/pulls/1819","html_url":"https://github.com/KratosMultiphysics/Kratos/pull/1819","diff_url":"https://github.com/KratosMultiphysics/Kratos/pull/1819.diff","patch_url":"https://github.com/KratosMultiphysics/Kratos/pull/1819.patch"},"body":"I isolated the changes from PR #1804 that affect the core:\r\n\r\n1. The ```CalculateSensitivityMatrix``` function calculates the derivative of the residual w.r.t the design variable. It is already existing in the element base class, but is missing in the condition base. At least for structural sensitivity analysis it can be relevant (e.g. for load intensity as design variable or for pressure loads in shape optimization). I don't know how it is for fluid sensitivity analysis @msandre?\r\n\r\n2. The ```CalculateSensitivityMatrix``` function in the element base and the new one in the condition base should resize the output to 0, if the derived element/condition does not overwrite this function. Otherwise it can happen that the wrong values are used for further calculations of the sensitivity."},"comment":{"url":"https://api.github.com/repos/KratosMultiphysics/Kratos/issues/comments/379755975","html_url":"https://github.com/KratosMultiphysics/Kratos/pull/1819#issuecomment-379755975","issue_url":"https://api.github.com/repos/KratosMultiphysics/Kratos/issues/1819","id":379755975,"user":{"login":"RiccardoRossi","id":8059665,"avatar_url":"https://avatars1.githubusercontent.com/u/8059665?v=4","gravatar_id":"","url":"https://api.github.com/users/RiccardoRossi","html_url":"https://github.com/RiccardoRossi","followers_url":"https://api.github.com/users/RiccardoRossi/followers","following_url":"https://api.github.com/users/RiccardoRossi/following{/other_user}","gists_url":"https://api.github.com/users/RiccardoRossi/gists{/gist_id}","starred_url":"https://api.github.com/users/RiccardoRossi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RiccardoRossi/subscriptions","organizations_url":"https://api.github.com/users/RiccardoRossi/orgs","repos_url":"https://api.github.com/users/RiccardoRossi/repos","events_url":"https://api.github.com/users/RiccardoRossi/events{/privacy}","received_events_url":"https://api.github.com/users/RiccardoRossi/received_events","type":"User","site_admin":false},"created_at":"2018-04-09T13:41:34Z","updated_at":"2018-04-09T13:41:34Z","author_association":"OWNER","body":"@armingeiser @msandre those functions were the ones we agreed upon many months back right? (i mean for the element interface)"}}
{"actor":{"display_login":"RiccardoRossi"}}