Take a look at 'src/apps/mesh_tool.cc' -

The '-b' command-line option should do exactly what you want.

You can either try using meshtool or extract the relevant code for yourself.

-Ben


On 11/19/08 9:17 AM, "Vijay S. Mahadevan" <[EMAIL PROTECTED]> wrote:

> Hi guys,
> 
> I need to extract a 1-dimensional mesh from a 2-dimensional mesh;
> Basically, extract one side of the 2-D mesh and create a 1-D mesh out
> of that. I was wondering what would be the elegant way to do this ? I
> saw that there is a BoundaryInfo object in MeshBase and am curious
> whether this would do the trick ? Also, a slight complication might
> arise (possibly) here since the 2-D mesh uses continuous Lagrangian
> basis while I need to use discontinuous basis for the 1-D mesh.
> 
> I want this to work for arbitrary 2-D meshes that can be read from
> files and not just using build_cube call. Any ideas on how to proceed
> on this would be greatly helpful.
> 
> Thanks a lot in advance.
> 
> Vijay


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to