Hi Roman,

In cases like this I used simple STL container like:

std::vector<int> myContainer(myMesh.nb_points());

Although it might be a problem if you used remeshing, the the node numbering 
would change.


Another thing, you can probably also create a dedicated getfem::mesh_fem mf 
object and a corresponding 
container std::vector<int> myContainer(mf.nb_dof()); that contains the degrees 
of freedom, that would be your integer field on the nodes.
With this it would also be easy to extract the values of the field that belong 
only to one region.

But all of this can also be done with STL containers only. 

May be GetFem fathers have better ideas.

Best regards,
                 Andriy



-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Roman Putanowicz
Sent: Mon 9/1/2008 15:38
To: [email protected]
Subject: [Getfem-users] grid functions in Getfem
 
Hi All, 

I would like to ask you about some advice regarding grid functions,
that is functions which map grid(mesh) entities (like vertices
or cells) to some values. For instance I would like to store 
integer values for each mesh vertex. Does Getfem provide any specific
classes for this purpose or one should use general STL containers?

I understand that in case of restricted set of integer values I
can use regions to store reverse mapping but what if this is not the case.

I knot that the anser depends on the specific case but what strategies
could you advise.

In the same spirit there would be a question about partial grid functions
that is grid functions defined on a subset of grid entities.

Thank you in advance for any suggestions.

Regards

Roman


-- 
Roman Putanowicz  < [EMAIL PROTECTED]  >
Institute for Computational Civil Engng (L-5)
Dept. of Civil Engng, Cracow Univ. of Technology
www.l5.pk.edu.pl, tel. +48 12 628 2569, fax 2034

_______________________________________________
Getfem-users mailing list
[email protected]
https://mail.gna.org/listinfo/getfem-users

_______________________________________________
Getfem-users mailing list
[email protected]
https://mail.gna.org/listinfo/getfem-users

Reply via email to