[Dune] Fwd: gmsh2dgf
Andreas Dedner
a.s.dedner at warwick.ac.uk
Thu Jun 26 17:28:19 CEST 2014
My question has nothing to do with dgf or experimental grid extensions.
The dgfwriter just takes a grid and used the intersection.boundaryId()
method to write
the ids into the file (that method is now only available with
DUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS
So that will not work since the gmsh reader will not set these
boundaryId so that this
metod could actually read them.
So the question is: how can the user extract boundary data provided in a
gmsh file using the
gmsh reader. So just a question about gmsh and the reader not about dgf
or any grid extensions....
Best
Andreas
On 26/06/14 14:53, Oliver Sander wrote:
> Hi,
> I don't know much about either dgf or the EXPERIMENTAL_GRID_EXTENSIONS.
> It may well be that the gmshreader contains a bug (it was me who wrote parts
> of it, after all :-) ) but to look into that we'd need a more precise
> report of what's going wrong.
> Best,
> Oliver
>
> Am 26.06.2014 11:52, schrieb Andreas Dedner:
>> Hi,
>>
>> Since you are getting the boundarysegment block in your dgf file, you seem to be using
>> the DUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS so that intersection.boundaryId() is
>> available. The problem is that adding boundary ids was decided to be unnecessary.
>> I don't know that much about the gmsh format or the reader to know if boundary id information
>> from the gmsh file is in some way passed on to the user. If so it will not be made available ithriough
>> the intersection.boundaryId method but stored somehow externally and you will have to modify the
>> code in io/file/dgfparser/dgfwriter.hh accordingly
>> (search for iit->boundaryId(); and replace that call).
>>
>> Perhaps experts on gmsh to provide the way to get the boundary ids out of the gmsh file.
>>
>> Best
>> Andreas
>>
>>
>> On 26/06/14 07:19, Jelena Griz(ic' wrote:
>>> Dear all,
>>>
>>> I have a problem using gmsh2dgf (also applies to gmshreader.hh): it doesn't seem to pick boundary segment ids from.msh file rather using some default value (1) for all boundary elements.
>>>
>>> Example of .msh and .dgf file obtained using gmsh2dgf are in attachment.
>>>
>>> Thank you in advance,
>>>
>>> Jelena Grizic
>>>
>>>
>>>
>>> _______________________________________________
>>> Dune mailing list
>>> Dune at dune-project.org
>>> http://lists.dune-project.org/mailman/listinfo/dune
>>
>>
>>
>> _______________________________________________
>> Dune mailing list
>> Dune at dune-project.org
>> http://lists.dune-project.org/mailman/listinfo/dune
>>
>
>
>
> _______________________________________________
> 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/20140626/1425b958/attachment.htm>
More information about the Dune
mailing list