Conversation
|
@mlstowell , if you are testing it with example 22 in parallel, GLVis crashes quite often, but it is not fault of this PR. I realized the ordering is wrong there and should be fixed eventually. Check other examples, it should be:
While you batch all operations which causes mismatches in received data as GLVis has no way to know what sockets should be grouped together 🤪 . |
|
I'm just starting to look at this but I like it. I can visualize the four fields mentioned in the header but I haven't found the animation option. I can adjust the phase rate as you mention but I'm not seeing an animation so the phase rate doesn't seem to do anything. Perhaps this feature is not available yet... |
|
It should be, it works for me 🤔 . Have you switched the representation? Magnitude does not show anything, because it is independent of the phase 😅 . |
|
Okay, I see it now. The comment written to screen misled me. When I saw: Another thing I might change is the limits on the color bar. For the phase plot I would suggest a constant range from -pi to pi. For the real and imaginary parts I would suggest a constant range from -max(magnitude) to max(magnitude). I find these constant ranges are more illustrative during animations. What do you think? |
|
Ok, I generalized the detection of the value range to vector functions. These should be the combinations of complex value representations and vector representations:
where magmin/max is the minimal/maximal complex magnitude. |
|
After a discussion with @psocratis , I have changed the projection of magnitude and phase (which are nonlinear transformations in essence) from DOF projection to L2 space. This gives smoother visualizations for vector finite elements 😉 |
|
🐛 A known bug, animations of solutions, which overload the internal buffer of |
|
I temporarily changed the base for easier reviewing 😉 |
|
Being able to push directly the |
|
❗ TODO: Before merging, the associated data pull request GLVis/data#8 should merged first and the submodule hash here should be updated to point to the merge commit on |
This PR adds visualization of complex grid functions, which are represented different ways:
To switch the representation, you may use
Qkey (like for quadratures) TODO: find a better one 😄The functions can be loaded from files as normally (the file reader recognizes the format based on the header) or through a socket stream
by the new command(also automatically detected).csolutionMagnitude and phase in example 22.
The complex solution can be also animated by varying the complex phase. To increase the phase rate, press
Alt+Enter, and to decreaseAlt+0. To stop/startAlt+.🎞️ .↪️dependency: #336