Re: [deal.II] Multiple material IDs

2021-02-07 Thread Jean-Paul Pelteret
Hi Corbin, To add to Daniel's suggestion, you could also associated some generic data structures to your cell that you could store the multi-material id data in, and query it as you like. I can think of three different ways to do this: 1. Directly attach your data structure to each cell's

Re: [deal.II] Multiple material IDs

2021-02-07 Thread Daniel Arndt
Corbin, if you have a maximal range for either of the two material ranges you could just compute a single material ID by material_id = material_id1 * max_material_id2 + material_id2 material_id2 = material_id % max_material_id2 material_id1 = material_id / max_material_id2 Best, Daniel Am

[deal.II] Multiple material IDs

2021-02-07 Thread Corbin Foucart
Hello all, I've read the documentation on material ID and it's not clear to me if there's a way to define more than one material ID. This could be helpful when wanting to isolate elements that correspond to the same material, but also when looking to isolate elements of different materials