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 lbm_ solver_ 3d.py #18

Open
Vivia93 opened this issue Aug 26, 2023 · 9 comments
Open

A question about lbm_ solver_ 3d.py #18

Vivia93 opened this issue Aug 26, 2023 · 9 comments

Comments

@Vivia93
Copy link

Vivia93 commented Aug 26, 2023

Hello,

When I run lbm_ solver_3d.py,why only output the first step and not the subsequent steps ?
)_(ZR_4{@P6(L3NV@04I%1M

Also, may I ask what is the difference between lbm_ solver_ 3d.py file and LBM_3D_SinglePhase_Solver.py file?

@yjhp1016
Copy link
Owner

yjhp1016 commented Aug 26, 2023 via email

@Vivia93
Copy link
Author

Vivia93 commented Nov 2, 2023 via email

@yjhp1016
Copy link
Owner

yjhp1016 commented Nov 2, 2023

杨教授您好, 我在进行单相流模拟的时候遇到了一点问题,我将自己CT扫描得到的几何模型代入代码,几何模型尺寸为200x100x100,但是输出的图像貌似不对,您可以帮忙看一下是哪里出了问题吗? 输出的图像: 叶落何翩翩 @.***  

------------------ 原始邮件 ------------------ 发件人: "yjhp1016/taichi_LBM3D" @.>; 发送时间: 2023年8月26日(星期六) 晚上10:27 @.>; @.@.>; 主题: Re: [yjhp1016/taichi_LBM3D] A question about lbm_ solver_ 3d.py (Issue #18) Hi, For the first question, in the snapshot you shared with me, I can see the code is printing the result every 1000 time steps? For the second question, lbm_solver_3d.py was old code to do single phase simulation, you can ignor it. LBM_3D_SinglePhase_Solver.py is a script with all single phase kernels (wrapped into classes). You don't need to study this script if you just need to use LBM to do simulation. If you want to make a simulation, you only need to write ~20 lines of code. all you need to do is open example_cavity.py, make a copy and rename it, change parameters inside (geometry file name, sizes, fluid property etc). Then run it. We have a documentation with instructions, you can have a look: https://yjhp1016.github.io/taichi_LBM3D/ On Sat, 26 Aug 2023 at 10:35, Vivia93 @.> wrote: > Hello, > > When I run lbm_ solver_3d.py,why only output the first step and not the > subsequent steps ? > [image: @.@.%1M] > <https://user-images.githubusercontent.com/130535694/263455946-e0661574-dd3f-4c11-ad18-1c0e6d80a8f3.png> > > Also, may I ask what is the difference between lbm_ solver_ 3d.py file and > LBM_3D_SinglePhase_Solver.py file? > > — > Reply to this email directly, view it on GitHub > <#18>, or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AJEDKQB4SKPBSNEXPRYJXKTXXG7PZANCNFSM6AAAAAA37NW6E4> > . > You are receiving this because you are subscribed to this thread.Message > ID: @.> > — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

我看不到你的图片,你能再发送一次吗,有可能是你的输入geometry 文件的顺序不太对,如果一个图片转换成0和1, 每张图是X,Y 方向,输入的文件里面的0 和1 的顺序应该是
for k in range(nz):
for j in range(ny):
for i in range(nx):

这个顺序的

@Vivia93
Copy link
Author

Vivia93 commented Nov 9, 2023

W2BVM5~2S1S {F7QLG)$R 3

@2{LWFA7AC_54W35XM}$A`G

0(5`DH_5J3AW {01GTE7@T

@yjhp1016
Copy link
Owner

yjhp1016 commented Nov 9, 2023 via email

@Vivia93
Copy link
Author

Vivia93 commented Nov 20, 2023

杨教授,
您好。我看vtk文件输出的可视化只有密度和速度的变化,请问单相流该如何去看流体流动过程呢?

@yjhp1016
Copy link
Owner

yjhp1016 commented Nov 20, 2023 via email

@Vivia93
Copy link
Author

Vivia93 commented Dec 6, 2023

杨教授,您好!我运行了单相流的程序,为什么我运行到24步以后,突然就不行了呢?运行过程中也没有报错。
VTV{IZ6SRMLBR)FPN$J7Z5G
GQX3ZC($07TQ@Q(A5HK~21E

@yjhp1016
Copy link
Owner

yjhp1016 commented Dec 6, 2023 via email

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