Skip to content

Commit

Permalink
Extended AtmosConditions with deltaT
Browse files Browse the repository at this point in the history
  • Loading branch information
Rene Verbeek committed Feb 17, 2020
1 parent eb0c3c8 commit ecc7029
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
@@ -1,7 +1,7 @@
name = "ISAtmosphere"
uuid = "2079e98e-b9a5-4add-91d8-8d7b7bc8f821"
authors = ["René Verbeek"]
version = "0.2.4"
version = "0.2.5"

[compat]
julia = "1.3"
Expand Down
5 changes: 3 additions & 2 deletions src/ISAtmosphere.jl
Expand Up @@ -51,7 +51,7 @@ const βT∇_K_m = -0.0065
const Hp_trop_m = 11000.0

"""
AtmosConditions(Hp_m, T_K, p_Pa, ρ_kg_m³, a_m_s)
AtmosConditions(Hp_m, T_K, ΔT_K, p_Pa, ρ_kg_m³, a_m_s)
Immutable STRUCT to keep a set of atmospheric conditions together. This struct
can be used to also store an arbitrary set of atmospheric conditions.
Expand All @@ -60,6 +60,7 @@ The function `conditions` can be used to create the struct.
struct AtmosConditions
Hp_m::Float64
T_K::Float64
ΔT_K::Float64
p_Pa::Float64
ρ_kg_m³::Float64
a_m_s::Float64
Expand Down Expand Up @@ -321,7 +322,7 @@ function conditions(Hp_m::Float64, ΔT_K::Float64 = 0.0)
p = p_Pa(Hp_m, ΔT_K)
ρ = ρ_kg_m³(p, T)
a = a_m_s(T)
return AtmosConditions(Hp_m, T, p, ρ, a)
return AtmosConditions(Hp_m, T, ΔT_K, p, ρ, a)
end

end # module

0 comments on commit ecc7029

Please sign in to comment.