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.03k stars 245 forks source link

KratosMultihysics-all ERROR #9989

Open LVilla96 opened 2 years ago

LVilla96 commented 2 years ago

GOOD DAY!! When we try to run the GID program, the following error occurs

image

I pressed "yes" and shows the following error report:

Error (l671): Collecting KratosMultiphysics-all Downloading KratosMultiphysics_all-9.1.3-py3-none-any.whl (3.6 kB) ERROR: Could not find a version that satisfies the requirement KratosShallowWaterApplication==9.1.3 (from KratosMultiphysics-all) (from versions: none) ERROR: No matching distribution found for KratosShallowWaterApplication==9.1.3 (from KratosMultiphysics-all) STACK: Collecting KratosMultiphysics-all Downloading KratosMultiphysics_all-9.1.3-py3-none-any.whl (3.6 kB) ERROR: Could not find a version that satisfies the requirement KratosShallowWaterApplication==9.1.3 (from KratosMultiphysics-all) (from versions: none) ERROR: No matching distribution found for KratosShallowWaterApplication==9.1.3 (from KratosMultiphysics-all) while executing "exec $pip -m pip install --no-cache-dir --disable-pip-version-check {*}$missing_packages" (procedure "Kratos::InstallAllPythonDependencies" line 27) invoked from within "Kratos::InstallAllPythonDependencies" (procedure "Kratos::CheckDependenciesPipMode" line 28) invoked from within "$deps" (procedure "Kratos::CheckDependencies" line 6) invoked from within "Kratos::CheckDependencies" (procedure "Kratos::Event_InitProblemtype" line 43) invoked from within "Kratos::Event_InitProblemtype $dir" (procedure "::GiD_Event_InitProblemtype" line 2) invoked from within "::GiD_Event_InitProblemtype /home/engineer-user/GiDx64/gid-15.1.6d/problemtypes/kratos.gid"

I appreciate you can help me

roigcarlo commented 2 years ago

Hi @LVilla96

Thx for detecting this. We are working on the fix right now. As soon as it's ready I will ping you (I expect it to be ready during this afternoon / early tomorrow CEST time).

Br,

MatiasVenegas commented 2 years ago

I have the same problem with linux too.

roigcarlo commented 2 years ago

Hi @MatiasVenegas @LVilla96. We are still trying to fix the shallow water issue. There seems to be a problem with our build machine, until we have it fixed please try to install the packages manually:

$ python -m pip uninstall KratosMultiphysics-all
$ python -m pip install  KratosMultiphysics

and any other app you need:

$ python -m pip install  KratosStructuralMechanicsApplication

Available apps are: KratosConstitutiveLawsApplication KratosContactStructuralMechanicsApplication KratosConvectionDiffusionApplication KratosCoSimulationApplication KratosDamApplication KratosDEMApplication KratosFluidDynamicsApplication KratosFSIApplication KratosLinearSolversApplication KratosMappingApplication KratosMeshingApplication KratosParticleMechanicsApplication KratosPoroMechanicsApplication KratosStructuralMechanicsApplication

MatiasVenegas commented 2 years ago

@roigcarlo Thanks. I tried to install those packages manuallly, but it still shows the same error. $ pip3 install KratosMultiphysics-all ERROR: Could not find a version that satisfies the requirement KratosShallowWaterApplication==9.1.3 (from KratosMultiphysics-all) (from versions: none) ERROR: No matching distribution found for KratosShallowWaterApplication==9.1.3 (from KratosMultiphysics-all)

roigcarlo commented 2 years ago

Hi @LVilla96 @MatiasVenegas,

Error should be solved now. I recommend you to reinstall everything so you don't find any incompatibility:

pip install --upgrade --force-reinstall --no-cache-dir KratosMultiphysics-all

Please tell me if this works for you or it gives you any further error.

rubenzorrilla commented 2 years ago

@roigcarlo Thanks. I tried to install those packages manuallly, but it still shows the same error. $ pip3 install KratosMultiphysics-all ERROR: Could not find a version that satisfies the requirement KratosShallowWaterApplication==9.1.3 (from KratosMultiphysics-all) (from versions: none) ERROR: No matching distribution found for KratosShallowWaterApplication==9.1.3 (from KratosMultiphysics-all)

@jginternational FYI

MatiasVenegas commented 2 years ago

Hi @LVilla96 @MatiasVenegas,

Error should be solved now. I recommend you to reinstall everything so you don't find any incompatibility:

pip install --upgrade --force-reinstall --no-cache-dir KratosMultiphysics-all

Please tell me if this works for you or it gives you any further error.

Thanks, it worked.

MatiasVenegas commented 2 years ago

@roigcarlo I've another problem with an example of 3D DEM. When I click on the postprocess label it shows the following warning: image

Then shows a warning window with this: /home/engineer-user/GiDx64/gid-15.1.6d/problemtypes/kratos.gid/exec/pip.unix.bat: línea 13: 310664 Violación de segmento $kratos_python_exe MainKratos.py > "$2/$1.info" 2> "$2/$1.err"

