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

Problem when using Wright2005O #99

Closed Peter1511ogluigi closed 2 years ago

Peter1511ogluigi commented 2 years ago

Hello

I am trying to recreate the results from the article [Uploading 1-s2.0-S0142727X08001057-main (1)(1).pdf…](). I have acquired, almost, satisfactory results when using "htcReactionsEarth93" and "Gupta1989D". The next step, would be to run the simulation with "htcReactionsDPLR" which end up giving very satisfactory results for the mass fraction of N,O,O2,N2 and NO, but not the for NO+ and e- . I have tried to use different collision data models, but get the same problem each time.

My problem is that when I try to use "Wright2005O" my program crashes before it has even begun. my error is

Screenshot from 2022-03-23 09-43-37

and I have written the following in the transportProperties Screenshot from 2022-03-23 09-40-14

Is there something extra that needs to be added when calling "Wright2005O" compared to the other models?

I hope someone can help me

/Peter

vincentcasseau commented 2 years ago

Hi Peter, Could you please email me your test case and the link to the article (your upload didn't work). Thanks

Peter1511ogluigi commented 2 years ago

Hi Peter, Could you please email me your test case and the link to the article (your upload didn't work). Thanks

Hi Vincent, Have you received my email?

vincentcasseau commented 2 years ago

No, I didn't.

Peter1511ogluigi commented 2 years ago

No, I didn't.

then I have send to the wrong email -_- Should I just send it to the mail given on https://vincentcasseau.github.io/contact/ ?

vincentcasseau commented 2 years ago

Yes, that's the one.

Peter1511ogluigi commented 1 year ago

Hi Vincent

here is the case DPLR_Test.zip https://drive.google.com/file/d/1MvLolmop4rzhwLKAZ86auR0mxMqEDyRp/view?usp=drive_web and the article can be found on

https://www.sciencedirect.com/science/article/pii/S0142727X08001057

Den tor. 24. mar. 2022 kl. 09.41 skrev Vince @.***>:

Hi Peter, Could you please email me your test case and the link to the article (your upload didn't work). Thanks

— Reply to this email directly, view it on GitHub https://github.com/vincentcasseau/hyStrath/issues/99#issuecomment-1077373382, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJCGOH6F4YXC6KBR7CH6XTVBQTBZANCNFSM5RNJQCUA . You are receiving this because you authored the thread.Message ID: @.***>

Peter1511ogluigi commented 1 year ago

Hey Vincent

Have you been able to take a look at the case? (I hope my zip file and link to article works properly :D)

/Peter

Den tor. 24. mar. 2022 kl. 10.10 skrev Peter Bæk @.***>:

Hi Vincent

here is the case DPLR_Test.zip https://drive.google.com/file/d/1MvLolmop4rzhwLKAZ86auR0mxMqEDyRp/view?usp=drive_web and the article can be found on

https://www.sciencedirect.com/science/article/pii/S0142727X08001057

Den tor. 24. mar. 2022 kl. 09.41 skrev Vince @.***>:

Hi Peter, Could you please email me your test case and the link to the article (your upload didn't work). Thanks

— Reply to this email directly, view it on GitHub https://github.com/vincentcasseau/hyStrath/issues/99#issuecomment-1077373382, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJCGOH6F4YXC6KBR7CH6XTVBQTBZANCNFSM5RNJQCUA . You are receiving this because you authored the thread.Message ID: @.***>

vincentcasseau commented 1 year ago

Hi Peter, I downloaded it and ran a couple of iterations. It worked. So what is the problem? Thanks

Peter1511ogluigi commented 1 year ago

Hi Vincent The problem I have faced is that when I run the program I do not get to do any iterations due to the program crashing at the beginning. Since it works on your pc I believe that I might have some issue on my own. I have upgraded from ubuntu 16.04 to 20.04 and is trying to install the program once more. My problem now is that I cannot seem to downgrade to proper gcc and g++ versions. When I run “sudo apt-get install g++-7 gcc-7” I get a response that “package has no installation candidate”. Have you tried getting this error before, and if so, how did you solve it?

Best Peter

Den tir. 11. okt. 2022 kl. 11.38 skrev Vince @.***>:

Hi Peter, I downloaded it and ran a couple of iterations. It worked. So what is the problem? Thanks

— Reply to this email directly, view it on GitHub https://github.com/vincentcasseau/hyStrath/issues/99#issuecomment-1274412391, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJCGOEK7CPVXO6YFXB2XC3WCUYRBANCNFSM5RNJQCUA . You are receiving this because you authored the thread.Message ID: @.***>

vincentcasseau commented 1 year ago

Hi Peter,

sudo gedit /etc/apt/sources.list

Add at the end

 deb http://dk.archive.ubuntu.com/ubuntu/ bionic main universe

Then in a terminal window

sudo apt update
sudo apt-get install gcc-7 g++-7 -y

Let me know if it works, if so I will add these lines to the website. Thanks


Adapted from: https://gist.github.com/zuyu/7d5682a5c75282c596449758d21db5ed?permalink_comment_id=3556522

Peter1511ogluigi commented 1 year ago

Hi Vincent

When doing this my terminal says:

Some packages could not be installed.this may mean that you have requested an impossible situation or if you are using the unstable distribution that some requires packages have not yet been created or been moved out of incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: Libc6-dev : Breaks: libgcc-7-dev (< 7.5.0-6~) but 7.3.0-16ubuntu3 is to be installed E: unable to correct problems, you have held broken packages.

torsdag den 17. november 2022 skrev Vince @.***>:

Hi Peter,

sudo gedit /etc/apt/sources.list

Add at the end

deb http://dk.archive.ubuntu.com/ubuntu/ bionic main universe

Then in a terminal window

sudo apt update sudo apt-get install gcc-7 g++-7 -y

Let me know if it works, if so I will add these lines to the website. Thanks

Adapted from: https://gist.github.com/zuyu/7d5682a5c75282c596449758d21db5e d?permalink_comment_id=3556522

— Reply to this email directly, view it on GitHub https://github.com/hystrath/hyStrath/issues/99#issuecomment-1318602953, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJCGODRHERHCG7H64KHFZDWIYUHRANCNFSM5RNJQCUA . You are receiving this because you authored the thread.Message ID: @.***>

vincentcasseau commented 1 year ago

Hi Peter, It used to be possible 9 months ago or so, I bet something changed. Have you been Googling this issue much?

Peter1511ogluigi commented 1 year ago

Hi Vincent

I have just realized that I have somehow installed the wrong version of Ubuntu (22.04 instead of 20.04) which explains why your procedure did not work. I have tried once again and now it works with the change in the sources.list. The part in installation on hystrath webpage where I type:

sudo apt-get install g++-7 gcc-7

does still not work, so I would highly recommend that you update to what you have explained to me with:

sudo gedit /etc/apt/sources.list

and adding the line deb http://dk.archive.ubuntu.com/ubuntu/ bionic main universe

followed by sudo apt update sudo apt-get install gcc-7 g++-7 -y

Thanks for the help :D

/Peter

Den tir. 22. nov. 2022 kl. 16.52 skrev Vince @.***>:

Hi Peter, It used to be possible 9 months ago or so, I bet something changed. Have you been Googling this issue much?

— Reply to this email directly, view it on GitHub https://github.com/hystrath/hyStrath/issues/99#issuecomment-1323888421, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJCGOAJS5BXAAE25Z6EKQDWJTT2RANCNFSM5RNJQCUA . You are receiving this because you authored the thread.Message ID: @.***>

Peter1511ogluigi commented 1 year ago

Hey Again

Just a quick question. When I now follow the installation guide, I reach a problem at point 5. At point 5, I have to change directory to $WM_PROJECT_DIR which somehow is placed in $HOME. Now, since I have placed the OpenFOAM version in the same location $HOME, I cannot use the ./Allwmake command I get the output bash: ./Allwmake: No such file or directory

Have you faced this problem of having both the

$WM_PROJECT_DIR

and

$WM_PROJECT_USER_DIR

in wrong location?

/Peter

Den ons. 7. dec. 2022 kl. 13.20 skrev Peter Bæk @.***>:

Hi Vincent

I have just realized that I have somehow installed the wrong version of Ubuntu (22.04 instead of 20.04) which explains why your procedure did not work. I have tried once again and now it works with the change in the sources.list. The part in installation on hystrath webpage where I type:

sudo apt-get install g++-7 gcc-7

does still not work, so I would highly recommend that you update to what you have explained to me with:

sudo gedit /etc/apt/sources.list

and adding the line deb http://dk.archive.ubuntu.com/ubuntu/ bionic main universe

followed by sudo apt update sudo apt-get install gcc-7 g++-7 -y

Thanks for the help :D

/Peter

Den tir. 22. nov. 2022 kl. 16.52 skrev Vince @.***>:

Hi Peter, It used to be possible 9 months ago or so, I bet something changed. Have you been Googling this issue much?

— Reply to this email directly, view it on GitHub https://github.com/hystrath/hyStrath/issues/99#issuecomment-1323888421, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJCGOAJS5BXAAE25Z6EKQDWJTT2RANCNFSM5RNJQCUA . You are receiving this because you authored the thread.Message ID: @.***>

vincentcasseau commented 1 year ago

Hi Peter, If you change the location of the OpenFOAM directory (original: ~/OpenFOAM/OpenFOAM-v1706), then you need to tune the variables in ~/OpenFOAM/OpenFOAM-v1706/etc/bashrc and resource ~/.bashrc. Please make sure OpenFOAM is correctly installed before installing hyStrath. Thanks