On Tue, 10 Sep 2019, 서승진 wrote:
> Dear libmesh users,Hi. I currently use the mesh refinement class, > and I have question about the mesh refinement.1) Before element is > refined, it is active element, but when the element is refined, > it may not be active element, right? Correct; once it's refined it becomes an "ancestor" element, with children which are (until they're further refined or coarsened) active. > I currently use the assemble > function, which approach to each element by using " for > (const auto & elem: mesh.active_local_element_ptr_range()) " > This "active_local_element_ptr_range()" may approach to the active > element. Is this loop can approach to the refined element > (child element)? After you've refined an element (and prepared the mesh for use again, e.g. with EquationSystems::reinit()), that loop will now include the child elements and will no longer include the original element. > 2) Is it possible that specific elements which have refine > flag is refined in several times? If you manually flag elements, getting multiple levels of refinement will require multiple "set flags, then reinit, then set more flags" steps. See our adaptivity or adjoints examples. --- Roy _______________________________________________ Libmesh-users mailing list Libmesh-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-users