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

output the simulation results cannot be visualized #22

Open
wjycau opened this issue Dec 15, 2023 · 13 comments
Open

output the simulation results cannot be visualized #22

wjycau opened this issue Dec 15, 2023 · 13 comments

Comments

@wjycau
Copy link

wjycau commented Dec 15, 2023

Thank you very much for your contribution. I encountered an issue while using the program. I noticed that when using the gridToVTK function to output the simulation results, the simulated velocity cannot be visualized in ParaView, while solid and rho have no problems, as shown in the figure below. I hope to receive your assistance.
82efc61ce2701e8432760c357a464f3
b9662d0a067461d38d6817be8c7b980

@yjhp1016
Copy link
Owner

yjhp1016 commented Dec 15, 2023 via email

@wjycau
Copy link
Author

wjycau commented Dec 16, 2023

我无法重现此错误,您能否提供有关 模拟设置? wang @.> 于 2023年12月15日周五 下午2:32写道:
...
Thank you very much for your contribution. I encountered an issue while using the program. I noticed that when using the gridToVTK function to output the simulation results, the simulated velocity cannot be visualized in ParaView, while solid and rho have no problems, as shown in the figure below. I hope to receive your assistance. 82efc61ce2701e8432760c357a464f3.png (view on web) https://github.com/yjhp1016/taichi_LBM3D/assets/151709787/bd486523-ae9d-4f5d-8056-bd12455dafd4 b9662d0a067461d38d6817be8c7b980.png (view on web) <https://github.com/yjhp1016/taichi_LBM
f6b1f5fb569bd618992f8eadf8f553e
3D/assets/151709787/e6df78da-3a7c-4b1f-b079-307a02955877> — Reply to this email directly, view it on GitHub <#22>, or unsubscribe <https://github.com/notifications/unsubsc
e35a4a8f9012271076f5af9f3e37a52
ribe-auth/AJEDKQGQ2YRAT3T4DBS3L3DYJRNPXAVCNFSM6AAAAABAWRG3RGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2DGOBTGQZDQMI> . You are receiving this because you are subscribed to this thread.Message ID: @.
>

I have not modified any of your code and ran the example-porous-medium module directly. Following the original code, I set to output a vtk file every 2000 time steps. In this file, I can visualize solid and rho, but I cannot visualize velocity. The specific code is as follows:
![e35a4a8f9012271076f5af9f3e37a52](https://github.com/yjhp1016/taichi
f6b1f5fb569bd618992f8eadf8f553e
_LBM3D/assets/151709787/275ba16e-5680-4482-a518-314c745e5102)

@yjhp1016
Copy link
Owner

Sorry I'm running the script in repo, example_porous_medium.py I got everything fine:
image
I can't reproduce the error you mentioned... what Taichi version and pyevtk are you using? If you try running this script on another machine, do you get same problem?

what backend are you using? CPU or GPU/CUDA?

@wjycau
Copy link
Author

wjycau commented Dec 17, 2023

Oh, sorry. Because I usually like to use the volume in Paraview to visualize the distribution of the flow field, so I also used volume in this case. I want to know if your code can be used to visualize the flow field distribution with volume.

@yjhp1016
Copy link
Owner

yjhp1016 commented Dec 17, 2023 via email

@wjycau
Copy link
Author

wjycau commented Dec 19, 2023

thanks

@wjycau
Copy link
Author

wjycau commented Dec 25, 2023

Hello, Professor Yang. I have another question to ask you. When calculating permeability, I applied the following settings: imposing periodic boundary conditions and pressure gradient, with a density of 1 on the left and 0.99 at the outlet. I calculated the permeability using the formula: actual permeability = calculated value * resolution * resolution. However, I obtained a very high permeability. Could you please advise on why this might be happening? I appreciate your guidance
image
image

@yjhp1016
Copy link
Owner

yjhp1016 commented Dec 25, 2023 via email

@wjycau
Copy link
Author

wjycau commented Dec 26, 2023

I used your file, the 131131131 image as mentioned in your paper(img_ftb131), with a permeability of 789md. However, my calculated values are as follows, and they even diverge. When converting the calculated values to actual values, according to the correct conversion relationship (actual permeability = calculated value * resolution * resolution, with a resolution of 7.5 micrometers), the actual permeability is less than 1 square micrometer. In this case, the calculated values are very high. Do I need to make modifications to the original file when using your data, such as changing 255 to 1?
image

@yjhp1016
Copy link
Owner

yjhp1016 commented Dec 26, 2023 via email

@wjycau
Copy link
Author

wjycau commented Jan 1, 2024

Hello Professor Yang,

I'm not quite sure how to mirror the geometry. After switching to volume force driving, the performance has improved a lot, maintaining roughly the same order of magnitude. However, I still haven't been able to perfectly replicate the data in the literature (789md). Additionally, I'm not entirely clear on the meaning of the following line of code and why f/2 is used.
1bbea6510704c4eb9709bf065f9bfff

I've also included my code below, and I even attempted to calculate the error, but it seems to be incorrect.
85e6b9f9fc6af36599df91eba09725b
9b75bcb260aeddf0bf1af30fea0dc1e

@yjhp1016
Copy link
Owner

yjhp1016 commented Jan 1, 2024 via email

@wjycau
Copy link
Author

wjycau commented Jan 1, 2024

Thanks for your help

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