optimus.material.acoustics

Module Contents

Functions

load_material(name)

Load the physical properties of the specified material.

create_material(name, density, speed_of_sound[, ...])

Create an optimus material object with the specified parameters.

optimus.material.acoustics.load_material(name)

Load the physical properties of the specified material.

Parameters
namestr, tuple str

The name(s) of the material(s)

Returns
materialoptimus.Material

An (list of) optimus material object(s)

optimus.material.acoustics.create_material(name, density, speed_of_sound, attenuation_coeff_a=0, attenuation_pow_b=0, save_to_file=False, **properties_user)

Create an optimus material object with the specified parameters.

Parameters
namestr

The name of the material.

densityfloat

The mass density in kg/m^3

speed_of_soundfloat

The speed of sound in m/s

attenuation_coeff_a: float

Attenuation coefficient in power law Np/m/MHz Default: 0 (no attenuation)

attenuation_pow_b: float

Attenuation power in power law, dimensionless Default: 0 (no attenuation)

save_to_file: boolean

Write the material to the user-defined database.

**properties_userdict

A dictionary of additional material properties.

Returns
materialoptimus.Material

The optimus material object