MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ radiated_pressure()

double MayaFlux::Kinesis::Acoustics::radiated_pressure ( double flow,
double previous_flow,
double time_step,
double air_density,
double distance = 1.0 )
nodiscardconstexprnoexcept

Pressure radiated into free space by a flow out of the end.

Parameters
flowFlow at the current sample
previous_flowFlow at the previous sample
time_stepTime step in seconds
air_densityAir density
distanceDistance from the end in metres
Returns
rho / (4 pi r) times the rate of change of flow, a point source in a free field

Definition at line 148 of file Radiation.hpp.

150{
151 return air_density / (4.0 * std::numbers::pi * distance) * (flow - previous_flow) / time_step;
152}
SpatialField distance(const glm::vec3 &anchor, float radius, DistanceMetric metric=DistanceMetric::EUCLIDEAN)
Normalized distance from an anchor point using the specified metric.

References MayaFlux::Kinesis::distance().

Here is the call graph for this function: