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

add visualization for velocity fields #17

Merged
merged 2 commits into from
May 23, 2023

Conversation

hoehnp
Copy link

@hoehnp hoehnp commented Mar 2, 2023

first of all thank you @charxie for this amazing tool. For the visualization of fluid mechanics heat maps of flow velocities seem more intuitive to me. Therefore, I implemented heat maps for the components of the velocity and its magnitude. Since the velocities in the lid driven cavity flow are much smaller than 1, I also added a scaling factor in ScalarDistributionRenderer to avoid all values being rounded to 0. Would there be a better solution for this?

Patrick Höhn added 2 commits March 2, 2023 14:44
@charxie charxie merged commit 41c72e5 into Institute-for-Future-Intelligence:master May 23, 2023
@charxie
Copy link
Collaborator

charxie commented May 23, 2023

Thank you, Patrick! I just saw this and merged your code.

@charxie
Copy link
Collaborator

charxie commented Jul 3, 2023

Your changes cause a heatmap bug that I don't quite know where it is. So I had to revert your pull request.

@hoehnp
Copy link
Author

hoehnp commented Jul 3, 2023

Could you please share details of the bug with me, so that I can fix it later on?

@charxie
Copy link
Collaborator

charxie commented Jul 3, 2023

It seems the heatmap scale is incorrect. If you run the Natural Convection example in the Examples menu, you should see the screen is filled with white color pretty quickly. It should be like this:

1

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

Successfully merging this pull request may close these issues.

None yet

2 participants