On Mon, 25 Feb 2008, Yujie wrote:

> Thank you for your reply. In fact, the basic problem is how to know the
> relationship between the solution variables (one or several) and
> the non-solution variables(one or
> several). If one uses two Systems for them, one for solution
> variables, the other for non-solution variables. Only one mesh is for
> them. Assuming first-order Lagrange shape function is used, how to
> establish the relationship using the nodes on the mesh
> or other information? For example, there are three solution variables (u, v,
> p) on node 1 of the mesh in System 1, there
> are two non-solution variables (x, y) on node 1 of the mesh in System 2,
> how to know they are relevant to node 1?

That's what the DofMap class is for; give an Elem object (and possibly
a variable number) to DofMap::dof_indices() and it will fill a vector
with the global DoF index numbers for that variable(s) on that
element.

Alternatively, if you only want to use Lagrange shape functions, you
can use the DofObject class methods to directly find the indices on a
Node.
---
Roy

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to