Errors when using materials different than itu_concrete
Hi, I'm loading a scene to sionna where the buildings have the "itu_concrete" material and the ground is set to "itu_medium_dry_ground". When I'm executing the load_scene() the preview works properly and I can visualize the scene. However, when I'm executing "cm = scene.coverage_map(cm_cell_size=[1,1])" I'm getting the following error:
If I change the material to "itu_concrete" it does work well. I've tried other materials and it only worked when the ground is set to "itu_concrete". Actually, when I try "itu_metal" or "itu_brick" the jupyter kernel dies when loading the scene with load_scene() and I can't even see the preview.
Hi,
The issue is that not all ITU materials are defined for the same frequencies (see the Table in the API documentation of RadioMaterials. So you would either need to change the frequency or choose a material that is defined for your frequency of interest. You can also create custom material if you want.
However, the fact that the kernel dies is undesired behaviour that we need to investigate.
Hi @paulalmasan,
Could you please provide a code snippet that reproduces the error?
I've found a bug in the code to convert a scene to Mitsuba format so I'm closing the issue.
Hi again, I was investigating further the error using blender this time and I came up with it again. What I'm trying to do is to load a scene like in the tutorial https://www.youtube.com/watch?v=7xHLDxUaQ7c but when I'm changing the ground materials I'm getting the error mentioned above. I'm attaching the mitsuba files to reproduce the error and a jupyter notebook. In the folder you can see that when loading the "scene_concrete.xml" it should work but not with "scene_dry_ground.xml". The files are the same but with a different ground material. Both files were generated with Mitsuba and Blender 4.0.
Hello @paulalmasan,
As @jhoydis wasa saying, not all ITU materials are well-defined for all frequencies. Here is where the "well-defined" check is performed:
https://github.com/NVlabs/sionna/blob/0a4a22ec484d80ed038bf9b30240dfa4a3f90216/sionna/rt/radio_material.py#L279-L287
And here is where the medium_dry_ground material is defined (I believe):
https://github.com/NVlabs/sionna/blob/0a4a22ec484d80ed038bf9b30240dfa4a3f90216/sionna/rt/itu_materials.py#L269-L276
If you check that material's properties at the frequency that you are trying to simulate, you will likely find that it is not well-defined (please let us know if that's not the case).
Thanks a lot @merlinND!! Your comment solved my issue with the "well-defined" materials. Indeed the problem was with the wrong frequency I was using instead of the material being "well-defined".