Thanks Ben. I could use that code but it might need a small variation.
I only need one specific side or edge of the 2-D domain and the code
gives me the whole of the boundary mesh. While this is useful for
other purposes, this is very confusing when I try to read it back in
as a 1-Dimensional mesh.

Now that I think about it, I guess I could have just looped through
the 2-D mesh and then extracted nodes that fall on a certain side.
This could be done now a lot easily once I have obtained the boundary
mesh using meshtool.cc also. Well, thanks for pointing out the
meshtool app to help me out !

~Vijay

On Wed, Nov 19, 2008 at 11:33 AM, Benjamin Kirk <[EMAIL PROTECTED]> wrote:
>
> 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