{"action":"closed","issue":{"url":"https://api.github.com/repos/BriefFiniteElementNet/BFE.Net/issues/11","repository_url":"https://api.github.com/repos/BriefFiniteElementNet/BFE.Net","labels_url":"https://api.github.com/repos/BriefFiniteElementNet/BFE.Net/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/BriefFiniteElementNet/BFE.Net/issues/11/comments","events_url":"https://api.github.com/repos/BriefFiniteElementNet/BFE.Net/issues/11/events","html_url":"https://github.com/BriefFiniteElementNet/BFE.Net/issues/11","id":383351845,"node_id":"MDU6SXNzdWUzODMzNTE4NDU=","number":11,"title":"Help on \"Matrix must be symmetric positive definite\" error","user":{"login":"ceanwang","id":4224442,"node_id":"MDQ6VXNlcjQyMjQ0NDI=","avatar_url":"https://avatars1.githubusercontent.com/u/4224442?v=4","gravatar_id":"","url":"https://api.github.com/users/ceanwang","html_url":"https://github.com/ceanwang","followers_url":"https://api.github.com/users/ceanwang/followers","following_url":"https://api.github.com/users/ceanwang/following{/other_user}","gists_url":"https://api.github.com/users/ceanwang/gists{/gist_id}","starred_url":"https://api.github.com/users/ceanwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceanwang/subscriptions","organizations_url":"https://api.github.com/users/ceanwang/orgs","repos_url":"https://api.github.com/users/ceanwang/repos","events_url":"https://api.github.com/users/ceanwang/events{/privacy}","received_events_url":"https://api.github.com/users/ceanwang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-11-22T01:50:44Z","updated_at":"2018-11-29T09:41:54Z","closed_at":"2018-11-29T09:41:54Z","author_association":"NONE","body":"Hi,\r\n\r\nTried to calculate a 2d truss with code below, but got a message saying \"Matrix must be symmetric positive definite\". What's wrong with the code?\r\n\r\nThanks for help.\r\n\r\nCean\r\n\r\n\r\n        private static void Truss2D()\r\n        {\r\n            Console.WriteLine(\"Simple 2D truss with 3 members\");\r\n            \r\n            var model = new Model();\r\n\r\n            var n1 = new Node(0, 0, 0);\r\n            n1.Label = \"n1\";//Set a unique label for node\r\n            var n2 = new Node(1, 0, 1.732) { Label = \"n2\" };//using object initializer for assigning Label\r\n            var n3 = new Node(1, 0, 0) { Label = \"n3\" };\r\n\r\n            var e1 = new TrussElement2Node(n1, n2) { Label = \"e1\" };\r\n            var e2 = new TrussElement2Node(n2, n3) { Label = \"e2\" };\r\n            var e3 = new TrussElement2Node(n1, n3) { Label = \"e3\" };\r\n\r\n            e1.A = e2.A = e3.A  = 0.001;\r\n            e1.E = e2.E = e3.E  = 200e9;\r\n\r\n            model.Nodes.Add(n1, n2, n3);\r\n            model.Elements.Add(e1, e2, e3);\r\n\r\n            n1.Constraints  = Constraints.Fixed;\r\n            n2.Constraints = Constraints.RotationFixed;\r\n            n3.Constraints = Constraints.RotationFixed;\r\n            \r\n            var force = new Force(10000, 0, 0, 0, 0, 0);\r\n            n2.Loads.Add(new NodalLoad(force));//adds a load with LoadCase of DefaultLoadCase to node loads\r\n\r\n            model.Solve();\r\n\r\n            Console.ReadKey();\r\n\r\n        }\r\n"}}
{"actor":{"display_login":"epsi1on"}}