-
Notifications
You must be signed in to change notification settings - Fork 93
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 example for plotting with plots.jl #1134
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1134 +/- ##
==========================================
- Coverage 93.59% 0.00% -93.60%
==========================================
Files 39 39
Lines 6087 6009 -78
==========================================
- Hits 5697 0 -5697
- Misses 390 6009 +5619 ☔ View full report in Codecov by Sentry. |
Thank you for the suggestion. However, in my opinion, this is not a recommended way to plot an FE solution in Ferrite, so we shouldn't recommend that in the docs. FerriteViz.jl aims to make such plots easy (but currently unfortunately requires using a development branch). |
I think maybe we can still add this to the how-to section and elaborate in detail why this should not be used in general. I will try to update FerriteViz in the meantime. |
I think it shouldnt be used generally, because you would have to find a way to sample from the more complex geometries and display it with plots.jl, which is what FerriteViz should be used for instead. However I think it would be nice to add it, because it shows how to sample from a solution, which is important for solving optimization problems involving FEM. I couldnt find an example for that in the docs yet. Explaining in more detail on why it shouldnt be used and pointing to the relevant branch FerriteViz, would be nice, but I am new to Ferrite, so I dont have the knowledge to write a section like that. So someone else would need to do that. To me however it seems evident why this shouldnt be used in general, more complex cases in which either FerriteViz (once its updated) or Paraview would be better used (especially 3D). |
Thanks for elaborating. It was not ment to offload writing up this section to you, no worries.
Sorry, I think I do not understand. Is there something missing in https://ferrite-fem.github.io/Ferrite.jl/stable/howto/postprocessing/ (which should be visible from https://ferrite-fem.github.io/Ferrite.jl/stable/howto/) or do you have something different in mind? If you want to solve optimization stuff with FEM (or PDEs in general), then I would highly recommend you to take a look into adjoint methods, as this might, without further knowledge about your specific form, make you optimization problem easier to handle. |
Show how the
PointEvalHandler
can be used to evaluate the solution for plotting using Plots.jl in the case of the heat uquation.