chengcli / canoe

Comprehensive Atmosphere N' Ocean Engine
14 stars 16 forks source link

vapor functions/saturation adjustment #148

Open cometz95 opened 6 months ago

cometz95 commented 6 months ago

saturation adjustment crashes (returns nans or negative concentrations) when the saturation vapor pressure gets very small, or very large. for example, very cold atmosphere (~130K) crashes with the SO2/H2S vapor function, which is quite small vapor pressure at these temperatures. saturationAdjustment also crashes when trying to condense CO2, whose saturation vapor pressure is huge at a few hundreds of K