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 simple error. In addition, how to calculate the absolutely permeability of the porous medium? #15

Open
xiangWu-WW opened this issue Jul 5, 2023 · 20 comments

Comments

@xiangWu-WW
Copy link

code
@xiangWu-WW
Copy link
Author

Another one,why there are some negative numbers in the velosity,every direction has negative numbers. Thanks for your code and reply!

@yjhp1016
Copy link
Owner

yjhp1016 commented Jul 5, 2023 via email

@xiangWu-WW
Copy link
Author

Thanks for your timely reply. As you told, i calculate the absolutely permeability of a Plane model which width is 10px. Theoretically,the result is 1010(pixel resolution)/12=8.33 um2.(Assuming resolution is 1um/px).But the result is 0.002573, i wonder how to contact the two different results. Further more, as you can see, in the Python printed,the velocity has negative value,but in the simulating result it is not clear, what does the negative values mean?
PlaneModel
codes20230706124853
Uploading PlaneModel.png…
result1
result2

@yjhp1016
Copy link
Owner

yjhp1016 commented Jul 6, 2023 via email

@xiangWu-WW
Copy link
Author

Hi Dr.Yang

Thank for your response!
The BC is:
lb3d.set_bc_rho_z1(0.9)
lb3d.set_bc_rho_z0(1.0)

Then i change the formula to calculate the K(K = q* u(viscosity)/(dp/Lx)):
vel = self.v.to_numpy()
K = np.sum(vel[:,:,:,2])/(self.nxself.nyself.nz)self.niu/((3/8(1-0.9))/self.nz)#rho_in=1,rho_out=0.9,P=3/8*rho
The result converge at 1.122(Platemodel, width=10px)。What is the unit of the result, 1 Darcy? I wonder is there any problem in the formula.

Further more, where the rho has a berak in the begin and end:
slice1 1
slice2 0.960676

slice-2 0.93958
slice-1 0.9

Finally,as you mentioned,add body force to force the fluid,how to change the code,is it simplely change:
self.fx,self.fy,self.fz = 0.0e-6,0.0,0.0
i tried this,but the result hardly convergent.

Thanks!

@yjhp1016
Copy link
Owner

yjhp1016 commented Jul 6, 2023 via email

@xiangWu-WW
Copy link
Author

xiangWu-WW commented Jul 22, 2023

Hi Dr.Yang,

I set the body force as you told me.The model is a 128^3 cubic and there is a plate(Aperture = 20, assert the pixel resolution is 1um/px ) in the model.Theoretically,the absolutely permeability is 400/12=33.3um^2. The formula to calculate the K is q*u/f *resolution^2.
But the result is 1.69um^2, i wonder the q=Qsum/Vtotal or q = Qsum(Pore) / Vtotal(Pore), If it is the latter,the result will be 1.69/(20/128)=10.8um^2.
Additionaly, why the rho distribution is so disordered.

_020230722154949 2023-07-22_153703 20230722153629 2023-07-22_153649

@yjhp1016
Copy link
Owner

yjhp1016 commented Jul 22, 2023 via email

@hangqqq
Copy link

hangqqq commented Nov 27, 2023

I would like to ask how I should calculate the pressure gradient?

@xiangWu-WW
Copy link
Author

I would like to ask how I should calculate the pressure gradient?

ΔP = cs^2 * (Δρ).
ΔP represents the pressure difference.
c_s is the speed of sound, typically a constant in the LBM model. cs = 3^(1/2)/2
Δρ represents the density difference between the inlet and outlet.
∇P = (ΔP) / L
∇P represents the pressure gradient.
ΔP is the previously calculated pressure difference.

@hangqqq
Copy link

hangqqq commented Dec 5, 2023

The pressure gradient is only related to density and length. Doesn't it have anything to do with the stamina or initial speed I set?
LNHFU2DRW_K056AL(({XLFD
HH6J%C2Y2CWJ{ 6A( 1U}WI

@yjhp1016
Copy link
Owner

yjhp1016 commented Dec 5, 2023 via email

@hangqqq
Copy link

hangqqq commented Jan 11, 2024

image image Why is there such a sudden change in value?

@yjhp1016
Copy link
Owner

yjhp1016 commented Jan 11, 2024 via email

@hangqqq
Copy link

hangqqq commented May 17, 2024

Hi Dr.Yang,"I am using the LBM2phase program and I would like to know how to calculate the relative permeability of two phases?"

@yjhp1016
Copy link
Owner

yjhp1016 commented May 17, 2024 via email

@hangqqq
Copy link

hangqqq commented May 23, 2024

Hi Dr.Yang,
"I am using the LBM-3d-2phase program and giving different initial phase distributions with one initial invading phase occupying 10% and another occupying 25%. However, by the time I output after 800000 iterations, the invading phase occupies almost 90% in both cases. Is this normal?"

@yjhp1016
Copy link
Owner

yjhp1016 commented May 23, 2024 via email

@RiverNight666
Copy link

Dr. Yang, what should I do to adjust dx and dt to keep the simulation stable, because the model I first did the displacement was unstable at about 50% saturation.

@yjhp1016
Copy link
Owner

yjhp1016 commented Nov 11, 2024 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