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

Update 22.06.20 #56

Closed thaletob closed 4 years ago

thaletob commented 4 years ago

Added the missing Matrix calculations with respect to xi and eta. What is meant by the function GetBMaxOrder ? I don't understand what it is...

epsi1on commented 4 years ago

GetBMaxOrder() is used inside integration for determining sampling point

thaletob commented 4 years ago

Yes, but the structure of the contained vector is not clear to me... does it contain the max. degree of each row of B? Or how does it work?

epsi1on commented 4 years ago

it is int[] array, usually, three members. first is max degree of Xi, second and third is for other isoparametric dimensions. for 1D elements, only first member have nonzero value, for 2D, first two elements and for 3D, all elements.

thaletob commented 4 years ago

Thank you, this helped a lot.

thaletob commented 4 years ago

I think I only need to complete the QuadrilaturalElement.cs class now before the Elementtype is ready for testing. Am I right?

thaletob commented 4 years ago

I am asking because it is actually pretty hard to keep an overview over all classes and functions and how they hang together when you have not written the whole code on your own. I am trying to get this Element-Type working properly within the following days. Kind regards.

epsi1on commented 4 years ago

I am asking because it is actually pretty hard to keep an overview over all classes and functions and how they hang together when you have not written the whole code on your own. I am trying to get this Element-Type working properly within the following days. Kind regards. There are two approaches for testing, one is unit testing and other one is integrated testing.

There is only one thing and that is NotImplementExceptions and we can see if it throws any in action! :)

example of integrated test is in here for triangle element:

BriefFiniteElement.Net/BriefFiniteElementNet.Validation/TriangleElementTester.cs

It compares result of nodal displacement with opensees. i think you better create a class with name QuadrilaturalElementTester.cs which is a copy of this file.

epsi1on commented 4 years ago

I am asking because it is actually pretty hard to keep an overview over all classes and functions and how they hang together when you have not written the whole code on your own. I am trying to get this Element-Type working properly within the following days. Kind regards.

Actually my target was to decouple implementation of different elements, so there is a main element which is a state or data holder object, then other elements like DKQ or Q4 are implemented as IElementHelper and Element.Behavior does define which IElementHelper should be used,..

thaletob commented 4 years ago

Okay. Thank you! After testing the code and debugging it yesterday I can understand the structure of your code now. :)