[Gmsh] Adapting bathymetry to the domain

Christophe Geuzaine cgeuzaine at ulg.ac.be
Tue Jun 24 17:33:54 CEST 2014


On 24 Jun 2014, at 14:24, Mathieu Rodriguez <mathieu.rodriguez at openocean.fr> wrote:

> Dear Christophe Geuzaine,
> 
> I have created a post-processing file with bathymetry data using the simple .pos format. In GMSH, I load my .geo file and I merge     my .pos file. I define my .pos as "background mesh" but I don't know how make a mesh refined by the bathymetry data. Can you help me ?
> 
> I have attached the .geo & the .pos files.
> 

Here's one way you could do it (open RzBl-Bathy.geo) :

-------------- next part --------------
A non-text attachment was scrubbed...
Name: RzBl-Bathy.geo
Type: application/octet-stream
Size: 1272 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20140624/273c0be8/attachment.geo>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RzBl-Bathy-v0.geo
Type: application/octet-stream
Size: 82357 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20140624/273c0be8/attachment-0001.geo>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bathymetry.pos
Type: application/octet-stream
Size: 4470215 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20140624/273c0be8/attachment.pos>
-------------- next part --------------




> Sincerely,
> 
> Mathieu Rodriguez
> 
> On 19/06/2014 15:31, Christophe Geuzaine wrote:
>> 
>> On 19 Jun 2014, at 14:28, Mathieu Rodriguez 
>> <mathieu.rodriguez at openocean.fr>
>>  wrote:
>> 
>> 
>>> Dear Christophe Geuzaine,
>>> 
>>> Sorry but I don't understand. I use the plugin NewView. How can we define the bathymetry dataset in the NewView ? I must define a Structure Field before ?
>>> 
>>> I have bathymetry dataset in netCDF format or in simple .txt. That's alright to work with these formats ?
>>> 
>>> 
>> You'll have to create a post-processing file that can be understood by Gmsh ; either based on a mesh (.msh or .med file), or using the simple .pos format described in the user's guide
>> 
>> 
>> 
>>> Sincerely,
>>> 
>>> Mathieu Rodriguez
>>> 
>>> On 19/06/2014 13:41, Christophe Geuzaine wrote:
>>> 
>>>> On 19 Jun 2014, at 12:03, Mathieu Rodriguez <mathieu.rodriguez at openocean.fr>
>>>>  wrote:
>>>> 
>>>> 
>>>>> Dear Christophe Geuzaine,
>>>>> 
>>>>> Do you know an other solution to integrate bathymetry datas to the .msh files ?
>>>>> 
>>>>> 
>>>> I would integrated them simply as a post-processing dataset ("view"). You can then use a "PostView" to use this data for specifying the mesh size.
>>>> 
>>>> Christophe
>>>> 
>>>> 
>>>> 
>>>>> Sincerely,
>>>>> 
>>>>> Mathieu Rodriguez
>>>>> 
>>>>> On 18/06/2014 22:31, Christophe Geuzaine wrote:
>>>>> 
>>>>>> On 10 Jun 2014, at 11:08, Mathieu Rodriguez <mathieu.rodriguez at openocean.fr>
>>>>>>  wrote:
>>>>>> 
>>>>>> 
>>>>>>> Dear GMSH users,
>>>>>>> 
>>>>>>> I work with a research team in the modeling of ocean in order to choose the best adapted zones for marine renewable energies. We were able to mesh several parts of the world. However we do not manage to join into our domain the bathymetry datas.
>>>>>>> 
>>>>>>> To adapt the meshing, we tried to use a 'Structured' field inside GMSH. It is possible to use a *.dat file and how to reveal at the same time the meshing and the bathymetry on the zone ? If it possible, what is the architecture of the *.dat file ?
>>>>>>> 
>>>>>>> 
>>>>>> Not sure if the Structured field is still maintained by our "ocean modeling" guys. CC:ing Jon on this one.
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>>> Sincerely,
>>>>>>> 
>>>>>>> -- 
>>>>>>> Mathieu Rodriguez
>>>>>>> Open Ocean SAS
>>>>>>> cel : +33 6 66 24 99 18
>>>>>>> 
>>>>>>> 
>>>>>>> _______________________________________________
>>>>>>> gmsh mailing list
>>>>>>> 
>>>>>>> gmsh at geuz.org
>>>>>>> http://www.geuz.org/mailman/listinfo/gmsh
>>>>> -- 
>>>>> Mathieu Rodriguez
>>>>> Open Ocean SAS
>>>>> cel : +33 6 66 24 99 18
>>>>> 
>>> -- 
>>> Mathieu Rodriguez
>>> Open Ocean SAS
>>> cel : +33 6 66 24 99 18
>>> 
> 
> -- 
> Mathieu Rodriguez
> Open Ocean SAS
> cel : +33 6 66 24 99 18
> 
> <Bathymetry.pos><RzBl-Bathy-v0.geo>

-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine