[dune-fem] Mapping between 1D and 2D grid

Alasdair James McLeay a.mcleay at sussex.ac.uk
Fri Aug 31 14:04:59 CEST 2012


Hi,

I have a 2D grid, for which I am using Dune::ALUConformGrid. I also have a 1D grid (in a way, the 1D grid represents one of the boundaries of the 2D grid, but I am solving a different problem on this boundary - I have a 1D problem that requires me to perform an integral over the 2D grid on the right hand side). For the 1D grid I am using Dune::OneDGrid.

I am discretising my 2D grid so that each triangle projects onto a single section of the 1D grid. I am doing this manually by ensuring refining 1D and 2D grids to the appropriate level.

I want to map between any triangle in my 2D grid and the equivalent section of my 1D grid. I was thinking I could create a map that stores this reference, as I will need to use it frequently.

Does this make sense? Perhaps there is a much better way to do all of this already provided by Dune? Unfortunately I can't find anything to read on the subject - although I see on:
http://users.dune-project.org/projects/main-wiki/wiki/Grid-Manager_Features

...that some grid managers offer 'communicate()' features. Perhaps this is what I'm after? Is there anything I can read on the subject?

Thanks,
Ali



More information about the dune-fem mailing list