-
Notifications
You must be signed in to change notification settings - Fork 16
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
cannot run the demo successfully #2
Comments
Ah, 2 is probably related to the recent quant API update - @strongoier could you help with this? Many thanks! |
Hi @xiangzi1992. This repo was last updated 1 year ago, and many APIs of Taichi have been changed since then. If you want to run the demo immediately, you can use some version earlier than v0.7.20. I will update this repo to match the latest version of Taichi as soon as possible. |
It works. Thanks. I am confused about the pressure projection when the velocity is stored in the grid center (eulerian_fluid/solver.py).
My confusions are:
|
I don't think there are these lines of code in this repo: https://github.com/taichi-dev/quantaichi/search?q=avg_v |
I am sorry, I didn't express my problem clearly. Here is the original code. self.mgpcg.reset() if enforce_zero_average: compute_div_and_init_pressure_solver does: apply_pressure_with_adjustments does: I did the projection in this way. After the projection, I recalculate the divergence, but the value is not approximate to zero. I indeed took the boundary into consideration. |
some errors when I run the Eulerian fluid demo.
KeyError: 'Unrecognized keyword argument(s) for ti.init: use_unified_memory' ---> delete this argument
cft = ti.quant.fixed(frac=21, signed=True, range=2**5) TypeError: fixed() got an unexpected keyword argument 'range' ----> delete range argument
AttributeError: 'MatrixField' object has no attribute 'get_field_members'
The text was updated successfully, but these errors were encountered: