Yagami.MaterialProperties.refractive_index!
— Methodrefractive_index!(
model,
n,
temperature,
pressure,
wavelength,
humidity,
CO2ppm
)
Returns the refractive index of air at a given wavelength and temperature, pressure, and humidity. The refractive index is calculated using the specified air model and parameters.
Arguments
model::G
: The air model to use for the calculation, which must be a subtype ofAirModel
.n::A
: An array to store the calculated refractive index values.temperature::A
: An array of temperatures in Kelvin.pressure::A
: An array of pressures in Pascals.wavelength::A
: An array of wavelengths in micrometers.humidity::A
: An array of relative humidity values as percentages (0-100).CO2ppm::A
: An array of CO2 concentrations in parts per million
Yagami.MaterialProperties.refractive_index
— Methodrefractive_index(
model,
temperature,
pressure,
wavelength,
humidity,
CO2ppm
)
Returns the refractive index of air at a given wavelength and temperature, pressure, and humidity. The refractive index is calculated using the specified air model and parameters.
Arguments
model::G
: The air model to use for the calculation, which must be a subtype ofAirModel
.temperature::Real
: The temperature in Kelvin.pressure::Real
: The pressure in Pascals.wavelength::Real
: The wavelength in micrometers.humidity::Real
: The relative humidity as a percentage (0-100).CO2ppm::Real
: The CO2 concentration in parts per million (ppm
Returns
- The refractive index of air at the specified wavelength and conditions.