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

两相驱替 #25

Open
RiverNight666 opened this issue Mar 22, 2024 · 23 comments
Open

两相驱替 #25

RiverNight666 opened this issue Mar 22, 2024 · 23 comments

Comments

@RiverNight666
Copy link

老师,您好。我是一个刚接触LBM的小白。我在使用2Phase的过程中遇到了一些问题。
我不明白为什么我用的默认的例子它的两相不进行驱替。图片如下
图片

@yjhp1016
Copy link
Owner

yjhp1016 commented Mar 22, 2024 via email

@RiverNight666
Copy link
Author

感谢老师,我通过调整fx、capa、时间步长,模型已经能够正常运行。但是遇到了新的问题。图中phase的范围是-1-1.3,我猜测它是非润湿相到润湿相的一个范围。为什么中间驱替的颜色是白色的?它代表的是相的混合吗?如果我只想让蓝色驱替红色,我应该怎么做?感谢老师的辛勤解答,图片如下:
图片

@yjhp1016
Copy link
Owner

yjhp1016 commented Mar 23, 2024 via email

@RiverNight666
Copy link
Author

老师,你好,非常感谢您的帮助。老师请问如何根据生成的数据如何获得毛管力曲线呢?

@RiverNight666
Copy link
Author

老师,你好,请问代码可以导出压力场呢?哪个参数代表压力

@RiverNight666
Copy link
Author

@ti.func
def Compute_Pressure(i, j, k):
pressure = 0.0
for s in range(19):
pressure += w[s] * e_f[s] * (rho[i j, k] + rho_r[i, j, k] + rho_b[i, j, k])
return pressure

@ti.kernel
def Update_Pressure():
for i, j, k in rho:
if (i < nx and j < ny and k < nz and solid[i, j, k] == 0):
pressure[i, j, k] = Compute_Pressure(i, j, k)
我是通过这些代码生成的压力场

@yjhp1016
Copy link
Owner

yjhp1016 commented Apr 12, 2024 via email

@RiverNight666
Copy link
Author

老师你好,若一次模拟驱替所需要的时间太久,请问在下一次使用时,代码有继续执行上一次任务的指令吗?

@yjhp1016
Copy link
Owner

yjhp1016 commented May 10, 2024 via email

@hangqqq
Copy link

hangqqq commented May 28, 2024

Hi,Dr.Yang
I am currently employing static relative permeability measurement techniques to simulate factors affecting two-phase flow. How should I modify the boundary conditions in my simulation program?

@yjhp1016
Copy link
Owner

yjhp1016 commented May 28, 2024 via email

@hangqqq
Copy link

hangqqq commented May 28, 2024 via email

@yjhp1016
Copy link
Owner

yjhp1016 commented May 28, 2024 via email

@hangqqq
Copy link

hangqqq commented Jul 3, 2024

Hi,This left boundary is where the two phases meet, so where is the right boundary then?"
1
2

@yjhp1016
Copy link
Owner

yjhp1016 commented Jul 3, 2024 via email

@Clifford-Wang
Copy link

老师你好,我想请问这个库是否可以实现多孔介质的自发渗吸模拟,我想关注多孔介质由于毛管力的作用下自己从底部吸水的过程,不知道这样是不是可以实现

@yjhp1016
Copy link
Owner

yjhp1016 commented Nov 5, 2024 via email

@Clifford-Wang
Copy link

可以,调节好合适的接触角和表面张力是可以实现的,我以前做过,但是会特别慢,毕竟表面张力很小 Clifford @.> 于 2024年11月5日周二 上午6:38写道:

老师你好,我想请问这个库是否可以实现多孔介质的自发渗吸模拟,我想关注多孔介质由于毛管力的作用下自己从底部吸水的过程,不知道这样是不是可以实现 — Reply to this email directly, view it on GitHub <#25 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJEDKQAT43AJPY3TVX7YVXLZ7BRUVAVCNFSM6AAAAABFCRL5KGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJWGM2TMMZUGE . You are receiving this because you commented.Message ID: @.
>

非常感谢您的耐心解答,我还有i一个问题在实际操作中我是不是需要通过更改接触角和表面张力,将流体流入方向改为z轴方向,这样呢。如果我向考虑重力的影响,是不是该设置z方向body force为-呢?我不知道我的理解是否正确

@yjhp1016
Copy link
Owner

yjhp1016 commented Nov 5, 2024 via email

@Clifford-Wang
Copy link

我做的是多孔介质中岩石中的流动,尺度在微米级别,是毛细管主导 的情况,所以我就把重力省略了,不过如果两者相当,就需要设置重力方向的body force

On Tue, 5 Nov 2024 at 07:58, Clifford @.***> wrote: 可以,调节好合适的接触角和表面张力是可以实现的,我以前做过,但是会特别慢,毕竟表面张力很小 Clifford @. > 于 2024年11月5日周二 上午6:38写道: … <#m_-8631767726279458282_> 老师你好,我想请问这个库是否可以实现多孔介质的自发渗吸模拟,我想关注多孔介质由于毛管力的作用下自己从底部吸水的过程,不知道这样是不是可以实现 — Reply to this email directly, view it on GitHub <#25 (comment) <#25 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJEDKQAT43AJPY3TVX7YVXLZ7BRUVAVCNFSM6AAAAABFCRL5KGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJWGM2TMMZUGE https://github.com/notifications/unsubscribe-auth/AJEDKQAT43AJPY3TVX7YVXLZ7BRUVAVCNFSM6AAAAABFCRL5KGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJWGM2TMMZUGE . You are receiving this because you commented.Message ID: @.> 非常感谢您的耐心解答,我还有i一个问题在实际操作中我是不是需要通过更改接触角和表面张力,将流体流入方向改为z轴方向,这样呢。如果我向考虑重力的影响,是不是该设置z方向body force为-呢?我不知道我的理解是否正确 — Reply to this email directly, view it on GitHub <#25 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJEDKQCKHPO64GHKAZ3TPN3Z7B3DVAVCNFSM6AAAAABFCRL5KGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJWGQ3TKMJWGI . You are receiving this because you commented.Message ID: @.
感谢您的帮助,我在更改了入流方向和body force后运行一段时间后发现这个问题,我希望流体在毛管力的作用下从下往上运动,但是在x轴方向还有流体的运动,我认为这可能是边界条件设置错误造成的,但我并不知道如何去修改他,希望得到您的帮助

@yjhp1016
Copy link
Owner

yjhp1016 commented Nov 5, 2024 via email

@Clifford-Wang
Copy link

Dear Professor Yang,
I have meticulously examined the contents of this library and utilized it to simulate the two - phase displacement within porous media. During the simulation process, I observed the emergence of bubbles in the interior regions. Specifically, during the gas - driven water - displacement phase, there exist isolated bubbles that are not located on any of the boundaries. I am uncertain whether this phenomenon is consistent with the expected behavior, and thus, I am reaching out to seek your esteemed guidance and insights.
Thank you.

@yjhp1016
Copy link
Owner

yjhp1016 commented Jan 10, 2025 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

4 participants