Skip to content

Commit

Permalink
Add conductivity kw
Browse files Browse the repository at this point in the history
  • Loading branch information
moyner committed Feb 19, 2024
1 parent 7985779 commit 8627cdf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/InputParser/keywords/grid.jl
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,17 @@ function parse_keyword!(data, outer_data, units, cfg, f, v::Union{
parse_and_set_grid_data!(data, outer_data, units, cfg, f, k, unit = :id)
end

const THERMAL_CONDUCTIVITY_TYPE = Union{Val{:THCROCK}, Val{:THCWATER}, Val{:THCGAS}, Val{:THCSOLID}, Val{:THCAVE}}

function parse_keyword!(data, outer_data, units, cfg, f, v::THERMAL_CONDUCTIVITY_TYPE)
k = unpack_val(v)
parse_and_set_grid_data!(data, outer_data, units, cfg, f, k, unit = unit_type(k))
end

function unit_type(::THERMAL_CONDUCTIVITY_TYPE)
return :rock_conductivity
end

function parse_keyword!(data, outer_data, units, cfg, f, v::Val{:MULTPV})
k = unpack_val(v)
parse_and_set_grid_data!(data, outer_data, units, cfg, f, k)
Expand Down

0 comments on commit 8627cdf

Please sign in to comment.