|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
#include <cmath>#include <limits>#include <AMReX_REAL.H>#include <AMReX_GpuQualifiers.H>#include <AMReX_Math.H>#include "ERF_NumericalConstants.H"
Go to the source code of this file.
Functions | |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool | is_valid_lsm_value (amrex::Real v) |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool is_valid_lsm_value | ( | amrex::Real | v | ) |
|
constexpr |
|
constexpr |
Referenced by ERF::Advance(), ERF::BuildPlot3DScratch(), Compute_InvDt_Compressible(), MYNNPBLH::compute_pblh(), derived::erf_dermaxreflectivity(), ERF::ERF_shared(), ERF::estTimeStep(), SurfaceLayer::fill_qsurf_with_skin_moisture(), ERF::FillIntermediatePatch(), ERF::FillPatchFineLevel(), ERF::FindInitialEye(), ERF::HurricaneMaxVelTracker(), ERF::HurricaneMinPressureTracker(), ERF::init_only(), ERF::init_stuff(), init_which_terrain_grid(), interpolate_1d(), adiabatic::iterate_flux(), adiabatic_eb::iterate_flux(), adiabatic_mod_charnock::iterate_flux(), adiabatic_charnock::iterate_flux(), adiabatic_donelan::iterate_flux(), adiabatic_wave_coupled::iterate_flux(), surface_flux_charnock::iterate_flux(), surface_flux_mod_charnock::iterate_flux(), surface_flux_donelan::iterate_flux(), surface_temp_charnock::iterate_flux(), surface_temp_mod_charnock::iterate_flux(), surface_temp_donelan::iterate_flux(), surface_flux_wave_coupled::iterate_flux(), surface_temp_wave_coupled::iterate_flux(), surface_flux::iterate_flux(), surface_temp::iterate_flux(), surface_temp_eb::iterate_flux(), surface_flux_eb::iterate_flux(), MOSTAverage::make_MOSTAverage_at_level(), SurfaceLayer::make_SurfaceLayer_at_level(), make_terrain_fitted_coords(), ERF::MakeNewLevelFromCoarse(), ERF::poisson_wall_dist(), ReadBndryPlanes::read_file(), ReadBndryPlanes::read_input_files(), ERF::ReadCheckpointFile(), ERF::ReadVelsOnlyFromCheckpointFile(), ERF::RemakeLevel(), and ObsNudging::surface().
|
constexpr |
|
constexpr |
Referenced by WDM6::Advance(), WSM6::Advance(), ShocImplicit::advance_implicit_state(), SLM::AdvanceSLM(), calc_p_isothermal(), InputSoundingData::calc_rho_p(), InputSoundingData::calc_rho_p_isentropic(), TurbulentPerturbation::calc_tpi_amp(), calc_wstar(), Charnock_roughness(), TerminalVelocity< RT >::CloudRainShima(), COARE3_roughness(), rrtmgp::compute_aerocom_cloudtop(), ShocImplicit::compute_dp_inverse(), HSEutils::compute_F(), compute_if_most_target_vel(), SurfaceLayer::compute_sfc_params_from_lsm_fluxes(), SurfaceLayer::compute_SurfaceLayer_bcs(), HSEutils::compute_theta(), ShocImplicit::compute_tmpi(), ComputeDiffusivityMRF(), ComputeDiffusivityMYJ(), ComputeDiffusivityMYNN25(), ComputeDiffusivityMYNNEDMF(), ComputeDiffusivityYSU(), ComputeDiffusivityYSUNew(), ComputeQKESourceTerms(), ShocStructure::diagnose_length_and_brunt(), ShocStructure::diagnose_pblh(), ShocStructure::diagnose_surface_layer(), ShocMoments::diagnose_third_moments(), ShocTKE::diagnose_tke_and_diffusivities(), Donelan_roughness(), derived::erf_dermucape(), SLM::fh_calc(), near_surface_diagnostics::fill(), ShocPreprocess::fill_columns(), ERF::FillPlot3DVars(), ShocImplicit::finalize_from_pdf(), ERF::ibseb_bulk_richardson_height(), TerminalVelocity< RT >::IceBohm(), ImmersedForcingBuildings_Scalar(), ImmersedForcingTerrain_Scalar(), ImmersedForcingTerrain_Xmom(), ImmersedForcingTerrain_Ymom(), HSEutils::init_isentropic_hse_constant_dz(), HSEutils::init_isentropic_hse_stretched_dz(), HSEutils::init_isentropic_hse_terrain(), init_my_custom_terrain(), SolverChoice::init_params(), metgrid_surface_pressure(), SHOCInterface::mf_to_kokkos_buffers(), shoc::moist_energy(), erf_cloud_chamber_wall_flux::most_wall_coefficients(), erf_surface_temperature::pressure_at_boundary_from_cell(), rebalance_columns(), sea_level_pressure_diagnostics::reconstruct_surface_pressure(), sea_level_pressure_diagnostics::reduce_surface_pressure_to_sea_level(), BaseStateParams::set_layer_interfaces(), ERF::sum_energy_quantities(), and SurfaceLayer::update_fluxes().
|
constexpr |
Referenced by AddCanopyBiophysicsHeatSources(), WDM6::Advance(), WSM6::Advance(), SLM::AdvanceSLM(), shoc::apply_energy_fix_column(), HSEutils::compute_F_for_temp_in_zone(), rrtmgp::compute_heating_rate(), HSEutils::compute_theta(), ComputeLiquidWaterPotentialTemperature(), ComputeMoistStratification(), near_surface_diagnostics::fill(), ShocPreprocess::fill_columns(), ERF::FillPlot3DVars(), ShocImplicit::finalize_from_pdf(), make_sources(), shoc::moist_energy(), NOAHMP::read_results(), RadiationSimple::Run(), surface_flux_diagnostics::sensible_heat_flux_wm2_from_rhotheta_flux(), SLM::solve_ground_skin_temperature(), ERF::sum_energy_quantities(), shoc::temperature_from_thetal(), shoc::theta_from_thetal(), shoc::thetal_from_theta(), SLM::transfer_coeff(), SurfaceLayer::update_fluxes(), and vertical_two_stream_sweep().
|
constexpr |
|
constexpr |
Referenced by WDM6::Advance(), WSM6::Advance(), WDM6::initialize_coeffs(), WSM6::initialize_coeffs(), and ERF::sum_energy_quantities().
|
constexpr |
Referenced by derived::erf_dermucape().
|
constexpr |
Referenced by SatMethods::wv_sat_svp_to_qsat().
|
constexpr |
Referenced by buoyancy_moist_Thpert(), buoyancy_moist_Tpert(), calc_wstar(), MOSTAverage::compute_eb_averages(), MOSTAverage::compute_plane_averages(), MOSTAverage::compute_region_averages(), SurfaceLayer::compute_sfc_params_from_lsm_fluxes(), SurfaceLayer::compute_SurfaceLayer_bcs(), ComputeDiffusivityMRF(), ComputeDiffusivityMYNN25(), ComputeDiffusivityYSUNew(), ComputeQKESourceTerms(), ComputeVirtualPotentialTemperature(), ComputeVirtualTStarPBL(), ERF::derive_diag_profiles(), ERF::derive_diag_profiles_stag(), GetThetavl(), surface_flux_charnock::iterate_flux(), surface_flux_mod_charnock::iterate_flux(), surface_flux_donelan::iterate_flux(), surface_temp_charnock::iterate_flux(), surface_temp_mod_charnock::iterate_flux(), surface_temp_donelan::iterate_flux(), surface_flux_wave_coupled::iterate_flux(), surface_temp_wave_coupled::iterate_flux(), surface_flux::iterate_flux(), surface_temp::iterate_flux(), surface_temp_eb::iterate_flux(), surface_flux_eb::iterate_flux(), erf_cloud_chamber_wall_flux::most_wall_coefficients(), SLM::transfer_coeff(), sea_level_pressure_diagnostics::virtual_temperature(), ERF::write_1D_profiles(), and ERF::write_1D_profiles_stag().
|
constexpr |
Referenced by InputSoundingData::calc_rho_p_isentropic(), derived::erf_dersoundspeed(), erf_substep_MT(), erf_substep_NS(), erf_substep_T(), ERF::estTimeStep(), getdPdRgivenConstantTheta(), getExnergivenRTh(), getPgivenRTh(), getRhoThetagivenP(), getTgivenRandRTh(), make_fast_coeffs(), and ParallelFor().
|
constexpr |
Referenced by getRhogivenThetaPress(), getRhoThetagivenP(), and HSEutils::Newton_Raphson_hse().
|
constexpr |
Referenced by getdPdRgivenConstantTheta(), getExnergivenP(), getExnergivenRTh(), getPgivenRTh(), and getTgivenRandRTh().
|
constexpr |
Referenced by getRhoThetagivenP().
|
constexpr |
Referenced by SLM::AdvanceSLM(), ApplySurfaceLayerGradientsPBL(), compute_if_most_target_vel(), Compute_roughness(), SurfaceLayer::compute_sfc_params_from_lsm_fluxes(), SurfaceLayer::compute_SurfaceLayer_bcs(), ComputeDiffusivityMRF(), ComputeDiffusivityMYJ(), ComputeDiffusivityMYNN25(), ComputeDiffusivityMYNNEDMF(), ComputeDiffusivityYSU(), ComputeDiffusivityYSUNew(), ComputeQKESourceTerms(), ComputeTurbulentViscosityRANS(), ShocStructure::diagnose_length_and_brunt(), ShocStructure::diagnose_surface_layer(), near_surface_diagnostics::evaluate_most_profile(), near_surface_diagnostics::fill(), SurfaceLayer::fill_qsurf_with_skin_moisture(), ImmersedForcingBuildings_Scalar(), ImmersedForcingTerrain_Scalar(), ImmersedForcingTerrain_Xmom(), ImmersedForcingTerrain_Ymom(), erf_cloud_chamber_wall_flux::most_wall_coefficients(), erf_cloud_chamber_wall_flux::neutral_log_momentum_state(), erf_cloud_chamber_wall_flux::neutral_log_scalar_coefficient(), and SurfaceLayer::update_fluxes().
|
constexpr |
Referenced by AddCanopyBiophysicsHeatSources(), shoc::apply_energy_fix_column(), HSEutils::compute_F_for_temp_in_zone(), ComputeLiquidWaterPotentialTemperature(), ComputeMoistStratification(), shoc::condensate_latent_heat(), Kessler::Define(), ERF::FillPlot3DVars(), surface_flux_diagnostics::latent_heat_flux_wm2_from_rhoqv_flux(), shoc::latent_sublimation(), prognostic_dqs_dt(), NOAHMP::read_results(), MaterialProperties::setProperties_H2O(), ERF::sum_energy_quantities(), and SurfaceLayer::update_fluxes().
|
constexpr |
Referenced by NOAHMP::report_precip_diagnostics(), and NOAHMP::stage_forcing().
|
constexpr |
Referenced by NOAHMP::Advance_With_State(), SurfaceLayer::compute_sfc_params_from_lsm_fluxes(), SurfaceLayer::compute_SurfaceLayer_bcs(), TwoStreamRadiation::define_level(), SurfaceLayer::get_lsm_tsurf(), NOAHMP::Init(), is_valid_lsm_value(), Radiation::mf_to_kokkos_buffers(), NOAHMP::read_results(), noahmp_result_policy::result_is_valid(), near_surface_diagnostics::valid_noahmp_component(), and valid_surface_temperature().
|
constexpr |
Referenced by Radiation::run_impl().
|
constexpr |
Referenced by SatMethods::wv_sat_svp_to_qsat().
|
staticconstexpr |
Referenced by orbital_params().
|
constexpr |
Referenced by erf_cloud_chamber_wall_flux::bulk_theta_flux_in(), calc_p_isothermal(), InputSoundingData::calc_rho_p_isentropic(), HSEutils::compute_F_for_temp_in_zone(), diagnose_cloud_fraction_prognostic(), ERF::erf_enforce_hse(), erf_init_dens_hse_dry(), ERF::FillPlot3DVars(), getdPdRgivenConstantTheta(), getPgivenRTh(), getRhogivenThetaPress(), getRhoThetagivenP(), getTgivenPandTh(), getTgivenRandRTh(), getThgivenRandT(), getThgivenTandP(), HSEutils::init_isentropic_hse_constant_dz(), HSEutils::init_isentropic_hse_no_terrain(), HSEutils::init_isentropic_hse_stretched_dz(), HSEutils::init_isentropic_hse_terrain(), erf_cloud_chamber_wall_flux::most_wall_coefficients(), ParallelFor(), erf_cloud_chamber::parse_config(), rebalance_columns(), and erf_cloud_chamber_wall_flux::resolved_theta_flux_in().
|
constexpr |
Referenced by WDM6::Advance(), WSM6::Advance(), SLM::AdvanceSLM(), calc_p_isothermal(), InputSoundingData::calc_rho_p_isentropic(), HSEutils::compute_F_for_temp_in_zone(), ComputeMoistStratification(), erf_init_dens_hse_dry(), erf_substep_MT(), erf_substep_NS(), erf_substep_T(), near_surface_diagnostics::fill(), ERF::FillPlot3DVars(), getdPdRgivenConstantTheta(), getExnergivenRTh(), getPgivenRTh(), getRhogivenTandPress(), getRhogivenThetaPress(), getTgivenRandRTh(), getThgivenRandT(), if(), SolverChoice::init_params(), make_fast_coeffs(), metgrid_surface_pressure(), ParallelFor(), sea_level_pressure_diagnostics::reconstruct_surface_pressure(), sea_level_pressure_diagnostics::reduce_surface_pressure_to_sea_level(), RadiationSimple::Run(), BaseStateParams::set_layer_interfaces(), SLM::solve_ground_skin_temperature(), ERF::sum_energy_quantities(), and SLM::transfer_coeff().
|
constexpr |
|
constexpr |
Referenced by buoyancy_dry_Tpert(), buoyancy_moist_Tpert(), InputSoundingData::calc_rho_p(), InputSoundingData::calc_rho_p_isentropic(), HSEutils::compute_rho(), derived::erf_dermucape(), get_inverse_exner(), if(), lagrange_setup(), make_sources(), HSEutils::Newton_Raphson_hse(), ParallelFor(), rebalance_columns(), wdm6_theta_from_temperature_and_pressure(), and wsm6_theta_from_temperature_and_pressure().
|
constexpr |
|
constexpr |