-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Jensen & Nugent 2017 GCCN example (incl. Grabowski et al. diffusion t…
…hermics) (#1267) Co-authored-by: Sanket Bhiogade <sbhiogade@agh.edu.pl> Co-authored-by: Sylwester Arabas <sylwester.arabas@agh.edu.pl>
- Loading branch information
1 parent
fe88baf
commit b53c8f0
Showing
29 changed files
with
13,797 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
""" | ||
as in [Grabowski et al. (2011)](https://doi.org/10.1016/j.atmosres.2010.10.020) | ||
""" | ||
|
||
from .pruppacher_and_klett_2005 import PruppacherKlett | ||
|
||
|
||
class GrabowskiEtAl2011(PruppacherKlett): | ||
pass |
14 changes: 14 additions & 0 deletions
14
PySDM/physics/diffusion_kinetics/jensen_and_nugent_2017.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
""" | ||
as in [Jensen and Nugent 2017](https://doi.org/10.1175/JAS-D-15-0370.1) | ||
(which refers to [Grabowski et al. (2011)](https://doi.org/10.1016/j.atmosres.2010.10.020) | ||
but uses different gas constant, typo?) | ||
""" | ||
|
||
import numpy as np | ||
from .grabowski_et_al_2011 import GrabowskiEtAl2011 | ||
|
||
|
||
class JensenAndNugent2017(GrabowskiEtAl2011): | ||
@staticmethod | ||
def lambdaD(const, D, T): | ||
return D / np.sqrt(2 * const.Rd * T) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
""" | ||
as in [Grabowski et al. (2011)](https://doi.org/10.1016/j.atmosres.2010.10.020) | ||
""" | ||
|
||
|
||
class GrabowskiEtAl2011: | ||
def __init__(self, _): | ||
pass | ||
|
||
@staticmethod | ||
def D(const, T, p): # pylint: disable=unused-argument | ||
return const.diffussion_thermics_D_G11_A * ( | ||
const.diffussion_thermics_D_G11_B * T + const.diffussion_thermics_D_G11_C | ||
) | ||
|
||
@staticmethod | ||
def K(const, T, p): # pylint: disable=unused-argument | ||
return ( | ||
const.diffussion_thermics_K_G11_A * T**3 | ||
+ const.diffussion_thermics_K_G11_B * T**2 | ||
+ const.diffussion_thermics_K_G11_C * T | ||
+ const.diffussion_thermics_K_G11_D | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.