You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My understanding is that CAM moisture variables for physics parameterizations are ‘moist mixing ratios’ or ‘specific humidities’ rather than dry mixing ratios. In other words they are per unit mass dry air + wv. (It seems like the mass of cloud is not included in the denominator). This is apparently chosen when variables are set up for a particular run, so it would be good to confirm that is what we are using in our CAM runs.
I previously thought this didn’t matter much because SAM is anelastic, but SAM does assume a form for the saturation q which is consistent with q in SAM being a dry mixing ratio. So we will be biased if we don’t convert.
Here is code to add to nn_interface_CAM:
From CAM to SAM:
! convert to dry mixing ratios for SAM
! assumes CAM variables are moist mixing ratios i.e. per unit dry mass of dry air + water vapor
rv = qv(i,k)/(1-qv(i,k)) ! rv a dry mixing ratio
rc = qc(i,k)*(1+rv) ! rc a dry mixing ratio
ri = qi(i,k)*(1+rv) ! ri a dry mixing ratio
q(i,k) = rv + rc + ri ! q now a dry mixing ratio
And from SAM to CAM:
! convert from SAM dry mixing ratios to CAM moist mixing ratios (specific humidity)
qi = qi/(1+qv) ! qi now per unit mass dry air + wv
qc = qc/(1+qv) ! qc now per unit mass dry air + wv
qv = qv/(1+qv) ! qv now per unit mass dry air + wv (i.e. specific humidity)
The text was updated successfully, but these errors were encountered:
@paogorman comments:
My understanding is that CAM moisture variables for physics parameterizations are ‘moist mixing ratios’ or ‘specific humidities’ rather than dry mixing ratios. In other words they are per unit mass dry air + wv. (It seems like the mass of cloud is not included in the denominator). This is apparently chosen when variables are set up for a particular run, so it would be good to confirm that is what we are using in our CAM runs.
I previously thought this didn’t matter much because SAM is anelastic, but SAM does assume a form for the saturation q which is consistent with q in SAM being a dry mixing ratio. So we will be biased if we don’t convert.
Here is code to add to nn_interface_CAM:
From CAM to SAM:
And from SAM to CAM:
The text was updated successfully, but these errors were encountered: