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

Reply via email to