Skip to content

Commit

Permalink
Add default condig for IsotropicChargeDriftModel
Browse files Browse the repository at this point in the history
  • Loading branch information
Padniuk committed Nov 11, 2024
1 parent 1b665c1 commit d6d4356
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
model: IsotropicChargeDriftModel
mobilities:
e: 1000cm^2/(V*s)
h: 1000cm^2/(V*s)
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ end

IsotropicChargeDriftModel(args...; T::Type = Float32, kwargs...) = IsotropicChargeDriftModel{T}(args...; kwargs...)

function IsotropicChargeDriftModel{T}(config_filename::AbstractString) where {T <: SSDFloat}
const default_icd_config_file = joinpath(get_path_to_example_config_files(), "IsotropicChargeDriftModel/mobilities.yaml")

function IsotropicChargeDriftModel{T}(config_filename::AbstractString = default_icd_config_file) where {T <: SSDFloat}
IsotropicChargeDriftModel(parse_config_file(config_filename))
end

Expand Down

0 comments on commit d6d4356

Please sign in to comment.