Model.set_acousticmesh_options#
- Model.set_acousticmesh_options(NumElemPerWaveLength=6, WaveSpeed=340000, DisplayCavities=0)#
Assigns certain options used during acoustic cavity meshing.
- Parameters:
NumElemPerWaveLength (int) – Specifies the element per wave length which is used to decide the target element size. The target size is computed as \(\frac{ \frac{WaveSpeed}{MaxFrequency} }{NumElemPerWaveLen}\)
WaveSpeed (double) – Specifies the wave length which is used to decide the target element size.
DisplayCavities (int) – Option to control the number of cavities displayed during the preview.
Example#
Assign the element per wave length equals to 6 , the wave speed equals to 31000.0 and the number of the cavities displayed equals to 10 during the acoustic cavity meshing#import hm import hm.entities as ent model = hm.Model() model.set_acousticmesh_options( NumElemPerWaveLength=6, WaveSpeed=31000.0, DisplayCavities=10 )