Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prescribed surface heat and evaporative fluxes #664

Merged
merged 3 commits into from
Jan 15, 2025
Merged

Prescribed surface heat and evaporative fluxes #664

merged 3 commits into from
Jan 15, 2025

Conversation

milankl
Copy link
Member

@milankl milankl commented Jan 14, 2025

Introduces PrescribedSurfaceHeatFlux and PrescribedSurfaceEvaporation to read those in from the diagnostic variabels for coupling.

@milankl milankl added the surface ⛰️ Affecting the interaction with the planetary boundary layer label Jan 14, 2025
@milankl
Copy link
Member Author

milankl commented Jan 15, 2025

Starting with 0 humidity and no surface heat/humidity flux but then suddenly imposing 5e-5 kg/s/m^2 on the northern hemisphere seems to work in order to prescribe fluxes

out.mp4

done via

using SpeedyWeather
spectral_grid = SpectralGrid()

surface_heat_flux = PrescribedSurfaceHeatFlux()
surface_evaporation = PrescribedSurfaceEvaporation()
model = PrimitiveWetModel(spectral_grid; surface_heat_flux, surface_evaporation)
simulation = initialize!(model);

# no fluxes no humidity
set!(simulation, humid=0)
run!(simulation, period=Day(10), output=true)

# constant northern hemisphere fluxes
set!(simulation.diagnostic_variables.physics.evaporative_flux, (λ, φ) -> φ > 0 ? 5e-5 : 0, model.geometry)
run!(simulation, period=Day(10), output=true)

@milankl
Copy link
Member Author

milankl commented Jan 15, 2025

and lowermost layer temperature after switching on a +100W/m^2 flux on the northern but -100W/m^2 flux on the southern hemisphere

out.mp4

via

set!(simulation.diagnostic_variables.physics.sensible_heat_flux, (λ, φ) -> sign(φ)*100, model.geometry)
run!(simulation, period=Day(10), output=true)

@milankl milankl merged commit f3c027d into main Jan 15, 2025
6 checks passed
@milankl milankl deleted the mk/coupling1 branch January 29, 2025 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
surface ⛰️ Affecting the interaction with the planetary boundary layer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant