Confusingly, there are two versions of MayaVi. MayaVi 1 and MayaVi2. They didn't have a brew cask, so I didn't look at it so far. I also don't want to learn yet another full-blown python library commands just for a one-off visualization exercise. I really like Praveen's solution, but again gnuplot is yet another plotting language that I need to learn.
Can matplotlib import .vtk files and produce time-step animations? What an irony that 1D visualisation is harder than 2D (for non-technical reasons) :). Regards, Krishna On Mon, 16 Mar 2020 at 16:30, Bruno Turcksin <bruno.turck...@gmail.com> wrote: > Krishna, > > I am not an expert on visualization but I know mayavi ( > https://docs.enthought.com/mayavi/mayavi/) can read vtk and vtu. This is > more geared towards python users though. If you think that the > documentation is lacking, feel free to open a pull request ;-) > > Best, > > Bruno > On 3/16/20 12:14 PM, Krishnakumar Gopalakrishnan wrote: > > Hi Bruno, > > Thanks for this information. > > I am genuinely curious to know about these other programs that are capable > of reading .vtk and .vtu files. Everyone says that these files are so > standard, and claim that there are a lot of tools that can read them. I > could not find really find any general purpose visualisation software > outside of VisIT and Paraview that reads these files. There are also > couple of medical simulation visualizers/toolkits that again come out of > kitware stables. For an open-source framework like the VTK with a business > -riendly BSD license, it is rather surprising that no other company or > university has built a competing product. > > > > * Some people also use vtk to transfer data between programs. * > > What could be examples of such work flow, especially in a 1D context? For > all practical purposes, 1D .vtu/.vtk files seem useless. At least could we > have a warning/note block of text in the write_vtu() and write_vtk() pages > of the documentation that 1D visualisation using .vtk is a non-starter? I > have seen many such notes calling for the readers' attention. I spent > nearly two days under the belief that a 1D simulation shoud just be a walk > in the park for the two vtk-based heavyweights. > > > Regards, > Krishna > > > > > On Mon, 16 Mar 2020 at 15:51, Bruno Turcksin <bruno.turck...@gmail.com> > wrote: > >> Krishna, >> >> VisIt and Paraview are just two of many visualization software that can >> read .vtk and .vtu files. Some people also use vtk to transfer data between >> programs. Why should we restrict the output because two visualization tools >> don't support 1D? >> >> Best, >> >> Bruno >> >> On Monday, March 16, 2020 at 11:37:57 AM UTC-4, Krishnakumar >> Gopalakrishnan wrote: >>> >>> Hi Praveen, >>> >>> Thank you. That really helps. I shall definitely check it out and >>> report back. I just have standard Q1 linear elements in a unit (0,1) >>> domain, solving a standard 1D diffusion problem. >>> >>> Are we all agreeing that sophisticated VisIT and Paraview cannot produce >>> simple 1D visualizations/animations? If so, there must be an Assert() >>> pre-condition >>> check for the DataOut::write_vtk() and DataOut::write_vtu() functions >>> of the library which return an exception with "dimension not implemented" >>> error. >>> >>> Regards, >>> Krishna >>> >>> >>> >>> On Mon, 16 Mar 2020 at 15:31, Praveen C <prav...@tifrbng.res.in> wrote: >>> >>>> I have a 1d example here >>>> >>>> https://bitbucket.org/cpraveen/deal_ii/src/master/dg/1d_scalar_legendre/ >>>> >>>> The blank lines in the output file denote different elements. It is not >>>> necessary to sort if you use gnuplot to plot it. gnuplot makes one curve >>>> for the solution in each element. If the FE space is continuous, you will >>>> get a plot which is globally continuous. >>>> >>>> Best >>>> praveen >>>> >>>> On 16-Mar-2020, at 8:50 PM, Krishnakumar Gopalakrishnan < >>>> krish...@vt.edu> wrote: >>>> >>>> Hi Praveen, >>>> >>>> Thanks for your reply. Yes, I had success with gnuplot, but the >>>> following were the difficulties. >>>> >>>> 1. Weirdly, the x-axis co-ordinates of the mesh are not sorted in a >>>> particular order (they appear rather randomly, arranged in groups of 2 >>>> rows with blank lines between them). >>>> 2. The time-animation is not easy to visualize. Paraview has a >>>> nice animation player for such sets of .vtu files. >>>> >>>> Is there some trick to visualize time-series of 1D spatial data? >>>> >>>> >>>> Regards, >>>> Krishna >>>> >>>> >>>> -- >> The deal.II project is located at http://www.dealii.org/ >> For mailing list/forum options, see >> https://groups.google.com/d/forum/dealii?hl=en >> --- >> You received this message because you are subscribed to a topic in the >> Google Groups "deal.II User Group" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/dealii/AFeah4OhYe8/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> dealii+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/dealii/f100beb0-9b91-482e-8e70-16939014ef61%40googlegroups.com >> <https://groups.google.com/d/msgid/dealii/f100beb0-9b91-482e-8e70-16939014ef61%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > The deal.II project is located at http://www.dealii.org/ > For mailing list/forum options, see > https://groups.google.com/d/forum/dealii?hl=en > --- > You received this message because you are subscribed to a topic in the > Google Groups "deal.II User Group" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/dealii/AFeah4OhYe8/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > dealii+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/dealii/CABvf3kZa%2B__LvjON9AwH_XKw93fYyUDO7hNHvYRz%3D3Jzg9vs8g%40mail.gmail.com > <https://groups.google.com/d/msgid/dealii/CABvf3kZa%2B__LvjON9AwH_XKw93fYyUDO7hNHvYRz%3D3Jzg9vs8g%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > -- > The deal.II project is located at http://www.dealii.org/ > For mailing list/forum options, see > https://groups.google.com/d/forum/dealii?hl=en > --- > You received this message because you are subscribed to a topic in the > Google Groups "deal.II User Group" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/dealii/AFeah4OhYe8/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > dealii+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/dealii/c3ef2bdf-8a3b-01c2-1065-18b4a3c1eeae%40gmail.com > <https://groups.google.com/d/msgid/dealii/c3ef2bdf-8a3b-01c2-1065-18b4a3c1eeae%40gmail.com?utm_medium=email&utm_source=footer> > . > -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/CABvf3kZjzm1RZY9BLETKUCRD7HYc0XVYwFn2a-6Dkv_bqUAgYg%40mail.gmail.com.