Skip to content
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

chapter shan-chen code issue #8

Open
CFDxx opened this issue Sep 15, 2022 · 3 comments
Open

chapter shan-chen code issue #8

CFDxx opened this issue Sep 15, 2022 · 3 comments

Comments

@CFDxx
Copy link

CFDxx commented Sep 15, 2022

I’m reading, learning, and rewriting your code in chapter 9 Shan-Chen model code. Since your code is one-dimensional, I want post-processing with paraview in two-dimensional, and when I rewrite your code into two dimensional it seems to give me diverge results based on the contour of density. Could you please give me any suggestions because I am really struggling at the moment? Thanks in advance.

@timmkrueger
Copy link

Hello! I cannot follow - the example code is actually two-dimensional. Do you mean you are trying to make it three-dimensional?

@CFDxx
Copy link
Author

CFDxx commented Oct 11, 2022

Thank you for your reply. I managed to figure it out. By the way, when G =-4.7 the resutls diffuse with smaller density ration, while only certain density ration is stable? Could you please give me any suggestion about setting G and denisty ratio?

@timmkrueger
Copy link

I'm happy to hear that.
When G decreases (by magnitude), the interface gets more diffuse and the resulting density ratio also decreases. The disadvantage of the original SC method is that interface width and density ratio cannot be controlled independently since there is only one free parameter (G). You can either run a few simulations for different G values and see if you are happy with what you can achieve, or you look at the literature to find out about improvements in the SC method, such as multi-range SC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants