Just setup sidesets and nodesets in your Exodus file then use 
mesh.boundary_info to test for them in your code to apply the BC you want on 
that sideset/nodeset.

ie do something like

if(mesh.boundary_info.boundary_id(current_elem, current_side) == 7)
{
  // apply BC corresponding to sideset 7
}

Derek

On Jun 23, 2011, at 10:57 AM, Ataollah Mesgarnejad wrote:

> Dear all,
> 
> I need to get the boundary conditions from exodusII file. I'm going through 
> MeshData class but it's a bit confusing since I never used it before. Can 
> anybody help me with a snippet or a list of things that I need to do to 
> impose the boundary conditions from exodusII file?
> 
> Cheers,
> Ata
> ------------------------------------------------------------------------------
> Simplify data backup and recovery for your virtual environment with vRanger.
> Installation's a snap, and flexible recovery options mean your data is safe,
> secure and there when you need it. Data protection magic?
> Nope - It's vRanger. Get your free trial download today.
> http://p.sf.net/sfu/quest-sfdev2dev
> _______________________________________________
> Libmesh-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libmesh-users


------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to