KratosMultiphysics / GiDInterface

The graphical user interface of Kratos for GiD. Featuring CFD, CSM, DEM, PFEM, etc
Other
33 stars 16 forks source link

New line geom mesh relation #972

Closed jginternational closed 6 months ago

jginternational commented 6 months ago

This PR will remove an annoying warning when using lines in Structural mechanics app

The feature may affect Structural > Beams > Hinges.

Until this PR we were getting the mdpa data:

Begin ElementalData CONDENSED_DOF_LIST // Group: Hinge Auto1
   25 [3] (0,1,2)
   38 [3] (3,4,5)
End ElementalData

Being 25 and 38 the starting node and final node of the line with boundary condition > Hinge

The way we used to pick this numbers was:

This works fine since GiD meshes this way but:

News

With this PR : image

The output will be:

Begin ElementalData CONDENSED_DOF_LIST // Group: Hinge Auto1
   38 [3] (0,1,2)
   25 [3] (3,4,5)
End ElementalData

Wich is fine, following the line direction, the first node is 38, and the last is 25.

@KratosMultiphysics/structural-mechanics

@AlejandroCornejo by petition of @RiccardoRossi