-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[example] Add example "laplace equation" #6302
Conversation
✅ Deploy Preview for docsite-preview ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!!
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Thanks! Please use Taichi's builtin utilities instead of reinventing the wheels~ |
rotateMatrix = ti.Matrix( | ||
[[ | ||
math.cos(vortexes[i].q * dt * 40 * _frame), | ||
-math.sin(vortexes[i].q * dt * 40 * _frame) | ||
], | ||
[ | ||
math.sin(vortexes[i].q * dt * 40 * _frame), | ||
math.cos(vortexes[i].q * dt * 40 * _frame) | ||
]]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your advice! But this function is not in taichi-scope, taichi function can't be used. This function will call GUI API, so it can't be moved to taichi-scope. Is there any other way?
Co-authored-by: Zhao Liang <mathzhaoliang@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This is a 2D-Simulation of fundamental solutions of Laplace equation
moer details on https://forum.taichi-lang.cn/t/topic/2879