GiDInterface
GiDInterface copied to clipboard
Free surface writes geometries
Free surface fails running because of this:
In the first picture we can see the the group Fluid:
In the second picture we can see the group Surface bottom:
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.