hystrath / hyStrath

Hypersonic / Rarefied gas dynamics code developments (GPL-3.0)
https://hystrath.github.io/
GNU General Public License v3.0
225 stars 109 forks source link

Issue with installation in wsl #129

Closed PrikMushi closed 1 year ago

PrikMushi commented 1 year ago

Hi

I have OpenFoam v2012 installed in Ubuntu 22.04.2 LTS. I am not aware of any installation instruction specifically for wsl, so I followed as per the instrutions here https://hystrath.github.io/installation/, after installing OpenFoam.

I get this error when I try to install

----- INSTALLATION ----- 1 - CFD module 2 - DSMC module 3 - Hybrid PIC-DSMC module 4 - All modules

----- SYNCHRONISATION ----- 11 - CFD module 12 - DSMC module 13 - Hybrid PIC-DSMC module 14 - All modules

Enter choice: 2 [>>>>>>>>>>>>>>>>>>>>] 100% installed DSMC module FAIL: check logInstall-DSMC

Any suggestions to fix the issue?

timteichmann commented 1 year ago

Hi, As stated in the instructions

  1. In Ubuntu 20.04 LTS (22.04 LTS isn’t supported yet), downgrade gcc and g++ to version 7

Naturally, the same applies to WSL Ubuntu, so you might try with version 20.04. Also please note, that this is built on and compatible only with OpenFOAM v1706 not v2012. Regarding the installation on Ubuntu 20.04 you might also want to check:

PrikMushi commented 1 year ago

Hi

Thank you for your reply.

What is the difference between the hyStrath method and the method mentioned here? https://github.com/MicroNanoFlows/OpenFOAM-2.4.0-MNF/blob/master/doc/MicroNanoFlows/MNF_Repository_Install.pdf

Also, I still get the same error.

I made a fresh installation of Ubuntu 20.04 LTS, then downgraded gcc and g++ version to 7. After that OpenFoam v1706 was installed, and it works. Then, I cloned the hyStrath Github repository. But when I try to install using the ./install.sh NUMPROCS 2>/dev/null command, I get this error

----- INSTALLATION ----- 1 - CFD module 2 - DSMC module 3 - Hybrid PIC-DSMC module 4 - All modules

----- SYNCHRONISATION ----- 11 - CFD module 12 - DSMC module 13 - Hybrid PIC-DSMC module 14 - All modules

Enter choice: 2 [>>>>>>>>>>>>>>>>>>>>] 100% installed DSMC module FAIL: check logInstall-DSMC

Did I miss out something?

timteichmann commented 1 year ago

Hi, Just to make sure: if you say you ran ./install.sh NUMPROCS 2>/dev/null, you mean you ran the command but with a number instead of NUMPROCS? And what is the content of the log file mentioned after the FAIL?

PrikMushi commented 1 year ago

Okay, I could install it now. Thank you!