Classes | |
struct | run_part_opt_t |
Options controlling the execution of run_part(). More... | |
Functions | |
subroutine | run_part (kernel, kernel_max, bin_grid, env_data, env_state, aero_data, aero_state, gas_data, gas_state, part_opt) |
Do a particle-resolved Monte Carlo simulation. | |
subroutine | mc_coag (kernel, bin_grid, env_state, aero_data, aero_state, part_opt, k_max, tot_n_samp, tot_n_coag) |
Do coagulation for time del_t. | |
subroutine | compute_n_samp (ni, nj, same_bin, k_max, comp_vol, del_t, n_samp_real) |
Compute the number of samples required for the pair of bins. | |
subroutine | mc_mix (aero_data, aero_state, gas_data, gas_state, env_state, bin_grid, mix_rate) |
Mix data between processes. | |
integer | pmc_mpi_pack_size_part_opt (val) |
Determines the number of bytes required to pack the given value. | |
subroutine | pmc_mpi_pack_part_opt (buffer, position, val) |
Packs the given value into the buffer, advancing position. | |
subroutine | pmc_mpi_unpack_part_opt (buffer, position, val) |
Unpacks the given value from the buffer, advancing position. |
subroutine pmc_run_part::compute_n_samp | ( | integer,intent(in) | ni, | |
integer,intent(in) | nj, | |||
logical,intent(in) | same_bin, | |||
real*8,intent(in) | k_max, | |||
real*8,intent(in) | comp_vol, | |||
real*8,intent(in) | del_t, | |||
real*8,intent(out) | n_samp_real | |||
) |
Compute the number of samples required for the pair of bins.
ni | Number particles in first bin . |
nj | Number particles in second bin. |
same_bin | Whether first bin is second bin. |
k_max | Maximum kernel value. |
comp_vol | Computational volume (m^3). |
del_t | Timestep (s). |
n_samp_real | Number of samples per timestep. |
subroutine pmc_run_part::mc_coag | ( | kernel | , | |
type(bin_grid_t),intent(in) | bin_grid, | |||
type(env_state_t),intent(inout) | env_state, | |||
type(aero_data_t),intent(in) | aero_data, | |||
type(aero_state_t),intent(inout) | aero_state, | |||
type(run_part_opt_t),intent(in) | part_opt, | |||
real*8,dimension(bin_grid%n_bin,bin_grid%n_bin),intent(in) | k_max, | |||
integer,intent(out) | tot_n_samp, | |||
integer,intent(out) | tot_n_coag | |||
) |
Do coagulation for time del_t.
bin_grid | Bin grid. |
env_state | Environment state. |
aero_data | Aerosol data. |
aero_state | Aerosol state. |
part_opt | Monte Carlo options. |
k_max | Maximum kernel. |
tot_n_samp | Total number of samples tested. |
tot_n_coag | Number of coagulation events. |
subroutine pmc_run_part::mc_mix | ( | type(aero_data_t),intent(in) | aero_data, | |
type(aero_state_t),intent(inout) | aero_state, | |||
type(gas_data_t),intent(in) | gas_data, | |||
type(gas_state_t),intent(inout) | gas_state, | |||
type(env_state_t),intent(inout) | env_state, | |||
type(bin_grid_t),intent(in) | bin_grid, | |||
real*8,intent(in) | mix_rate | |||
) |
Mix data between processes.
aero_data | Aerosol data. |
aero_state | Aerosol state. |
gas_data | Gas data. |
gas_state | Gas state. |
env_state | Environment. |
bin_grid | Bin grid. |
mix_rate | Amount to mix (0 to 1). |
subroutine pmc_run_part::pmc_mpi_pack_part_opt | ( | character,dimension(:),intent(inout) | buffer, | |
integer,intent(inout) | position, | |||
type(run_part_opt_t),intent(in) | val | |||
) |
Packs the given value into the buffer, advancing position.
buffer | Memory buffer. |
position | Current buffer position. |
val | Value to pack. |
integer pmc_run_part::pmc_mpi_pack_size_part_opt | ( | type(run_part_opt_t),intent(in) | val | ) |
Determines the number of bytes required to pack the given value.
val | Value to pack. |
subroutine pmc_run_part::pmc_mpi_unpack_part_opt | ( | character,dimension(:),intent(inout) | buffer, | |
integer,intent(inout) | position, | |||
type(run_part_opt_t),intent(out) | val | |||
) |
Unpacks the given value from the buffer, advancing position.
buffer | Memory buffer. |
position | Current buffer position. |
val | Value to pack. |
subroutine pmc_run_part::run_part | ( | kernel | , | |
kernel_max | , | |||
type(bin_grid_t),intent(in) | bin_grid, | |||
type(env_data_t),intent(in) | env_data, | |||
type(env_state_t),intent(inout) | env_state, | |||
type(aero_data_t),intent(in) | aero_data, | |||
type(aero_state_t),intent(inout) | aero_state, | |||
type(gas_data_t),intent(in) | gas_data, | |||
type(gas_state_t),intent(inout) | gas_state, | |||
type(run_part_opt_t),intent(in) | part_opt | |||
) |
Do a particle-resolved Monte Carlo simulation.
bin_grid | Bin grid. |
env_data | Environment state. |
env_state | Environment state. |
aero_data | Aerosol data. |
aero_state | Aerosol state. |
gas_data | Gas data. |
gas_state | Gas state. |
part_opt | Monte Carlo options. |