-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic Questions Regarding Kratos Usage #12755
Comments
Hi, Can you try to run a file with:
pinging @KratosMultiphysics/mpm |
Absolutely not mandatory, as long as you can write MDPA files and project parameters as JSON files, you can use instances of AnalysisStage to run Kratos regardless of any GUI. |
Hi Diego, The error that you get “Command 'from' not found” is most likely because you use the command without launching python. To test your installation, you can run a python script (some-name.py) with However, since you got “ModuleNotFoundError: No module named 'KratosMultiphysics'”, it means that you have a bad PATH definition. Are you sure the path in these commands are correct? Where did you put your Kratos folder?
|
Adding to @takeshimg92 's comment that you can also use Salome as preprocessor and write the mesh input file in MED format. |
Small guide on how to read in MED files from SALOME can be found in the following link |
Thank you very much for all your answers. In fact, I had issues related to a bad PATH definition, but I managed to fix it. As Andi mentioned, I’ve already tested my installation by running a Python script with: from KratosMultiphysics import * and it worked perfectly!" I will try to follow Suneth's advice to work with MED files! |
For the compilation, did you check if the configuration file used ( See https://github.com/KratosMultiphysics/Kratos/tree/master/applications/MPMApplication under Getting Started -> Prerequisites for which lines to look for |
Dear all,
I am a completely new user of Kratos, so I have some very basic questions:
Is it mandatory to use GiD? Are there any examples using plain text files?
I was able to compile Kratos in release mode on Ubuntu 22.04. It compiled well. However, I am not sure how to run it.
After the compilation, I already did the following:
export PYTHONPATH=$PYTHONPATH:$HOME/Kratos/bin/Release
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/Kratos/bin/Release/libs
But when I try in the terminal "from KratosMultiphysics import *"
I get the follwoing error:
Command 'from' not found, but can be installed with:
sudo apt install mailutils
I tried downloading the “2_Kratos_input_files_and_IO” files but when I type “python3 ./MainKratos.py”, I get the following error: “Traceback (most recent call last):
File "/home/diego_uribe/Software/2_Kratos_input_files_and_IO/./MainKratos.py", line 3, in
import KratosMultiphysics
ModuleNotFoundError: No module named 'KratosMultiphysics'”
Is there any documentation explaining the theory behind the implementation without using GiD? I am particularly interested in MPM applications.
Best regards,
Diego Uribe
The text was updated successfully, but these errors were encountered: