NordicESMhub / OsloCTM3

Oslo CTM3 – A global chemical transport model
MIT License
2 stars 4 forks source link

dynamic viscosity #2

Open ziu1986 opened 5 years ago

ziu1986 commented 5 years ago

Recently, I have found at least three different definitions of "dynamic viscosity" throughout different parts of the model:

  1. There are far too many hard coded parameters and constants in the code... they should be tracked down and put into a "namelist".
  2. I would really love to implement a xml-based namelisting and steering...
  3. As can be seen from this example, there is much of duplication of code though out the model, there is a tremendous potential of line reduction...
ziu1986 commented 5 years ago

Note: Sutherland's law

ziu1986 commented 5 years ago

Note: Linear fit used in drydeposition_oslo.f90 dynamic_viscosity.pdf

ziu1986 commented 5 years ago

Update: I have tested the range of z0 and the resulting Rb for both parametrizations of the dynamic viscosity. Well, I only ran the model for one entire day, though. The good news first: The difference in Rb is only about 1.4%. Meaning the average Rb using the "Prather"-fit is only about 1.4% smaller than it would have been using Sutherland's law. This is mainly due to the fact that Rb is generally, in about 91% (88%) of all cases, below the threshold of 10 sm^-1 (see dynamic_viscosity_diffs.pdf dynamic_viscosity_zo_Rb.pdf). Calculating the weighted mean for both Rb distributions, while setting all values which appear below the threshold to the threshold value:

<Rb_prather> = 1007.92 scm^-1 (=> vb_prather = 0.00099 cms^-1)
<Rb_sutherland> = 1021.80 scm^-1 (=> vb_sutherland = 0.00098 cms^-1)

Hence, the impact is rather small, but we should switch to a consistent dynamic viscosity through out the model (see above comments).