Sorry, I appreciate you can help me again.

roigcarlo commented 2 years ago

I @MatiasVenegas that means the simulation failed. Can you copy the output file (Calculate->View Process Info)?

Also, is this an example that you made or is an already existing example? Br,

MatiasVenegas commented 2 years ago

I @MatiasVenegas that means the simulation failed. Can you copy the output file (Calculate->View Process Info)?

Also, is this an example that you made or is an already existing example? Br,

Sure, it's an already existing example. Process Info: | / | ' / | _` | _| \ | . \ | ( | | ( |_ \ |__| _,|__|_/ __/

       Multi-Physics 9.1."3"-aea94c5-Release

Compiled with threading and MPI support. Maximum number of threads: 1. Running without MPI. Importing KratosDEMApplication

 KRATOS |  _ \| ____|  \/  |  _ \ __ _  ___| | __      
        | | | |  _| | |\/| | |_) / _` |/ __| |/ /      
        | |_| | |___| |  | |  __/ (_| | (__|   <       
        |____/|_____|_|  |_|_|   \__,_|\___|_|\_\      

Importing DEMApplication... done. DEM: Running under OpenMP........ ModelPartIO: [Reading Nodes : 728 nodes read] ModelPartIO: [Reading Elements : 728 elements read] [Type: SphericParticle3D] ModelPartIO: [Total Lines Read : 3666] ModelPartIO: [Reading Nodes : 2950 nodes read] ModelPartIO: [Reading Conditions : 5698 conditions read] [Type: RigidFace3D3N] ModelPartIO: [Total Lines Read : 17336] ModelPartIO: [Total Lines Read : 1] ModelPartIO: [Reading Nodes : 964 nodes read] ModelPartIO: [Total Lines Read : 1996] Read materials: No tables defined for material ID: 1 Initializing Problem...: Cluster file /home/engineer-user/Mati/ExampleDEM3D.gid/rock1cluster3D.clu was read correctly: Initialization Complete: DOFs for the DEM solution added correctly: DOFs for the DEM solution added correctly: DOFs for the DEM solution added correctly: DEM: ------------------DISCONTINUUM SOLVER STRATEGY---------------------

DEM: ** DEM: Parallelism Info: MPI number of nodes: 1 DEM: Parallelism Info: OMP number of processors: 1 DEM: ** DEM: Analysis: Analysis -START-
DEM: Total number of time s expected in the calculation: 499999

:

This is the example:

image

roigcarlo commented 2 years ago

Hi @KratosMultiphysics/dem can you help with this? I've tried to reproduce the error in a clean computer and I can confirm it does not work. To me it throws a different error:

Traceback (most recent call last):
  File "E:\Escritorio\demtest.gid\MainKratos.py", line 31, in <module>
    DEMAnalysisStageWithFlush(global_model, parameters).Run()
  File "C:\Users\roigc\AppData\Roaming\Python\Python39\site-packages\KratosMultiphysics\analysis_stage.py", line 47, in Run
    self.Initialize()
  File "C:\Users\roigc\AppData\Roaming\Python\Python39\site-packages\KratosMultiphysics\DEMApplication\DEM_analysis_stage.py", line 249, in Initialize
    self.ReadModelParts()
  File "C:\Users\roigc\AppData\Roaming\Python\Python39\site-packages\KratosMultiphysics\DEMApplication\DEM_analysis_stage.py", line 458, in ReadModelParts
    self.CheckConsistencyOfElementsAndNodesInEverySubModelPart()
  File "C:\Users\roigc\AppData\Roaming\Python\Python39\site-packages\KratosMultiphysics\DEMApplication\DEM_analysis_stage.py", line 471, in CheckConsistencyOfElementsAndNodesInEverySubModelPart
    ErrorMessage(submp.Name)
  File "C:\Users\roigc\AppData\Roaming\Python\Python39\site-packages\KratosMultiphysics\DEMApplication\DEM_analysis_stage.py", line 462, in ErrorMessage
    raise Exception(" ModelPart (or SubModelPart) "+ name + " has a different number of nodes and elements (particles)! \n")
Exception:  ModelPart (or SubModelPart) DEM-CustomSmp_Body has a different number of nodes and elements (particles)!

2D Seems to run ok.

maceligueta commented 2 years ago

Hi @roigcarlo , yes, it is a problem with the Custom SubmodelPart. If used, the Custom SubmodelPart must contain both DEM elements and their central nodes, but this is currently hard to do with the GiD Interface. We discussed this with @jginternational and we decided to remove this capability from the GUI for the DEM. This capability removal should only affect developers, not normal DEM users.

maceligueta commented 2 years ago

Is that in progress or already merged, @jginternational ? Please let me know if I have to code something.

roigcarlo commented 2 years ago

Ping @jginternational