File:Air density dependence on temperature and relative humidity.svg
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this PNG preview of this SVG file: 600 × 400 pixels. Other resolutions: 320 × 213 pixels | 640 × 427 pixels | 1,024 × 683 pixels | 1,280 × 853 pixels | 2,560 × 1,707 pixels.
Original file (SVG file, nominally 600 × 400 pixels, file size: 77 KB)
File information
Structured data
Captions
Summary[edit]
DescriptionAir density dependence on temperature and relative humidity.svg |
English: Effect of air temperature and relative humidity on the density of moist air. |
Date | |
Source | Own work |
Author | Anas Emad |
Julia code
using Plots
# Saturated water vapor pressure [Pa]
# See Ham, 2005. Useful Equations and Tables in Micrometeorology
function water_vapor_saturated_pressure(Ta, P)
Ta = Ta - 273.15
es = (1.0007 + (3.46e-5 * (P/1e3))) * 0.61121 *
exp((17.502 * Ta)/(Ta + 240.97)) * 1e3
return es
end
function water_vapor_density(e, Tair)
Rs_v = 461.5 # J/(kg.K) specific gas constant for water vapor
ρv = e/(Rs_v * Tair)
return ρv
end
# Calculate dry air density ρa [ kg m-3]
# P_a partial pressure of dry air [Pa]
# Tair air temperature [Kelvin]
function dry_air_density(P_a, Tair)
Rs_a = 287.058 # J/(kg. K) specific gas constant for dry air
ρa = P_a / (Rs_a * Tair)
return ρa
end
# Wet air density ρ [kg/m3]
# Tair air temperature in [Kelvin]
# P absolute atmospheric pressure [Pa]
function wet_air_density(RH, Tair, P)
es = water_vapor_saturated_pressure(Tair, P)
e = es*RH/100
ρv = water_vapor_density(e, Tair)
ρa = dry_air_density(P - e, Tair)
ρ = ρv + ρa
return ρ
end
# Calculate reference density
ρref = wet_air_density(0, 25 + 273.15, 1e5)
# Define ranges
Trange = (1:1:100) .+ 273.15
RHrange = (0:20:100)
# Create plot
plot(Trange .- 273.15, wet_air_density.(0, Trange, 1e5) ./ ρref, label = "RH = 0 %")
vline!([25], linestyle = :dash, label = missing)
for rh in RHrange[2:end]
display(plot!(Trange .- 273.15, wet_air_density.(rh, Trange, 1e5) ./ ρref, label = "RH = $(rh) %"))
end
xlabel!("Temperature [deg C]")
ylabel!("Density ratio ρ/ρ_ref")
annotate!(23,0.7, Plots.text("Ref", rotation = 90))
savefig("air_density_changes_on_T_and_RH.svg")
Licensing[edit]
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 16:22, 20 November 2020 | 600 × 400 (77 KB) | Anas Emad (talk | contribs) | Change y-axis label | |
15:27, 20 November 2020 | 600 × 400 (72 KB) | Anas Emad (talk | contribs) | Improve axis label | ||
14:54, 20 November 2020 | 600 × 400 (80 KB) | Anas Emad (talk | contribs) | Uploaded own work with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on en.wikipedia.org
- Usage on es.wikipedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Width | 600 |
---|---|
Height | 400 |