feelpp icon indicating copy to clipboard operation
feelpp copied to clipboard

Provide interface for partitioning locally connected faces

Open prudhomm opened this issue 5 years ago • 9 comments

For some PDEs we have to deal with constant functions (scalar or vectorial). They have usually local support associated to one or several physical face markers for example in integral boundary conditions or when modeling rigid body motion. In order to accomodate the fact that these functions usually couple the degrees of freedom associated to some other discretisation, it may be beneficial to have the elements associated to the faces where the constant functions are defined to be neighbors of each others in order to avoid MPI communication and improve scalability

update feelpp_mesh_partitioner documentation

here is a command line

 ./feelpp_mesh_partitioner --json cases/three-spheres-part.json --ifile cases/three-spheres.geo  --part 24

and to export to paraview

mpirun -np 24 ./feelpp_mesh_exporter --gmsh.filename three-spheres_p24.json

prudhomm avatar Oct 04 '20 20:10 prudhomm

@prudhomm is there an example somewhere as to how to use the partitioner now ?

romainhild avatar Nov 10 '20 09:11 romainhild

here is a command line

 ./feelpp_mesh_partitioner --json cases/three-spheres-part.json --ifile cases/three-spheres.geo  --part 24

and to export to paraview

mpirun -np 24 ./feelpp_mesh_exporter --gmsh.filename three-spheres_p24.json

prudhomm avatar Nov 10 '20 12:11 prudhomm

@romainhild the testcase is in feelpp/tools/mesh/cases

prudhomm avatar Nov 10 '20 12:11 prudhomm

Stale issue message

github-actions[bot] avatar Oct 14 '21 23:10 github-actions[bot]

@prudhomm would it be possible to export process ids in feelpp_mesh_exporter to view partition within paraview?

Trophime avatar Mar 13 '24 14:03 Trophime

@prudhomm what is the meaning of the "size" parameter in the json defining the partioner aggregation?

Trophime avatar Mar 13 '24 14:03 Trophime

@prudhomm would it be possible to export process ids in feelpp_mesh_exporter to view partition within paraview?

@Trophime I did this modification in https://github.com/feelpp/feelpp/commit/2f01fb2f86c9b0c9ecfd6870f3f01bfe903bea0d (#2222) : the pid is exported when the application feelpp_mesh_exporter is used

thomas-saigre avatar Mar 13 '24 14:03 thomas-saigre

@thomas-saigre Cool. Do you have an example? I need to add an "export_pid" right?

Trophime avatar Mar 13 '24 14:03 Trophime

mpirun -np 4 feelpp_mesh_exporter --gmsh.filename <path/to/your/mesh> --dim <dim> should work. But this is not merged yet, so you will need to recompile from the branch. By default it exports the pid, you can add the option --export_pid 0 to not export them ;)

thomas-saigre avatar Mar 13 '24 14:03 thomas-saigre