[Top][All Lists]

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

Re: [Getfem-users] grid functions in Getfem

From: Andreykiv, A.
Subject: Re: [Getfem-users] grid functions in Getfem
Date: Mon, 1 Sep 2008 16:19:20 +0200

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,

-----Original Message-----
From: address@hidden on behalf of Roman Putanowicz
Sent: Mon 9/1/2008 15:38
To: address@hidden
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.



Roman Putanowicz  < address@hidden  >
Institute for Computational Civil Engng (L-5)
Dept. of Civil Engng, Cracow Univ. of Technology, tel. +48 12 628 2569, fax 2034

Getfem-users mailing list

reply via email to

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