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

a question about poiseuille flow #20

Open
zh-shen opened this issue Sep 17, 2023 · 19 comments
Open

a question about poiseuille flow #20

zh-shen opened this issue Sep 17, 2023 · 19 comments

Comments

@zh-shen
Copy link

zh-shen commented Sep 17, 2023

Dear Dr. Yang
I want to compare the simulated results with the analytical results for the plane poiseuille flow problem, but the simulated maximum velocity is far from the analytical one. the parameters and the code is shown as follow:
0
1
the simulated result is:
array([0. , 0.00529185, 0.01337433, 0.01914818, 0.02261291,
0.0237679 , 0.02261291, 0.01914818, 0.01337433, 0.00529183,
0. ], dtype=float32)
but the analytical maximum velocity should be 0.1
I see your paper mentioned the use of halfway bounce-back boundary conditions for the poiseuille flow, how to make it? could you please give to some suggestions?

@yjhp1016
Copy link
Owner

yjhp1016 commented Sep 17, 2023 via email

@zh-shen
Copy link
Author

zh-shen commented Sep 17, 2023

thanks for your quick reply! I think the result has reached equilibrium, you can see the screenshot
2

@zh-shen
Copy link
Author

zh-shen commented Sep 17, 2023

do i still run longer?

@yjhp1016
Copy link
Owner

yjhp1016 commented Sep 17, 2023 via email

@zh-shen
Copy link
Author

zh-shen commented Sep 18, 2023

To reduce the computing time, I reduced fy. and this is the code
code
the formular I used to calculate the max velovity is $u_{max}={gH^2\over 8\nu}$, then the analytical one is $u_{max}={1/610^{-6}410^2 \over 81/6} = 5*10^{-3}$.
and the simulated results are
results0
results1
the max velocity is stable for many time step, so i think the its reaches equilibrium. but the simulated one didn't match the analytical one. i don't know what the problem is

@yjhp1016
Copy link
Owner

yjhp1016 commented Sep 18, 2023 via email

@zh-shen
Copy link
Author

zh-shen commented Sep 18, 2023

:-)

@zh-shen
Copy link
Author

zh-shen commented Sep 19, 2023

hi,
i recalculated two case of poiseuille flow with your new code
the formular that i used to compute the max velocity is $u_{max}={fH^2\over 8 \rho \nu}$
the code of the first case is
code0
the simulated result is
result0
result1
you can see the max velocity is stable at 4.42e-4, but the analytical result is 5e-4

the second case is your example_poiseuille_flow.py, the code is
code1
the simulated result is
result2
result3
the simulated max velocity is still increase even i have simulated for 800000th step, and its value is up to 0.019685, but the analytical result should be about 0.016875. do you think the answer is acceptable? and did i make any mistake?
thank for your reply!

@yjhp1016
Copy link
Owner

yjhp1016 commented Sep 19, 2023 via email

@zh-shen
Copy link
Author

zh-shen commented Sep 19, 2023

but i get the same results evenif if write ti.init(default_ip=ti.i64,default_fp=ti.f64,arch=ti.cpu,kernel_profiler=False, print_ir=False) in the beginning of the code 😥

@yjhp1016
Copy link
Owner

yjhp1016 commented Sep 19, 2023 via email

@zh-shen
Copy link
Author

zh-shen commented Sep 19, 2023

😭

@yjhp1016
Copy link
Owner

yjhp1016 commented Sep 19, 2023 via email

@zh-shen
Copy link
Author

zh-shen commented Sep 19, 2023

i want to calculate the permeability of a porous medium, so i need to validate the code first

@zh-shen
Copy link
Author

zh-shen commented Sep 20, 2023

we measure the permeability of a porous medium in the expriment is 0.4mD, at present, we can't get satisfying simulation results from your code. I don't want to deep into the LBM, i just want to use it as a tool to get a simulation result, do you have any recommendations on reliable LBM codes?
with best regards!

@yjhp1016
Copy link
Owner

yjhp1016 commented Sep 20, 2023 via email

@zh-shen
Copy link
Author

zh-shen commented Sep 20, 2023

thanks for your advice 😄

@yjhp1016
Copy link
Owner

yjhp1016 commented Sep 20, 2023 via email

@zh-shen
Copy link
Author

zh-shen commented Sep 20, 2023

ok~

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