[Dune] [vtk] beginPointData() in vtuwriter.hh

Oleh Krehel krehel at am.uni-erlangen.de
Tue Mar 29 11:08:37 CEST 2011


   Thanks for the answer, but it still doesn't work well for me.
I have changed solution to 3 components. Paraview doesn't issue a warning,
but neither does it
show u initially, although 'Vectors="u"' is present. I attach the file,
maybe you could explain why this happens.
As for the Paraview bug, I tried to report it yesterday, but apparently I
have to pay a $5000 subscription fee to get support:)
   About the adapter, I tried:

vtkwriter.addVertexData(new
PDE::VTKGridFunctionAdapter<PDE::DiscreteGridFunction<GFS,U>
>(PDE::SelectComponentAdapter<PDE::VectorDiscreteGridFunction<GFS,U>
>(udgf,0),"u");

This gives me:

no type named ‘LocalFiniteElementType’ in ‘struct
Dune::PDELab::PowerCompositeGridFunctionSpaceTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const
Dune::YaspGrid<2>, (Dune::PartitionIteratorType)4u> >,
Dune::PDELab::ISTLVectorBackend<1>,
Dune::PDELab::GridFunctionSpaceBlockwiseMapper, 3>’

Could you tell me the proper way to use it?

best regards,
Oleh Krehel


2011/3/29 Jö Fahlke <jorrit at jorrit.de>

> Am Tue, 29. Mar 2011, 10:03:54 +0200 schrieb Oleh Krehel:
> > Actually the line that you quoted shouldn't change.
> > What I meant was instead of line
> >
> > <PointData* Vectors="u"*>
> >
> > you should have
> >
> > <PointData>
> >
> > . This fixes the problem for me.
> > Thanks for advice with adapter, I'll try it.
>
> Ah, OK.  You are indeed right.  However, I still fail to see why ParaView
> has
> the problem with that: the attribute 'Vectors="u"' simply means that u is
> the
> vector field that is initially shown by default when ParaView first opens
> that
> file.  If you remove that attribute, ParaView simply shows some solid color
> initially, but later you can simply select the field u and ParaView handles
> it
> just fine (although there _are_ some rough edges, like the list where can
> select components showing component numbers 0 to 5 while the color legend
> shows components 1 to 6).
>
> If that attribute is there, ParaView will complain initially.  If you
> ignore
> the error message however, you can simply continue as in the case without
> the
> attribute.
>
> I suspekt this is a bug in ParaView.  Would you be so kind to report it to
> the
> ParaView guys (or check whether they have fixed it in a later version
> already)?
>
> Thanks,
> Jö.
>
> --
> Das Erststudium soll bis zum berufsqualifizierenden Abschluss
> gebührenfrei bleiben, also bis zur Erlangung der Taxi-Lizenz.
> -- Akrützel, Ausgabe vom 16.5.2002 (www.akruetzel.de)
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iQIVAwUBTZGcp+mx9CKgc0OWAQg1GRAAq7x57g+SqL//a0DVKnuys1XtDPMg/mQB
> Y9dajXGueew82u20oAGd1V0RkdeBYtWW1QdkBSQ3fUvY+tKRTswYrmP2/D8EKhpW
> dAIVwktaHvlZVFgGvyjExMJ0gYHcCOIdbw5ao1VQT55GjKmc25IXvWiFUqLGYg30
> p5+7xe8FqdWivAtrY3rn35IoJ6kSDVYP3gHTbcQCQQUX0TID3OKOhvI1TwgtTqoo
> 2++Mw1lFwzGAU7LdITOMEocv9Kqv6yxGBI/n7OpKKfU4wHe7yiTUny+au2YsZNek
> yb1JqWec6A4r0a94yiFlr2Zq6KG/O4JSa7TQmk/J19Y1mH7AZbzq8ZcFA5eSSNpV
> ejiCpIPa2mzbr0kMxUQiF9gvTe4H+ZqvJRXAkPJ9ZvCRUxAbpR4M+M99PFP5jsx5
> CB/tP5+FxwPJr3pX1kFh59jwbTBzY7CS6lhCEwHFrB6xeNd1kFLegDu081j24SQo
> Gad8O3JbON+gHnEhmEXm+6hVjMyBTHxmSI3/jI/FUs2lh5XYHk02FgNZcGnTX70d
> CSWPPx89yPyDmK089EwjoTQqvWIrAAKAaOdsxgsg2X9q6bPqvRb32KII2ne3A4Yy
> QDC8PalbUR1GRWBfNO2StwMl7ZysrAQU5CAfOiwshUFReNgM7s6KVoGxUkheeKfN
> /Vnwumwe0rY=
> =xa0q
> -----END PGP SIGNATURE-----
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20110329/dd07dcca/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Coagulation_Q1Q1-00000.vtu
Type: application/octet-stream
Size: 1167 bytes
Desc: not available
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20110329/dd07dcca/attachment.obj>


More information about the Dune mailing list