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

Two phases flow in fractured porous media. #14

Open
lixuekai2001 opened this issue Jun 19, 2023 · 11 comments
Open

Two phases flow in fractured porous media. #14

lixuekai2001 opened this issue Jun 19, 2023 · 11 comments

Comments

@lixuekai2001
Copy link

Hi there, I am working on the two phases flow simulation in a fractured porous media (coal sample with cleat network). Would you please advise if I can use my own 3D CT scanned model? Alternatively without the CT scan geometry, how to create a counterpart of a digital twin of porous media (with or without fractures) In Taichi graphic system?

@yjhp1016
Copy link
Owner

Hi, yes, you can use your own image, you first need to convert your 3D CT image into a text based data file (0=void, 1=solid), with
for z in 1..nz:
for y in 1.. ny:
for x in 1..nx:
Also you need to build a initial phase distribution file (also text based with same ordring from geometry file above, -1 and 1 represent two phases respectively)
in the cdoe change file names to your input geometry file and phase file:
solid_np, phase_np = init_geo('./img_ftb131.txt','./phase_ftb131.dat')

Also remember to update nx, ny, nz in the file.

We are refactoring this code by wrapping computing kernel into class, so the user can only write ~20 lines of code to build a 2phase simualtion. @xiongxin9000 is now in charge of this task, he might be able to help you a little bit more for your quesiton. if he got some free time.

Thanks for your interest

@hangqqq
Copy link

hangqqq commented Sep 21, 2023

Hi,I am currently conducting single-phase flow simulation. Why import the rock skeleton simulation, and after using Paraview for visualization, the displayed rock skeleton differs significantly from the porosity calculated in the txt document?
114

@yjhp1016
Copy link
Owner

yjhp1016 commented Sep 21, 2023 via email

@hangqqq
Copy link

hangqqq commented Sep 21, 2023

Hi,Almost all values in the txt document are 255, but after simulation, the proportion of displayed boundaries is much smaller than that shown in the txt document.

@yjhp1016
Copy link
Owner

yjhp1016 commented Sep 21, 2023 via email

@hangqqq
Copy link

hangqqq commented Sep 21, 2023

Hi,The proportion of 0 in the document is only around 10, and it seems that there are many more displayed contour?And contour is displayed by a combination of 0 and 1?
1695286084408
3

@yjhp1016
Copy link
Owner

yjhp1016 commented Sep 21, 2023 via email

@hangqqq
Copy link

hangqqq commented Sep 22, 2023

Hi,the proportion of 0 is only 16%, while the proportion of 1 is 84%. In the contour of Paraview, 1 is displayed as a skeleton, but the skeleton shown in the figure should not have 84%?

@yjhp1016
Copy link
Owner

yjhp1016 commented Sep 22, 2023 via email

@RiverNight666
Copy link

Hello, could you tell me how to view the two-phase displacement process (such as wetting phase displacement of non-wetting phase) in the vti file generated by lbm_solver_3d_2phase_sparse file in 2phase through paraview?

@yjhp1016
Copy link
Owner

yjhp1016 commented Mar 20, 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