Model.acousticmeshinit#

Model.acousticmeshinit(structural_collection, seats_collection, cell_size, seat_coupling, topo_patch_size, semantic_patch_size, create_hole_elements, flag, reserved)#

Used to initialize an acoustic cavity mesh. This function must be run before Model.acousticmeshcreate(), which actually generates the preview and solid acoustic cavity meshes.

Parameters:
  • structural_collection (Collection) – The collection containing the entities (structural components).

  • seats_collection (Collection) – The collection containing the entities (seat components).

  • cell_size (double) – The element size of the solid elements.

  • seat_coupling (int) –

    A flag defining the seat coupling. Valid values are:

    0 - Node-to-node re-mesh.

    1 - Seats are considered as main MPC.

    2 - Seats are considered as secondary MPC.

  • topo_patch_size (double) – The input (topological) hole patch size.

  • semantic_patch_size (double) – The input (semantic) hole patch size.

  • create_hole_elements (int) – A value of 1 indicates to create patch elems to topo holes. These elements are placed in the ^patches_holes component.

  • flag (int) – Reserved for future use. Must be specified as 0.

  • reserved (double) – Reserved for future use. Must be specified as 0.

Example#

Initialize an acoustic cavity mesh with an element size of 40.0 , patching holes and gaps of 200.0 and 100.0 respectively , and creating the hole patch elements#
import hm
import hm.entities as ent

model = hm.Model()

# Components with ID 1,2,3,5 are structural
structCol = hm.Collection(
    model, ent.Component, [1, 2, 3, 5]
)

# Component with ID 4 is a seat one
seatCol = hm.Collection(model, ent.Component, [4])
model.acousticmeshinit(
    structural_collection=structCol,
    seats_collection=seatCol,
    cell_size=40.0,
    seat_coupling=0,
    topo_patch_size=200.0,
    semantic_patch_size=100.0,
    create_hole_elements=1,
    flag=0,
    reserved=0,
)

# *** the rest of the acoustic mesh process ***