PartMC  2.6.1
Data Types | Functions/Subroutines
pmc_run_sect Module Reference

1D sectional simulation. More...

Data Types

type  run_sect_opt_t
 Options controlling the operation of run_sect(). More...
 

Functions/Subroutines

subroutine run_sect (bin_grid, gas_data, aero_data, aero_dist, scenario, env_state, run_sect_opt)
 Run a sectional simulation. More...
 
subroutine coad (n_bin, dt, taug, taup, taul, tauu, prod, ploss, c, ima, g, r, e, ck, ec)
 Collision subroutine, exponential approach. More...
 
subroutine courant (n_bin, log_width, e, ima, c)
 Determines the Courant number for each bin pair. More...
 
subroutine smooth_bin_kernel (n_bin, k, k_smooth)
 Smooths kernel values for bin pairs, and halves the self-rate. More...
 

Detailed Description

1D sectional simulation.

Sectional code based on coad1d.f by Andreas Bott

Function/Subroutine Documentation

◆ coad()

subroutine pmc_run_sect::coad ( integer  n_bin,
real(kind=dp)  dt,
real(kind=dp), dimension(n_bin)  taug,
real(kind=dp), dimension(n_bin)  taup,
real(kind=dp), dimension(n_bin)  taul,
real(kind=dp), dimension(n_bin)  tauu,
real(kind=dp), dimension(n_bin)  prod,
real(kind=dp), dimension(n_bin)  ploss,
real(kind=dp), dimension(n_bin,n_bin)  c,
integer, dimension(n_bin,n_bin)  ima,
real(kind=dp), dimension(n_bin)  g,
real(kind=dp), dimension(n_bin)  r,
real(kind=dp), dimension(n_bin)  e,
real(kind=dp), dimension(n_bin,n_bin)  ck,
real(kind=dp), dimension(n_bin,n_bin)  ec 
)

Collision subroutine, exponential approach.

Definition at line 203 of file run_sect.F90.

◆ courant()

subroutine pmc_run_sect::courant ( integer, intent(in)  n_bin,
real(kind=dp), intent(in)  log_width,
real(kind=dp), dimension(n_bin), intent(in)  e,
integer, dimension(n_bin,n_bin), intent(out)  ima,
real(kind=dp), dimension(n_bin,n_bin), intent(out)  c 
)

Determines the Courant number for each bin pair.

Parameters
[in]n_binNumber of bins.
[in]log_widthBin scale factor.
[in]eDroplet mass grid (mg).
[out]imai + j goes in bin ima(i,j).
[out]cCourant number for bin pairs.

Definition at line 284 of file run_sect.F90.

◆ run_sect()

subroutine pmc_run_sect::run_sect ( type(bin_grid_t), intent(in)  bin_grid,
type(gas_data_t), intent(in)  gas_data,
type(aero_data_t), intent(in)  aero_data,
type(aero_dist_t), intent(inout)  aero_dist,
type(scenario_t), intent(inout)  scenario,
type(env_state_t), intent(inout)  env_state,
type(run_sect_opt_t), intent(in)  run_sect_opt 
)

Run a sectional simulation.

Parameters
[in]bin_gridBin grid.
[in]gas_dataGas data.
[in]aero_dataAerosol data.
[in,out]aero_distAerosol distribution.
[in,out]scenarioEnvironment data.
[in,out]env_stateEnvironment state.
[in]run_sect_optOptions.

Definition at line 56 of file run_sect.F90.

◆ smooth_bin_kernel()

subroutine pmc_run_sect::smooth_bin_kernel ( integer, intent(in)  n_bin,
real(kind=dp), dimension(n_bin,n_bin), intent(in)  k,
real(kind=dp), dimension(n_bin,n_bin), intent(out)  k_smooth 
)

Smooths kernel values for bin pairs, and halves the self-rate.

Parameters
[in]n_binNumber of bins.
[in]kKernel values.
[out]k_smoothSmoothed kernel values.

Definition at line 334 of file run_sect.F90.