API¶
- class pace.physics.Microphysics(stencil_factory: pace.dsl.stencil.StencilFactory, quantity_factory: pace.util.initialization.allocator.QuantityFactory, grid_data: pace.util.grid.helper.GridData, namelist: pace.physics._config.PhysicsConfig)¶
Bases:
object
- gfdl_cloud_microphys_init(dt_atmos: float)¶
- setupm(dt_atmos: float)¶
- class pace.physics.Physics(stencil_factory: pace.dsl.stencil.StencilFactory, quantity_factory: pace.util.initialization.allocator.QuantityFactory, grid_data: pace.util.grid.helper.GridData, namelist: pace.physics._config.PhysicsConfig, active_packages: List[Literal[typing.Literal[microphysics]]])¶
Bases:
object
- class pace.physics.PhysicsConfig(dt_atmos: int = 0, hydrostatic: bool = False, npx: int = 0, npy: int = 0, npz: int = 0, nwat: int = 0, do_qa: bool = False, c_cracw: float = 0.8, c_paut: float = 0.5, c_pgacs: float = 0.01, c_psaci: float = 0.05, ccn_l: float = 300.0, ccn_o: float = 100.0, const_vg: bool = False, const_vi: bool = False, const_vr: bool = False, const_vs: bool = False, vs_fac: float = 1.0, vg_fac: float = 1.0, vi_fac: float = 1.0, vr_fac: float = 1.0, de_ice: bool = False, layout: Tuple[int, int] = (1, 1), tau_imlt: float = 600.0, tau_i2s: float = 1000.0, tau_g2v: float = 1200.0, tau_v2g: float = 21600.0, ql_mlt: float = 0.002, qs_mlt: float = 1e-06, t_sub: float = 184.0, qi_gen: float = 1.82e-06, qi_lim: float = 1.0, qi0_max: float = 0.0001, rad_snow: bool = True, rad_rain: bool = True, dw_ocean: float = 0.1, dw_land: float = 0.15, tau_l2v: float = 300.0, c2l_ord: int = 4, do_sedi_heat: bool = False, do_sedi_w: bool = True, fast_sat_adj: bool = True, qc_crt: float = 5e-08, fix_negative: bool = True, irain_f: int = 0, mp_time: float = 225.0, prog_ccn: bool = False, qi0_crt: float = 8e-05, qs0_crt: float = 0.003, rh_inc: float = 0.2, rh_inr: float = 0.3, rthresh: float = 1e-05, sedi_transport: bool = True, use_ppm: bool = False, vg_max: float = 16.0, vi_max: float = 1.0, vr_max: float = 16.0, vs_max: float = 2.0, z_slope_ice: bool = True, z_slope_liq: bool = True, tice: float = 273.16, alin: float = 842.0, clin: float = 4.8, namelist_override: Union[str, NoneType] = None)¶
Bases:
object
- alin: float = 842.0¶
- c2l_ord: int = 4¶
- c_cracw: float = 0.8¶
- c_paut: float = 0.5¶
- c_pgacs: float = 0.01¶
- c_psaci: float = 0.05¶
- ccn_l: float = 300.0¶
- ccn_o: float = 100.0¶
- clin: float = 4.8¶
- const_vg: bool = False¶
- const_vi: bool = False¶
- const_vr: bool = False¶
- const_vs: bool = False¶
- de_ice: bool = False¶
- do_qa: bool = False¶
- do_sedi_heat: bool = False¶
- do_sedi_w: bool = True¶
- dt_atmos: int = 0¶
- dw_land: float = 0.15¶
- dw_ocean: float = 0.1¶
- fast_sat_adj: bool = True¶
- fix_negative: bool = True¶
- classmethod from_f90nml(f90_namelist: f90nml.namelist.Namelist) pace.physics._config.PhysicsConfig ¶
- classmethod from_namelist(namelist: pace.util.namelist.Namelist) pace.physics._config.PhysicsConfig ¶
- hydrostatic: bool = False¶
- irain_f: int = 0¶
- layout: Tuple[int, int] = (1, 1)¶
- mp_time: float = 225.0¶
- namelist_override: Optional[str] = None¶
- npx: int = 0¶
- npy: int = 0¶
- npz: int = 0¶
- nwat: int = 0¶
- prog_ccn: bool = False¶
- qc_crt: float = 5e-08¶
- qi0_crt: float = 8e-05¶
- qi0_max: float = 0.0001¶
- qi_gen: float = 1.82e-06¶
- qi_lim: float = 1.0¶
- ql_mlt: float = 0.002¶
- qs0_crt: float = 0.003¶
- qs_mlt: float = 1e-06¶
- rad_rain: bool = True¶
- rad_snow: bool = True¶
- rh_inc: float = 0.2¶
- rh_inr: float = 0.3¶
- rthresh: float = 1e-05¶
- sedi_transport: bool = True¶
- t_sub: float = 184.0¶
- tau_g2v: float = 1200.0¶
- tau_i2s: float = 1000.0¶
- tau_imlt: float = 600.0¶
- tau_l2v: float = 300.0¶
- tau_v2g: float = 21600.0¶
- tice: float = 273.16¶
- use_ppm: bool = False¶
- vg_fac: float = 1.0¶
- vg_max: float = 16.0¶
- vi_fac: float = 1.0¶
- vi_max: float = 1.0¶
- vr_fac: float = 1.0¶
- vr_max: float = 16.0¶
- vs_fac: float = 1.0¶
- vs_max: float = 2.0¶
- z_slope_ice: bool = True¶
- z_slope_liq: bool = True¶
- class pace.physics.PhysicsState(qvapor: pace.util.quantity.Quantity, qliquid: pace.util.quantity.Quantity, qice: pace.util.quantity.Quantity, qrain: pace.util.quantity.Quantity, qsnow: pace.util.quantity.Quantity, qgraupel: pace.util.quantity.Quantity, qo3mr: pace.util.quantity.Quantity, qsgs_tke: pace.util.quantity.Quantity, qcld: pace.util.quantity.Quantity, pt: pace.util.quantity.Quantity, delp: pace.util.quantity.Quantity, delz: pace.util.quantity.Quantity, ua: pace.util.quantity.Quantity, va: pace.util.quantity.Quantity, w: pace.util.quantity.Quantity, omga: pace.util.quantity.Quantity, physics_updated_specific_humidity: pace.util.quantity.Quantity, physics_updated_qliquid: pace.util.quantity.Quantity, physics_updated_qice: pace.util.quantity.Quantity, physics_updated_qrain: pace.util.quantity.Quantity, physics_updated_qsnow: pace.util.quantity.Quantity, physics_updated_qgraupel: pace.util.quantity.Quantity, physics_updated_cloud_fraction: pace.util.quantity.Quantity, physics_updated_pt: pace.util.quantity.Quantity, physics_updated_ua: pace.util.quantity.Quantity, physics_updated_va: pace.util.quantity.Quantity, delprsi: pace.util.quantity.Quantity, phii: pace.util.quantity.Quantity, phil: pace.util.quantity.Quantity, dz: pace.util.quantity.Quantity, wmp: pace.util.quantity.Quantity, prsi: pace.util.quantity.Quantity, prsik: pace.util.quantity.Quantity, land: pace.util.quantity.Quantity, quantity_factory: dataclasses.InitVar[QuantityFactory], active_packages: dataclasses.InitVar[typing.List[str]])¶
Bases:
object
- active_packages: dataclasses.InitVar[typing.List[str]]¶
- delprsi: pace.util.quantity.Quantity¶
- classmethod init_from_storages(storages: Mapping[str, Any], sizer: pace.util.initialization.sizer.GridSizer, quantity_factory: pace.util.initialization.allocator.QuantityFactory, active_packages: List[str]) pace.physics.physics_state.PhysicsState ¶
- classmethod init_zeros(quantity_factory, active_packages: List[str]) pace.physics.physics_state.PhysicsState ¶
- physics_updated_cloud_fraction: pace.util.quantity.Quantity¶
- physics_updated_pt: pace.util.quantity.Quantity¶
- physics_updated_qgraupel: pace.util.quantity.Quantity¶
- physics_updated_qice: pace.util.quantity.Quantity¶
- physics_updated_qliquid: pace.util.quantity.Quantity¶
- physics_updated_qrain: pace.util.quantity.Quantity¶
- physics_updated_qsnow: pace.util.quantity.Quantity¶
- physics_updated_specific_humidity: pace.util.quantity.Quantity¶
- physics_updated_ua: pace.util.quantity.Quantity¶
- physics_updated_va: pace.util.quantity.Quantity¶
- prsik: pace.util.quantity.Quantity¶
- qgraupel: pace.util.quantity.Quantity¶
- qliquid: pace.util.quantity.Quantity¶
- qo3mr: pace.util.quantity.Quantity¶
- qrain: pace.util.quantity.Quantity¶
- qsgs_tke: pace.util.quantity.Quantity¶
- qsnow: pace.util.quantity.Quantity¶
- quantity_factory: dataclasses.InitVar[QuantityFactory]¶
- qvapor: pace.util.quantity.Quantity¶
- property xr_dataset¶