Urban-M4 / WRF

Fork of https://github.com/wrf-model/WRF/fork
Other
0 stars 0 forks source link

Adding spatially explicit albedo for SLUCM #1

Open Peter9192 opened 1 month ago

Peter9192 commented 1 month ago

In this project we want to make it possible to pass spatially explicit fields for albedo and emissivity into the model.

This issue is an inventory of the steps needed to make that work.

so far so good. I'm gonna see how far I get with this.

TODO: compare Jisk/wudapt/nudapt approaches

Peter9192 commented 1 month ago

I made a call graph to see how data flows through wrf into the urban scheme.

flowchart TD
    subgraph init
    start_domain --> |grid| start_domain_em
    start_domain_em --> |urb2d| phy_init
    phy_init --> |urb2d| bl_init
    bl_init --> |urb2d| urban_var_init
    bl_init --> |urb2d| urban_var_init
    end 

    subgraph physics
    solve_em --> |grid| first_rk_step_part1
    first_rk_step_part1 --> |urb2d| surface_driver

    surface_driver ==> |urb2d| clmdrv
    clmdrv --> |urb0d init | urban

    surface_driver ==> |urb2d| lsm
    lsm --> |urb0d | urban

    surface_driver ==> |urb2d| lsm_mosaic
    lsm_mosaic --> |urb0d | urban
    lsm_mosaic --> |urb0d | urban

    surface_driver --> |urb2d| noahmp_urban 
    noahmp_urban -->  |urb0d| urban
    end

Notice that:

Peter9192 commented 1 month ago

More notes:

subroutine urban_var_init:

subroutine urban_param_init:

subroutine read_param:

subroutine urban: