[dune-pdelab] Sub-samling Vtk writer for composite grid functions

Christoph GrĂ¼ninger christoph.grueninger at iws.uni-stuttgart.de
Mon Feb 1 17:34:26 CET 2016


Dear PDELab people,
I have a CompositeGridFunction which contains a P0 element and some
higher order element. To get the latter right in the Vtk output, I use
sub-sampling with the refinement level of one.
This refines the output of my P0 element, too. Is there a way to refine
only some sub-functions but still having all sub-functions in the same file?

My current code:

> Dune::SubsamplingVTKWriter<SubDomainGridView> vtkWriterStokes(
>     this->sdGridViewStokes(), 1);
> vtkWriterStokes.addCellData(
>     new Dune::PDELab::VTKGridFunctionAdapter<DgfStokesVelocity>(dgfStokesVelocity, "velocity"));
> vtkWriterStokes.addCellData(
>     new Dune::PDELab::VTKGridFunctionAdapter<DgfStokesPressure>(dgfStokesPressure, "pressure"));

Bye
Christoph

-- 
The method has been developed for use on a high-speed electronic
computer and would be impractical for hand-solution purposes.
                                           [Harlow & Welch 1965]

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune-pdelab/attachments/20160201/3bdce262/attachment.sig>


More information about the dune-pdelab mailing list