Open aed-modeller opened 2 years ago
A plot of Kpo4p values from this function, with Pexch = 0.78 for the Coorong
Hi Peisheng
I think this is actually a whole new adsorption model, rather than a salinity correction to the existing model
This needs to be added as a new PO4AdsorptionModel https://github.com/AquaticEcoDynamics/libaed-water/blob/a27a543d9f53aaf3c5cd7ff68f051fc2b8b11828/src/aed_phosphorus.F90#L314
The issue is also that the Pexch is changing dynamically and is not a constant at 0.78.
https://github.com/AquaticEcoDynamics/libaed-water/blob/a27a543d9f53aaf3c5cd7ff68f051fc2b8b11828/src/aed_phosphorus.F90#L308
Below is a new function for the Kpo4p prediction as function of salinity and temperature. This function comes out directly from Zhang and Huang 2011, and is much more accurate and reliable than the previous one.
Note this function calculate the Kpo4p directly, not a scale factor. So in the aed_phosphorus.f90 the line 308
Kpo4p = data%Kpo4p * Kpo4p_fT_fSal(data%theta_Kpo4, data%K_sal, salt, temp)
should be changed to
Kpo4p = Kpo4p_fT_fSal(data%Pexch, salt, temp)
The function only requirs one parameter, which is the exchangable phosphate content in the particles (Pexch).