[Gmsh] gmsh/bamg - use of bgm posfiles???

Christophe Geuzaine cgeuzaine at ulg.ac.be
Fri Jan 27 17:53:02 CET 2012


On 27 Jan 2012, at 17:46, trophime wrote:

> On Fri, 2012-01-27 at 17:28 +0100, Cécile CD. DAVERSIN wrote:
>>        Hi
>>        I would like tu use bamg algo to get an anisotropic mesh.
>>        I wish to use a metric as a background mesh and generate the
>>        anistropic mesh from it :
>> 
>>        gmsh -2 geofile  -algo bamg -bgm metrics.pos
>> 
>> 
> 
> Using a bgm in this context does not work.
> 
> *) The bgm file is always treated as "isotropic" :
> 
> in void PostViewField::operator() (double x, double y, double z,
> SMetric3 &metr, GEntity *ge=0) :
> virtual bool PostViewField::isotropic () const always return true
> as v is null!
> 
> *) the bgm is not taken into account. In fact it tries to 
> get a metric from some """formula""" (see BGM_MeshMetric) 
> just like in  http://www.geuz.org/pipermail/gmsh/2012/006970.html
> 
> It would be really great if we can use bgm metrics...
> 

Hi Christophe - I coded this in a hurry and did not have time to test it... I've committed a small patch: can you try again?

> Best
> C
> 
> 
> 
> 
> 
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh

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