Closed loumalouomega closed 6 years ago
I think this is on purpose Dont the fluid elements rely on this for being fast? @jcotela
This can be configured in the element itself, but in my opinion the default should be the minimum necessary to get a good aproximation in the case of a linear function. Three gauss points for the triangle
In fact the tetrahedra has the same problem
@jcotela is this on pourpose as @philbucher says?
It is correct, they are the minimum, where is the problem?
Well, I expected to be the same at least the minimal necessary to integrate a linear function
If the primary variable is approached by a linear field, one integration point is the minimum. In quadrilaters, we use four to avoid free energy modes.
OK, I will close this then
@loumalouomega @philbucher As far as I know, the criteria for the default integration point is "as many as needed to integrate the stiffness matrix for an elastic linear problem/a Poisson equation".
@loumalouomega since you reopened it, can I ask you to clarify what is your goal with the issue?
The current setup matches the stated "rule": for elements with linear shape functions (triangles/tetras) one gauss point is enough to exactly integrate the stiffness matrix or a Laplacian. For bi-linear elements (quads) you need four, otherwise you get zero energy modes as @josep-m-carbonell is saying.
I reopened because you commented, and I thought that the discussion wasn't finished. I am happy with the answer, so I will close again, sorry for the misunderstood
@loumalouomega no problem, thanks for clarifying.
@KratosMultiphysics/technical-committee
https://github.com/KratosMultiphysics/Kratos/blob/c4c4fc35f587a5ccfc0d65d77c8b0a5684c3476f/kratos/geometries/triangle_2d_3.h#L2131
In the other hand the Quadrilateral2D4 uses 4 GP by default:
https://github.com/KratosMultiphysics/Kratos/blob/c4c4fc35f587a5ccfc0d65d77c8b0a5684c3476f/kratos/geometries/quadrilateral_2d_4.h#L1115