konrad.convection.FixedDynamicalHeating.create_and_check_profile¶
- FixedDynamicalHeating.create_and_check_profile(atmosphere, surface, surfaceT, lapse, timestep=0.1)¶
Create a convectively adjusted temperature profile and calculate how close it is to satisfying energy conservation.
- Parameters
atmosphere (konrad.atmosphere.Atmosphere) – Atmosphere model.
surface (konrad.surface) – surface associated with old temperature profile
surfaceT (float) – surface temperature of the new profile
lp (ndarray) – lapse rate in K/Pa
timestep (float) – not required in this case
- Returns
ndarray – new atmospheric temperature profile float: energy difference between the new profile and the old one