Check out the drawing here: http://libmesh.sourceforge.net/doxygen/classlibMesh_1_1Hex27.php
Look at the center nodes of each face, that'll help you with the pairing and ordering 0,5 are your Z axis faces 4,2 are your X axis faces 1,3 are your Y axis faces Also you can always just generate the mesh in code and look at it with a visualization tool. Cody On Apr 10, 2011, at 7:00 AM, 蔡园武 wrote: > I want to use periodic boundary condition in 3D in my code, but I'm not sure > how to do this. > In example 24, it builds a square with periodic boundary like this: > > PeriodicBoundary horz(RealVectorValue(2.0, 0., 0.)); > horz.myboundary = 3; > horz.pairedboundary = 1; > dof_map.add_periodic_boundary(horz); > PeriodicBoundary vert(RealVectorValue(0., 2.0, 0.)); > vert.myboundary = 0; > vert.pairedboundary = 2; > dof_map.add_periodic_boundary(vert); > > If I created a cube with: > MeshTools::Generation::build_cube (mesh, 10, 10, 10, -1., 1., -1., 1., > -1., 1., HEX8); > How to apply the periodic condition? Because I don't know the boundary ids > of the six opposite faces of the cube. > Does anyone have some advise? > > Thanks in advance. > > -- > Cai Yuanwu 蔡园武 > Dept. of Engineering Mechanics, > Dalian University of Technology, > Dalian 116024, China > ------------------------------------------------------------------------------ > Xperia(TM) PLAY > It's a major breakthrough. An authentic gaming > smartphone on the nation's most reliable network. > And it wants your games. > http://p.sf.net/sfu/verizon-sfdev > _______________________________________________ > Libmesh-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/libmesh-users ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
