[Dune] Store Data in grid cells
Schock, Justus
justus.schock at rwth-aachen.de
Tue Mar 29 07:27:42 CEST 2016
Hi Oliver,
"it doesn't work" in this case means, the expected data isn't stored in the cells.
I wrote a class, which constantly returns the value 2 and expected, giving this class to the elementdata function, the value 2 to appear in every cell. If I plot the grid (via vtk) there are no 2s in the cells, only the standard values.
I didn't try the poisson solver attached to the how-to yet because I want to work with dune-fem and my code works for the standard values except that I cannot set my own initial values, which I assume to be a general problem.
Best
Justus
-------- Originalnachricht --------
Betreff: Re: [Dune] Store Data in grid cells
Von: Oliver Sander
An: "Schock, Justus" ,DUNE Liste
Cc:
Hi Justus,
your question is a little vague. What exactly do you mean by "did not work
as expected"?
The grid how-to also contains a complete implementation of a finite element solver
for the Poisson equation (in Chapter 6.4). Did you try that? Do you have problems
with that one, too?
Best,
Oliver
On 25.03.2016 01:50, Schock, Justus wrote:
> Dear Duners,
>
>
> I want to use DUNE for solving PDEs (just like the Poisson-Equation or the Diffusion-Equation).
>
>
> This is why I want to store some data (like concentration etc.) directly in the cells of the grid.
>
>
> I even tried using Mappers (as explained in chapter 6 of the How-To) and tried to write something very similar to the elementdata.hh.
>
> ​Unfortunately it did not work as expected and I dont't know if it has been the wrong idea in general or only a wrong implementation.
>
>
> Furthermore I texperimented a bit with the DGF, trying to pass the cell data directly in the file, the grid is constructed from.
>
>
> Could anyone just give me a hint or some explanation/link/example how this should be done?
>
>
> Best,
> Justus
>
>
>
> _______________________________________________
> 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/20160329/782fe45c/attachment.htm>
More information about the Dune
mailing list