[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Getfem-users] Update mesh_fems after mesh change

From: Yves Renard
Subject: Re: [Getfem-users] Update mesh_fems after mesh change
Date: Mon, 29 Aug 2011 14:28:04 +0200
User-agent: KMail/1.13.5 (Linux/2.6.32-33-server; KDE/4.4.5; x86_64; ; )

On mardi 9 août 2011, Roland Stoffel wrote:
> Dear all,
> i use the method 'Bank_refine' to refine adaptively my mesh. After that
> the mesh_fems and other method doesn't fit anymore with the mesh. So,
> how can i easily update my mesh_fems, mesh_im, models and everything
> else after the change of the mesh?
> Thank you
> Roland Stoffel
> _______________________________________________
> Getfem-users mailing list
> address@hidden

Dear Roland,

There is some basic automatic adaptation of mesh_fem and mesh_im objects to 
the refinement.

If the mesh fem has been initialized with a global method such as

mesh_fem::set_finite_element(pfem ppf)


mesh_fem::set_classical_finite_element(dim_type fem_degree)

then the corresponding finite element will be set to all new elements.

It is also possible to directly call the method 

void mesh_fem::set_auto_add(pfem pf)

to specify the finite element for the new elements.

If you need something more adapted, you have to detect the newly created 
elements and set the finite element method.

The operations are similar for mesh_im objects.



  Yves Renard (address@hidden)       tel : (33)
  Pole de Mathematiques, INSA-Lyon             fax : (33)
  20, rue Albert Einstein
  69621 Villeurbanne Cedex, FRANCE


reply via email to

[Prev in Thread] Current Thread [Next in Thread]