The pmc_env_state module. More...
Classes | |
struct | pmc_env_state::env_state_t |
Current environment state. More... | |
Namespaces | |
namespace | pmc_env_state |
The env_state_t structure and associated subroutines. | |
Functions | |
subroutine | pmc_env_state::env_state_alloc (env_state) |
Allocate an empty environment. | |
subroutine | pmc_env_state::env_state_free (env_state) |
Free all storage. | |
subroutine | pmc_env_state::env_state_add (env_state, env_state_delta) |
env_state += env_state_delta | |
subroutine | pmc_env_state::env_state_scale (env_state, alpha) |
env_state *= alpha | |
subroutine | pmc_env_state::env_state_copy (env_from, env_to) |
env_to = env_from | |
subroutine | pmc_env_state::env_state_change_water_volume (env_state, aero_data, dv) |
Adds the given water volume to the water vapor and updates all environment quantities. | |
real *8 | pmc_env_state::env_state_sat_vapor_pressure (env_state) |
Computes the current saturation vapor pressure (Pa). | |
real *8 | pmc_env_state::aero_particle_kappa_rh (aero_particle, aero_data, env_state) |
Returns the critical relative humidity from the kappa value (1). | |
real *8 | pmc_env_state::env_state_air_den (env_state) |
Air density (kg m^{-3}). | |
real *8 | pmc_env_state::env_state_air_molar_den (env_state) |
Air molar density (mole m^{-3}). | |
subroutine | pmc_env_state::gas_state_mole_dens_to_ppb (gas_state, env_state) |
Convert (mole m^{-3}) to (ppb). | |
subroutine | pmc_env_state::env_state_update_gas_state (env_state, delta_t, old_height, gas_data, gas_state) |
Do emissions and background dilution from the environment. | |
subroutine | pmc_env_state::env_state_update_aero_state (env_state, delta_t, old_height, bin_grid, aero_data, aero_state, aero_binned) |
Do emissions and background dilution from the environment for a particle aerosol distribution. | |
subroutine | pmc_env_state::env_state_update_aero_binned (env_state, delta_t, old_height, bin_grid, aero_data, aero_binned) |
Do emissions and background dilution from the environment for a binned aerosol distribution. | |
subroutine | pmc_env_state::inout_write_env_state (file, env_state) |
Write full state. | |
subroutine | pmc_env_state::inout_read_env_state (file, env_state) |
Read full state. | |
subroutine | pmc_env_state::spec_read_env_state (file, env_state) |
Read environment specification from a inout file. | |
subroutine | pmc_env_state::env_state_average (env_vec, env_avg) |
Computes the average of an array of env_state. | |
subroutine | pmc_env_state::env_state_mix (val) |
Average val over all processes. | |
integer | pmc_env_state::pmc_mpi_pack_size_env_state (val) |
Determines the number of bytes required to pack the given value. | |
subroutine | pmc_env_state::pmc_mpi_pack_env_state (buffer, position, val) |
Packs the given value into the buffer, advancing position. | |
subroutine | pmc_env_state::pmc_mpi_unpack_env_state (buffer, position, val) |
Unpacks the given value from the buffer, advancing position. | |
subroutine | pmc_env_state::pmc_mpi_reduce_avg_env_state (val, val_avg) |
Computes the average of val across all processes, storing the result in val_avg on the root process. |
The pmc_env_state module.