[Dune] Creating a Grid

Oliver Sander sander at mi.fu-berlin.de
Mon Dec 27 18:05:17 CET 2010


Am 27.12.2010 13:06, schrieb Christian Engwer:
>>>> How can I resolve the above error? Also, I need help to create an
>>>> *unstructured* UGGrid, that is, without the StructuredGridFactory
>>>> class. Can someone please help me out with this?
>>>>          
>> Well, you'll have to use some other tool to actually create the mesh, Dune
>> cannot do that for you.  And I'm sorry, but I don't actually know of any mesh
>> generator for cubic meshes -- you'll have to google yourself.  Make sure the
>> mesh generator can produce one of the file formats understood by Dune -- that
>> is either .dgf (Dune Grid Format -- you are unlikely to find such a thing) or
>> .msh (the file format of gmsh -- I'm not sure wether cubes are supported in
>> the dune-reader for that format, however).
The Dune gmsh reader currently supports cubes only in 2d.  I have
always wanted to add the remaining types, maybe I should just do
this now.

>>   You'll have to use either the
>> DGFParser (note that the name of the class is GridPtr), or the GmshReader.
>> Look in the class documentation at
>> <http://www.dune-project.org/doc/doxygen.html>  for the includes you need.
>>      
> Dune also support the starcd-Mesh-format and the amiramesh-format. I
> know that the commercial Ansys CFD system has a mesh generator for
> cartesian meshes, but I am sure there are also alternatives.
>
> Christian
>
>    
>> If you cannot find a mesh generator that can export to a file format
>> understood by dune, you can try to write a conversion program.  Mesh file
>> formats are often text-based and usually pretty simple, so this should not be
>> too difficult.  Or you can try to write a file reader for Dune using the
>> GridFactory.
>>
>> Bye,
>> Jö.
>>
>> -- 
>> Der Horizont vieler Menschen ist ein Kreis mit Radius Null - und das
>> nennen sie ihren Standpunkt.
>> -- A. Einstein
>>      
>
>
>    
>> _______________________________________________
>> 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
>    





More information about the Dune mailing list