Skip to content

Commit

Permalink
bb/gas: unit correction; improve parameter description
Browse files Browse the repository at this point in the history
  • Loading branch information
jornbr committed Oct 3, 2024
1 parent f5b3b19 commit 8d6fa46
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 48 deletions.
24 changes: 12 additions & 12 deletions src/models/bb/gas/gas.F90
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@ subroutine initialize(self, configunit)

call self%register_implemented_routines((/source_do_surface/))

call self%get_parameter(self%A, 'A', '', 'coefficient A for Schmidt number polynomial')
call self%get_parameter(self%B, 'B', '', 'coefficient B for Schmidt number polynomial')
call self%get_parameter(self%C, 'C', '', 'coefficient C for Schmidt number polynomial')
call self%get_parameter(self%D, 'D', '', 'coefficient D for Schmidt number polynomial')
call self%get_parameter(self%E, 'E', '', 'coefficient E for Schmidt number polynomial')
call self%get_parameter(self%a1, 'a1', '', 'coefficient a1 for solubility function')
call self%get_parameter(self%a2, 'a2', '', 'coefficient a2 for solubility function')
call self%get_parameter(self%a3, 'a3', '', 'coefficient a3 for solubility function')
call self%get_parameter(self%a4, 'a4', '', 'coefficient a4 for solubility function')
call self%get_parameter(self%b1, 'b1', '', 'coefficient b1 for solubility function')
call self%get_parameter(self%b2, 'b2', '', 'coefficient b2 for solubility function')
call self%get_parameter(self%b3, 'b3', '', 'coefficient b3 for solubility function')
call self%get_parameter(self%A, 'A', '', 'coefficient A for Schmidt number polynomial (Table 1 in https://doi.org/10.5194/gmd-10-2169-2017)')
call self%get_parameter(self%B, 'B', '', 'coefficient B for Schmidt number polynomial (Table 1 in https://doi.org/10.5194/gmd-10-2169-2017)')
call self%get_parameter(self%C, 'C', '', 'coefficient C for Schmidt number polynomial (Table 1 in https://doi.org/10.5194/gmd-10-2169-2017)')
call self%get_parameter(self%D, 'D', '', 'coefficient D for Schmidt number polynomial (Table 1 in https://doi.org/10.5194/gmd-10-2169-2017)')
call self%get_parameter(self%E, 'E', '', 'coefficient E for Schmidt number polynomial (Table 1 in https://doi.org/10.5194/gmd-10-2169-2017)')
call self%get_parameter(self%a1, 'a1', '', 'coefficient a1 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)', scale_factor=1000.0_rk)
call self%get_parameter(self%a2, 'a2', '', 'coefficient a2 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)', scale_factor=1000.0_rk)
call self%get_parameter(self%a3, 'a3', '', 'coefficient a3 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)', scale_factor=1000.0_rk)
call self%get_parameter(self%a4, 'a4', '', 'coefficient a4 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)', scale_factor=1000.0_rk)
call self%get_parameter(self%b1, 'b1', '', 'coefficient b1 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)', scale_factor=1000.0_rk)
call self%get_parameter(self%b2, 'b2', '', 'coefficient b2 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)', scale_factor=1000.0_rk)
call self%get_parameter(self%b3, 'b3', '', 'coefficient b3 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)', scale_factor=1000.0_rk)

write(*,*) "Schmidt number at 20 degrees Celsius:", Schmidt_number(self, 20.0_rk)

