getfem-users
[Top][All Lists]
Advanced

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

Re: [Getfem-users] visitor for points of a mesh region


From: CC Tsai
Subject: Re: [Getfem-users] visitor for points of a mesh region
Date: Mon, 9 Jul 2012 17:03:26 +0800


Dear Yves,

I have tried to write some codes like shown in the last of this email. However, it is too difficult to finish it without a detailed understanding of the class structures. It will be highly appreciated if you can give me some advise. 

sincerely 
Tsai

dal::bit_vector MeshRegion_points_index(const getfem::mesh& mesh,unsigned int rg_id)
{
 dal::bit_vector temp;
 for (getfem::mr_visitor i(mesh.region(rg_id)); !i.finished(); ++i)
 {    
    temp[??]=true;
 }
 return temp;
}

On Sat, Jul 7, 2012 at 6:00 PM, <address@hidden> wrote:
Send Getfem-users mailing list submissions to
        address@hidden

To subscribe or unsubscribe via the World Wide Web, visit
        https://mail.gna.org/listinfo/getfem-users
or, via email, send a message with subject or body 'help' to
        address@hidden

You can reach the person managing the list at
        address@hidden

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Getfem-users digest..."


Today's Topics:

   1. Re: visitor for points of a mesh region (Yves Renard)
   2. Documentation errors (Torquil Macdonald S?rensen)


----------------------------------------------------------------------

Message: 1
Date: Fri, 06 Jul 2012 13:27:00 +0200
From: Yves Renard <address@hidden>
To: CC Tsai <address@hidden>
Cc: address@hidden
Subject: Re: [Getfem-users] visitor for points of a mesh region
Message-ID: <address@hidden>
Content-Type: text/plain; charset="iso-8859-1"


Dear Tsai,

There is no visitor for points (mesh nodes) of a mesh region. The more
straighforward mean is to iterate on elements/face of a region and then
on points of element/face andpaying attention to repetitions of points
(storing the visited point in a dal::bit-vector for instance).

Yves.




Le 06/07/2012 10:55, CC Tsai a ?crit :
>
> Dear Yves,
>
> As we know, we can obtain a visitor for points of a mesh and get their
> positions by
>
>  for (dal::bv_visitor i(mesh.points_index()); !i.finished(); ++i)
>  {
>   bgeot::base_node &pt = mesh.points()[i];
>   ...
>  }
>
> Therefore, I wounder if there is a means to obtain a visitor for
> points of a mesh region.
>
> sincerely
> CC Tsai
>
>
>
>
>
> _______________________________________________
> Getfem-users mailing list
> address@hidden
> https://mail.gna.org/listinfo/getfem-users


--

  Yves Renard (address@hidden)       tel : (33) 04.72.43.87.08
  Pole de Mathematiques, INSA-Lyon             fax : (33) 04.72.43.85.29
  20, rue Albert Einstein
  69621 Villeurbanne Cedex, FRANCE
  http://math.univ-lyon1.fr/~renard

---------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </public/getfem-users/attachments/20120706/d35af8c1/attachment.html>

------------------------------

Message: 2
Date: Fri, 6 Jul 2012 14:33:56 +0200
From: Torquil Macdonald S?rensen <address@hidden>
To: address@hidden
Subject: [Getfem-users] Documentation errors
Message-ID:
        <address@hidden>
Content-Type: text/plain; charset=ISO-8859-1

Hi!

Most of the descriptions of "Protected Attributes" are mixed up on this page:

http://download.gna.org/getfem/doc/getfem_reference/classgetfem_1_1virtual__fem.html

Best regards
Torquil S?rensen



------------------------------

_______________________________________________
Getfem-users mailing list
address@hidden
https://mail.gna.org/listinfo/getfem-users


End of Getfem-users Digest, Vol 73, Issue 2
*******************************************



--

Dr. Chia-Cheng Tsai

Associated Professor

Department of Marine Environmental Engineering

National Kaohsiung Marine University

Kaohsiung, Taiwan



reply via email to

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