Right, so create your mesh. Then create a MeshRefinement object and call uniformly_refine() on it with the level you want: http://libmesh.github.io/doxygen/classlibMesh_1_1MeshRefinement.html#a406e53c22bd8c9e2cefa862ef02f226f
On Mon, Mar 20, 2017 at 5:02 PM Maria Giuseppina Chiara Nestola < [email protected]> wrote: > Dear Cody, > i need to set the level by myself. i Found the function set_p_level, but > it doesn’t do what i really need. Is there something else? > > Best > > Maria > > On 20 Mar 2017, at 23:22, Cody Permann <[email protected]> wrote: > > I'm not sure I understand. Do you wish to set a level and then have > libMesh figure out how many times to refine? Normally for uniform > refinement, you build a MeshRefinement object and tell it to uniformly > refine your mesh a certain number of levels. After that, the elements will > report the desired level without you setting anything. Are you asking for > something different? > > On Mon, Mar 20, 2017 at 9:52 AM Maria Giuseppina Chiara Nestola < > [email protected]> wrote: > > Dear all, > > i am working with uniform refinement, i would like to know if there is in > libmesh a function to SET the level which the elements belong to. > > Best > > > Maria > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org <http://slashdot.org>! > http://sdm.link/slashdot > _______________________________________________ > Libmesh-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/libmesh-users > > > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
