GiDInterface icon indicating copy to clipboard operation
GiDInterface copied to clipboard

Free surface writes geometries

Open jginternational opened this issue 1 year ago • 3 comments

Free surface fails running because of this:

In the first picture we can see the the group Fluid: image

In the second picture we can see the group Surface bottom: image

They do share elements

In the MDPA, both groups are written as Begin Geometries Triangle2D3 So there are elements declared 2 times, with the same id and the same connectivities. This should not be a problem, but it is.

You can see the log:


  File "C:\Users\garat\Desktop\Deploy_Kratos\Deploy_Kratos\KratosMultiphysics\analysis_stage.py", line 80, in Initialize
    self._ModelersSetupModelPart()
  File "C:\Users\garat\Desktop\Deploy_Kratos\Deploy_Kratos\KratosMultiphysics\analysis_stage.py", line 285, in _ModelersSetupModelPart
    modeler.SetupModelPart()
  File "C:\Users\garat\Desktop\Deploy_Kratos\Deploy_Kratos\KratosMultiphysics\modelers\import_mdpa_modeler.py", line 36, in SetupModelPart
    KratosMultiphysics.SingleImportModelPart.Import(
RuntimeError: Error: Attempting to add a new geometry with Id :892, unfortunately a (different) element with the same Id already exists




in kratos/includes/model_part.h:1538: ModelPart::AddGeometries
   kratos/includes/model_part.h:1560: ModelPart::AddGeometries
   kratos/sources/model_part_io.cpp:1771: ModelPartIO::ReadGeometriesBlock
   kratos/sources/model_part_io.cpp:618: ModelPartIO::ReadModelPart


Then in the submodelparts definition, each group references it's triangles.

jginternational avatar Jul 18 '24 15:07 jginternational