[Dune] Visualization with VTKWriter
Andreas Dedner
dedner at mathematik.uni-freiburg.de
Tue Feb 15 14:59:39 CET 2011
The are 2 issues here
1) will the code actually work on quadrilaterals (e.g. SGrid)
2) you need some more general grid reader (e.g. DGF)
If the code is only for triangular grids, you have to have on of the 3
available
implementations (Alberta,ALU,UG) and then cut and paste some lines from the
finitevolume.cc:
typedef GridSelector :: GridType Grid;
std::stringstream dgfFileName;
dgfFileName << "grids/unitcube" << Grid :: dimension << ".dgf";
GridPtr<Grid> gridPtr( dgfFileName.str() );
Grid& grid = *gridPtr;
Then see what happens....
Best
Andreas
On 15/02/11 13:54, Jö Fahlke wrote:
> Am Tue, 15. Feb 2011, 14:15:43 +0100 schrieb S. Swayamjyoti:
>
>> Made it, *typedef Dune::SGrid<dim,dim> GridType;* instead of typedef
>> Dune::AlbertaGrid<dim,dim> GridType; in line 257. and then tried to make the
>> dune-grid-howto. I get errors saying * no matching function for call to
>> 'Dune::SGrid<3, 3, double>::SGrid(const char*&)'* in line 263.
>>
> That cannot work, since there is no gridfactory and thus no gmshreader for
> sgrid. You may have more luck with ALUGrid, though.
>
> Bye,
> Jö.
>
>
>
>
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20110215/90917876/attachment.htm>
More information about the Dune
mailing list