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

StackOverflow-Exception #76

Closed thaletob closed 4 years ago

thaletob commented 4 years ago

The Overflow-Exception happens with Quad-Elements. After debugging I found out that the error is caused by DkqHelper.cs -> GetDMatrixAt which refers to itself in line 309:var diff = (tangent - GetDMatrixAt(targetElement, isoCoords)).Max(ii=>Math.Abs(ii)); Due to this infinite loop the StackOverflowException is created somewhere in GetDMatrixAt. My previous version (06/2020) is working.

epsi1on commented 4 years ago

Hi, I think you and @rubsy92 was working on the quadrilateral element. Maybe he knows the solution

Thanks

epsi1on commented 4 years ago

temporary fixed by commenting out the line 309 of DkqHelper.cs, can you please check and see if problem still exists?

rubsy92 commented 4 years ago

Commenting out that line fixes the issue indeed. What is the function of that diff term? It is not used anywhere...

epsi1on commented 4 years ago

I think last time it is used by breakpoint to manually check with known value :)

rubsy92 commented 4 years ago

@epsi1on You have a pull request which fixes this. It also gives some benchmark data of triangular shell elements (incl. Abaqus data)

epsi1on commented 4 years ago

@epsi1on You have a pull request which fixes this. It also gives some benchmark data of triangular shell elements (incl. Abaqus data)

Thanks @rubsy92 , Can you please recheck your pull request, there is two issues with that pull request:

Thanks

epsi1on commented 4 years ago

I think this issue is fixed, Please feel free to reopen if still exists Thanks