Monte Carlo simulation.
More...
Data Types |
type | run_part_opt_t |
| Options controlling the execution of run_part(). More...
|
Functions/Subroutines |
subroutine | run_part (bin_grid, env_data, env_state, aero_data, aero_weight, aero_state, gas_data, gas_state, run_part_opt) |
| Do a particle-resolved Monte Carlo simulation.
|
subroutine | print_part_progress (i_repeat, t_sim_elapsed, n_part, n_coag, n_emit, n_dil_in, n_dil_out, n_nuc, t_wall_elapsed, t_wall_remain) |
| Print the current simulation progress to the screen.
|
integer | pmc_mpi_pack_size_run_part_opt (val) |
| Determines the number of bytes required to pack the given value.
|
subroutine | pmc_mpi_pack_run_part_opt (buffer, position, val) |
| Packs the given value into the buffer, advancing position.
|
subroutine | pmc_mpi_unpack_run_part_opt (buffer, position, val) |
| Unpacks the given value from the buffer, advancing position.
|
subroutine | spec_file_read_parallel_coag_type (file, parallel_coag_type) |
| Read the specification for a parallel coagulation type from a spec file.
|
Variables |
integer, parameter | PARALLEL_COAG_TYPE_INVALID = 0 |
| Type code for undefined or invalid parallel coagulation method.
|
integer, parameter | PARALLEL_COAG_TYPE_LOCAL = 1 |
| Type code for local parallel coagulation.
|
integer, parameter | PARALLEL_COAG_TYPE_DIST = 2 |
| Type code for distributed parallel coagulation.
|
Detailed Description
Monte Carlo simulation.
Function/Subroutine Documentation
subroutine pmc_run_part::pmc_mpi_pack_run_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.
- Parameters:
-
buffer | Memory buffer. |
position | Current buffer position. |
val | Value to pack. |
integer pmc_run_part::pmc_mpi_pack_size_run_part_opt |
( |
type(run_part_opt_t),intent(in) |
val ) |
|
Determines the number of bytes required to pack the given value.
- Parameters:
-
subroutine pmc_run_part::pmc_mpi_unpack_run_part_opt |
( |
character,dimension(:),intent(inout) |
buffer, |
|
|
integer,intent(inout) |
position, |
|
|
type(run_part_opt_t),intent(inout) |
val |
|
) |
| |
Unpacks the given value from the buffer, advancing position.
- Parameters:
-
buffer | Memory buffer. |
position | Current buffer position. |
val | Value to pack. |
subroutine pmc_run_part::print_part_progress |
( |
integer,intent(in) |
i_repeat, |
|
|
real(kind=dp),intent(in) |
t_sim_elapsed, |
|
|
integer,intent(in) |
n_part, |
|
|
integer,intent(in) |
n_coag, |
|
|
integer,intent(in) |
n_emit, |
|
|
integer,intent(in) |
n_dil_in, |
|
|
integer,intent(in) |
n_dil_out, |
|
|
integer,intent(in) |
n_nuc, |
|
|
real(kind=dp),intent(in) |
t_wall_elapsed, |
|
|
real(kind=dp),intent(in) |
t_wall_remain |
|
) |
| |
Print the current simulation progress to the screen.
- Parameters:
-
i_repeat | Repeat number of simulation. |
t_sim_elapsed | Elapsed simulation time (s). |
n_part | Number of particles. |
n_coag | Number of coagulated particles since last progress printing. |
n_emit | Number of emitted particles since last progress printing. |
n_dil_in | Number of diluted-in particles since last progress printing. |
n_dil_out | Number of diluted-out particles since last progress printing. |
n_nuc | Number of nucleated particles since last progress printing. |
t_wall_elapsed | Elapsed wall time (s). |
t_wall_remain | Estimated remaining wall time (s). |
subroutine pmc_run_part::run_part |
( |
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_weight_t),intent(in) |
aero_weight, |
|
|
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) |
run_part_opt |
|
) |
| |
Do a particle-resolved Monte Carlo simulation.
- Parameters:
-
bin_grid | Bin grid. |
env_data | Environment state. |
env_state | Environment state. |
aero_data | Aerosol data. |
aero_weight | Aerosol weight. |
aero_state | Aerosol state. |
gas_data | Gas data. |
gas_state | Gas state. |
run_part_opt | Monte Carlo options. |
subroutine pmc_run_part::spec_file_read_parallel_coag_type |
( |
type(spec_file_t),intent(inout) |
file, |
|
|
integer,intent(out) |
parallel_coag_type |
|
) |
| |
Read the specification for a parallel coagulation type from a spec file.
- Parameters:
-
file | Spec file. |
parallel_coag_type | Kernel type. |
Variable Documentation
Type code for distributed parallel coagulation.
Type code for undefined or invalid parallel coagulation method.
Type code for local parallel coagulation.