KratosMultiphysics / Kratos

Kratos Multiphysics (A.K.A Kratos) is a framework for building parallel multi-disciplinary simulation software. Modularity, extensibility and HPC are the main objectives. Kratos has BSD license and is written in C++ with extensive Python interface.
https://kratosmultiphysics.github.io/Kratos/
Other
1.05k stars 246 forks source link

conctact cylinder error: There is no sub model part with name "ComputingContact" in model part "Structure" #12813

Open luchete80 opened 3 weeks ago

luchete80 commented 3 weeks ago

Description After some corrections to ContactStructuralMechanics app, I've managed to run an old example: contactcylinders with remeshing. This is documented in repo https://github.com/luchete80/Kratos_tutorials/ I get:

RuntimeError: Error: There is no sub model part with name "ComputingContact" in model part "Structure" The following sub model parts are available: "Contact" "GENERIC_FixedBase" "GENERIC_Displacement_Auto1" "SkinModelPart" "CONTACT_Contact_master_Auto1" "CONTACT_Contact_slave_Auto1" "Parts_Solid_Auto1" "Parts_Solid_Auto2"

This is happening on search_base_process.py, line 223 which clear and regenerate the subModelPart "Contact".

If I replace subpart "Contact" by "ComputingContact" i get:

self.search_utility_list[key] = CSMA.ContactSearchProcess(self.main_model_part, search_parameters, properties_pair)

RuntimeError: Error: AdvancedContactSearch:: Please add the Contact submodelpart to your modelpart list

On the other hand, I see that test_dynamic_search.py

Scope Where in Kratos is this bug happening. E.g.

To Reproduce Run the (added here) files: https://github.com/luchete80/Kratos_tutorials/tree/master/contacting_cylinders_fixin I've replaced the following fropm branch 9.5: https://github.com/luchete80/Kratos_tutorials/blob/master/Fixings_Remeshing

Expected behavior Remesh and continue

Environment

loumalouomega commented 3 weeks ago

Sorry contact with remeshing is currentñy broken and we could not agree in an interface. This was done in a branch that does not compile anymore (2019 branch)

luchete80 commented 3 weeks ago

Uhm ok, I will try to run it on that one. Thank you very much!!!

loumalouomega commented 3 weeks ago

Uhm ok, I will try to run it on that one. Thank you very much!!!

The branch was private and lost

luchete80 commented 3 weeks ago

Oh, what a pity. Is a chance to access to a branch/tag from this current repo with similar characteristics? Like version 6.0 or 7.0? Thanks

loumalouomega commented 3 weeks ago

Unfortunately not, I uploaded an intermediate branch but it is broken, and the one actually working was in a private computer that I not longer have with me (it was 5 years+ ago)

loumalouomega commented 3 weeks ago

I could try to revive the thng, but I would like to agree an interface before any job @rubenzorrilla FYI

rubenzorrilla commented 3 weeks ago

Agree. We can discuss and agree about an upgraded interface and implementation. However, unfortunately at the moment we have no resources to allocate here.

loumalouomega commented 3 weeks ago

Agree. We can discuss and agree about an upgraded interface and implementation. However, unfortunately at the moment we have no resources to allocate here.

I will think a new design and propose it.