|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
Open end of a bore as a passive second order radiation load. More...
Go to the source code of this file.
Classes | |
| struct | MayaFlux::Kinesis::Acoustics::RadiationCoefficients |
| Prepared coefficients of one end, built once per bore or step change. More... | |
| struct | MayaFlux::Kinesis::Acoustics::RadiationSpec |
| What the network constants are scaled by. More... | |
| struct | MayaFlux::Kinesis::Acoustics::RadiationState |
| Inductor flow and branch pressure, zero at rest. More... | |
Namespaces | |
| namespace | MayaFlux |
| Main namespace for the Maya Flux audio engine. | |
| namespace | MayaFlux::Kinesis |
| namespace | MayaFlux::Kinesis::Acoustics |
Typedefs | |
| using | MayaFlux::Kinesis::Acoustics::RadiationModel = std::array<double, 3> |
| The three dimensionless constants of the radiation network, as gamma, lambda and theta. | |
Functions | |
| std::optional< RadiationCoefficients > | MayaFlux::Kinesis::Acoustics::make_radiation_coefficients (const RadiationSpec &spec, double end_area, double end_pressure_gain) noexcept |
| Prepare the coefficients of a radiating end. | |
| constexpr double | MayaFlux::Kinesis::Acoustics::radiated_pressure (double flow, double previous_flow, double time_step, double air_density, double distance=1.0) noexcept |
| Pressure radiated into free space by a flow out of the end. | |
| constexpr RadiationModel | MayaFlux::Kinesis::Acoustics::radiation_model_from_pade (double n1, double d1, double d2) noexcept |
| Network constants from the numerator and denominator of the Pade reflection coefficient R = -(1 - n1 s) / (1 - d1 s + d2 s^2). | |
| std::pair< double, double > | MayaFlux::Kinesis::Acoustics::radiation_step (const RadiationCoefficients &coefficients, RadiationState &state, double end_pressure, double upstream_flow) noexcept |
| Advance the end cell and the load one sample. | |
Variables | |
| constexpr RadiationModel | MayaFlux::Kinesis::Acoustics::flanged_radiation = radiation_model_from_pade(0.182, 1.825, 0.649) |
| Pipe in an infinite flange, end correction 0.8216 a. | |
| constexpr RadiationModel | MayaFlux::Kinesis::Acoustics::unflanged_radiation = radiation_model_from_pade(0.167, 1.393, 0.457) |
| Unflanged circular pipe, end correction 0.6133 a. | |
Open end of a bore as a passive second order radiation load.
The end sees an inertance L, standing for the mass of air moving just outside, in parallel with a series pair: a resistance R1 equal to the bore's characteristic impedance, then a resistance R2 in parallel with a capacitance C. Low frequencies are reflected by L, which gives the end correction, and high frequencies pass through R1 into the room. This is the lumped network of Bilbao and Chick, and its impedance is exactly the low order Pade fit to the Levine and Schwinger reflection coefficient given by Silva et al., with
L = lambda (a / c) Zc, R1 = Zc, R2 = gamma Zc, C = theta (a / c) / Zc
for end radius a and bore impedance Zc = rho c / S. The model is dimensionless in gamma, lambda and theta, so a flanged end is another set of three numbers.
The update is the trapezoidal rule on every element, in the end pressure averaged over the step. That is exact for the energy of a linear passive network, so the load can only absorb energy, and the end cell and the load are solved together in closed form with no iteration.
Definition in file Radiation.hpp.