On Oct 28, 2009, at 10:38 AM, Vijay S. Mahadevan wrote: > Arvind, If you are interested in storing the surface/volume ids for > each element, you need to create additional data in Elem class. This > would be very similar to the subdomain_id() method.
Elems already have ids... elem->id(). If you are careful when adding your elems from your mesh file you can make them match what's in the mesh file. As for surfaces.... those are probably used for boundary conditions. In that case you should add those surface ids to the BoundaryInfo class associated with the Mesh. You can look in the Exodus reader / writer for an idea of how this can work. This will allow you to get lists of sides back from the BoundaryInfo object when you want to apply a boundary condition. Derek ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