Expand Down
72 changes: 36 additions & 36 deletions testcases/fabm-bb-gas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,45 @@ instances:
cfc11:
model: bb/gas # model type
parameters:
A: 3579.2 # coefficient A for Schmidt number polynomial
B: -222.63 # coefficient B for Schmidt number polynomial
C: 7.57490000E+00 # coefficient C for Schmidt number polynomial
D: -1.45950000E-01 # coefficient D for Schmidt number polynomial
E: 1.18740000E-03 # coefficient E for Schmidt number polynomial
a1: -2.29926100E+02 # coefficient a1 for solubility function
a2: 3.19655200E+02 # coefficient a2 for solubility function
a3: 1.19447100E+02 # coefficient a3 for solubility function
a4: -1.39165000E+00 # coefficient a4 for solubility function
b1: -1.42382000E-01 # coefficient b1 for solubility function
b2: 9.14590000E-02 # coefficient b2 for solubility function
b3: -1.57274000E-02 # coefficient b3 for solubility function
A: 3579.2 # coefficient A for Schmidt number polynomial (Table 1 in https://doi.org/10.5194/gmd-10-2169-2017)
B: -222.63 # coefficient B for Schmidt number polynomial (Table 1 in https://doi.org/10.5194/gmd-10-2169-2017)
C: 7.57490000E+00 # coefficient C for Schmidt number polynomial (Table 1 in https://doi.org/10.5194/gmd-10-2169-2017)
D: -1.45950000E-01 # coefficient D for Schmidt number polynomial (Table 1 in https://doi.org/10.5194/gmd-10-2169-2017)
E: 1.18740000E-03 # coefficient E for Schmidt number polynomial (Table 1 in https://doi.org/10.5194/gmd-10-2169-2017)
a1: -2.29926100E+02 # coefficient a1 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)
a2: 3.19655200E+02 # coefficient a2 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)
a3: 1.19447100E+02 # coefficient a3 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)
a4: -1.39165000E+00 # coefficient a4 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)
b1: -1.42382000E-01 # coefficient b1 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)
b2: 9.14590000E-02 # coefficient b2 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)
b3: -1.57274000E-02 # coefficient b3 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)
cfc12:
model: bb/gas # model type
parameters:
A: 3828.1 # coefficient A for Schmidt number polynomial
B: -249.86 # coefficient B for Schmidt number polynomial
C: 8.76030000E+00 # coefficient C for Schmidt number polynomial
D: -1.71600000E-01 # coefficient D for Schmidt number polynomial
E: 1.40800000E-03 # coefficient E for Schmidt number polynomial
a1: -2.18097100E+02 # coefficient a1 for solubility function
a2: 2.98970200E+02 # coefficient a2 for solubility function
a3: 1.13804900E+02 # coefficient a3 for solubility function
a4: -1.39165000E+00 # coefficient a4 for solubility function
b1: -1.43566000E-01 # coefficient b1 for solubility function
b2: 9.10150000E-02 # coefficient b2 for solubility function
b3: -1.53924000E-02 # coefficient b3 for solubility function
A: 3828.1 # coefficient A for Schmidt number polynomial (Table 1 in https://doi.org/10.5194/gmd-10-2169-2017)
B: -249.86 # coefficient B for Schmidt number polynomial (Table 1 in https://doi.org/10.5194/gmd-10-2169-2017)
C: 8.76030000E+00 # coefficient C for Schmidt number polynomial (Table 1 in https://doi.org/10.5194/gmd-10-2169-2017)
D: -1.71600000E-01 # coefficient D for Schmidt number polynomial (Table 1 in https://doi.org/10.5194/gmd-10-2169-2017)
E: 1.40800000E-03 # coefficient E for Schmidt number polynomial (Table 1 in https://doi.org/10.5194/gmd-10-2169-2017)
a1: -2.18097100E+02 # coefficient a1 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)
a2: 2.98970200E+02 # coefficient a2 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)
a3: 1.13804900E+02 # coefficient a3 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)
a4: -1.39165000E+00 # coefficient a4 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)
b1: -1.43566000E-01 # coefficient b1 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)
b2: 9.10150000E-02 # coefficient b2 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)
b3: -1.53924000E-02 # coefficient b3 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)
sf6:
model: bb/gas # model type
parameters:
A: 3177.5 # coefficient A for Schmidt number polynomial
B: -200.57 # coefficient B for Schmidt number polynomial
C: 6.88650000E+00 # coefficient C for Schmidt number polynomial
D: -1.33350000E-01 # coefficient D for Schmidt number polynomial
E: 1.08770000E-03 # coefficient E for Schmidt number polynomial
a1: -8.00343000E+01 # coefficient a1 for solubility function
a2: 117.232 # coefficient a2 for solubility function
a3: 2.95817000E+01 # coefficient a3 for solubility function
a4: 0.0 # coefficient a4 for solubility function
b1: 3.35183000E-02 # coefficient b1 for solubility function
b2: -3.73942000E-02 # coefficient b2 for solubility function
b3: 7.74862000E-03 # coefficient b3 for solubility function
A: 3177.5 # coefficient A for Schmidt number polynomial (Table 1 in https://doi.org/10.5194/gmd-10-2169-2017)
B: -200.57 # coefficient B for Schmidt number polynomial (Table 1 in https://doi.org/10.5194/gmd-10-2169-2017)
C: 6.88650000E+00 # coefficient C for Schmidt number polynomial (Table 1 in https://doi.org/10.5194/gmd-10-2169-2017)
D: -1.33350000E-01 # coefficient D for Schmidt number polynomial (Table 1 in https://doi.org/10.5194/gmd-10-2169-2017)
E: 1.08770000E-03 # coefficient E for Schmidt number polynomial (Table 1 in https://doi.org/10.5194/gmd-10-2169-2017)
a1: -8.00343000E+01 # coefficient a1 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)
a2: 117.232 # coefficient a2 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)
a3: 2.95817000E+01 # coefficient a3 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)
a4: 0.0 # coefficient a4 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)
b1: 3.35183000E-02 # coefficient b1 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)
b2: -3.73942000E-02 # coefficient b2 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)
b3: 7.74862000E-03 # coefficient b3 for solubility function (Table 2 in https://doi.org/10.5194/gmd-10-2169-2017)

0 comments on commit 8d6fa46

Please sign in to comment.