uwg.UBLDef module

Class definition for the Urban Boundary Layer (UBL).

class uwg.UBLDef.UBLDef(location, charLength, initialTemp, maxdx, dayBLHeight, nightBLHeight)[source]

Bases: object

Urban Boundary Layer (UBL) calculations.

Parameters:
  • location – Text string for relative location within a city. Choose from “N”, “NE”, “E”, “SE”, “S”, “SW”, “W”, “NW”, or “C”.

  • charLength – Value for characteristic length of the urban area [m].

  • initialTemp – Value for initial temperature [K].

  • maxdx – Value for maximum discretization length for the UBL model [m].

  • dayBLHeight – Value for daytime mixing height [m].

  • nightBLHeight – Value for nighttime boundary-layer height [m].

Properties:
  • location – relative location within a city (N, NE, E, SE, S, SW, W, NW, C).

  • charLength – characteristic length of the urban area (m)

  • perimeter – horizontal urban area (m2)

  • urbArea – length of the side of the urban area orthogonal

  • orthLength – length to side of urban area orthogonal to wind direction (m)

  • paralLength – length of side of urban area parallel to wind direction (m)

  • ublTemp – urban boundary layer temperature (K)

  • ublTempdx – urban boundary layer temperature discretization (K)

  • dayBLHeight – daytime mixing height, orig = 700

  • nightBLHeight – nighttime boundary-layer ht (m), Sing: 80, Bub-Cap: 50, orig 80

static nightforc(ublTempdx, dt, h_UBL, paralLength, charLength, RSM, Csurf)[source]
ublmodel(UCM, RSM, rural, forc, parameter, simTime)[source]