BriefFiniteElementNet / BriefFiniteElement.Net

BriefFiniteElementDotNET (BFE.NET) is a library for linear-static Finite Element Method (FEM) analysis of solids and structures in .NET
GNU Lesser General Public License v3.0
154 stars 57 forks source link

Various crashes Matrix functions #78

Closed rubsy92 closed 2 years ago

rubsy92 commented 4 years ago

Describe the bug

To Reproduce Any triangular shell case

epsi1on commented 4 years ago

Could you please also put stack trace something of exception (I mean Exception.StackTrace property) Thanks

rubsy92 commented 4 years ago

E.g. for the SetMember-bug: Exception: Invallid column or row specified StackTrace (reduced): at BriefFiniteElementNet.MatrixException.ThrowIf(Boolean condition, String message) in \BriefFiniteElementNet.Common\MatrixException.cs:line 48 at BriefFiniteElementNet.Matrix.SetMember(Int32 row, Int32 column, Double value) in \BriefFiniteElementNet.Common\Matrix.cs:line 647 at BriefFiniteElementNet.Matrix.set_TheMember(Int32 row, Int32 column, Double value) in \BriefFiniteElementNet.Common\Matrix.cs:line 453 at BriefFiniteElementNet.Matrix.FillColumn(Int32 colNum, Double[] values) in \BriefFiniteElementNet.Common\Matrix.cs:line 1832 at BriefFiniteElementNet.ElementHelpers.CstHelper.GetLocalInternalForce(Element targetElement, LoadCase loadCase, Double[] isoCoords) in \BriefFiniteElementNet\ElementHelpers\CstHelper.cs:line 284 at SolverTest.Testcases.S3ShellTester.writeDataTriangleElement(Model model, LoadCase testCase) in Validation\Code\SolverTest\SolverTest\Testcases\S3ShellTester.cs:line 351 at SolverTest.Testcases.S3ShellTester.Model1Test2() in Validation\Code\SolverTest\SolverTest\Testcases\S3ShellTester.cs:line 84 at SolverTest.Form1.button2_Click(Object sender, EventArgs e) in Validation\Code\SolverTest\SolverTest\Form1.cs:line 38

epsi1on commented 3 years ago

Thanks for report, so it shows CstHelper.GetLocalInternalForce() throws exception. Will check it...

epsi1on commented 3 years ago

Seems error is gone for now, can you please do a check again? Thanks