CAMP 1.0.0
Chemistry Across Multiple Phases
Data Types | Modules | Functions/Subroutines
env_state.F90 File Reference

The camp_env_state module. More...

Go to the source code of this file.

Data Types

type  camp_env_state::env_state_t
 Current environment state. More...
 
type  camp_env_state::env_state_ptr
 Pointer for env_state_t. More...
 

Modules

module  camp_env_state
 The env_state_t structure and associated subroutines.
 

Functions/Subroutines

subroutine camp_env_state::env_state_add (env_state, env_state_delta)
 env_state += env_state_delta
 
subroutine camp_env_state::env_state_scale (env_state, alpha)
 env_state *= alpha
 
subroutine camp_env_state::env_state_change_water_volume (env_state, dv)
 Adds the given water volume to the water vapor and updates all environment quantities.
 
real(kind=dp) function camp_env_state::env_state_sat_vapor_pressure (env_state)
 Computes the current saturation vapor pressure (Pa).
 
real(kind=dp) function camp_env_state::env_state_air_den (env_state)
 Air density (kg m^{-3}).
 
real(kind=dp) function camp_env_state::env_state_air_molar_den (env_state)
 Air molar density (mol m^{-3}).
 
real(kind=dp) function camp_env_state::env_state_a (env_state)
 Condensation \(A\) parameter.
 
real(kind=dp) function camp_env_state::env_state_ppb_to_conc (env_state, ppb)
 Convert (ppb) to (molecules m^{-3}).
 
real(kind=dp) function camp_env_state::env_state_conc_to_ppb (env_state, conc)
 Convert (molecules m^{-3}) to (ppb).
 
subroutine camp_env_state::env_state_mix (val)
 Average val over all processes.
 
subroutine camp_env_state::env_state_reduce_avg (val)
 Average val over all processes, with the result only on the root process.
 
integer function camp_env_state::camp_mpi_pack_size_env_state (val)
 Determines the number of bytes required to pack the given value.
 
subroutine camp_env_state::camp_mpi_pack_env_state (buffer, position, val)
 Packs the given value into the buffer, advancing position.
 
subroutine camp_env_state::camp_mpi_unpack_env_state (buffer, position, val)
 Unpacks the given value from the buffer, advancing position.
 
subroutine camp_env_state::camp_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.
 
subroutine camp_env_state::set_temperature_k (this, temperature)
 Set the temperature (K)
 
subroutine camp_env_state::set_pressure_pa (this, pressure)
 Set the pressure (Pa)
 

Detailed Description

The camp_env_state module.

Definition in file env_state.F90.