Octopus
layer_pcm.F90 File Reference

Go to the source code of this file.

Modules

module  layer_pcm_oct_m
 

Data Types

type  layer_pcm_oct_m::layer_t
 Holding parameters characterizing a dielectric layer. More...
 
type  layer_pcm_oct_m::reflection_t
 Holding parameters and utilities needed for calculating reflected fields. More...
 
type  layer_pcm_oct_m::lpcm_substrate_t
 Holding parameters characterizing a stack of dielectric layers. More...
 

Functions/Subroutines

real(real64) function layer_pcm_oct_m::layer_get_eps_para (this)
 
real(real64) function layer_pcm_oct_m::layer_get_eps_perp (this)
 
real(real64) function layer_pcm_oct_m::substrate_get_eps_solv (this)
 
subroutine layer_pcm_oct_m::substrate_set_mode (this, mode)
 
class(lpcm_substrate_t) function, pointer layer_pcm_oct_m::substrate_iset_static (this)
 Sets substrate mode to static and returns reference the substrate object. More...
 
class(lpcm_substrate_t) function, pointer layer_pcm_oct_m::substrate_iset_dynamic (this)
 Sets substrate mode to dynamic and returns reference the substrate object. More...
 
subroutine, public layer_pcm_oct_m::layer_pcm_substrate_init (substrate, namespace)
 Parses the substrate. More...
 
subroutine, public layer_pcm_oct_m::layer_pcm_substrate_reflection_init (substrate, namespace)
 
subroutine layer_pcm_oct_m::parse_vector_row (block, irow, target_array, ioffset)
 Parses a three-component vector from a block row. More...
 
subroutine layer_pcm_oct_m::parse_layers (substrate)
 Parses the PCMLayers block. More...
 
subroutine layer_pcm_oct_m::substrate_check_if_dynamic (this)
 Checks whether at least at least 1 dynamic dielectric constant has been provided for the substrate (should also check whether PCMStaticEpsilon != PCMDynamicEpsilon, now that I think of it) More...
 
integer function layer_pcm_oct_m::get_nlayers (block)
 Returns the number of layers in the substrate. More...
 
subroutine layer_pcm_oct_m::parse_layer_row (block, ilayer, layer)
 Parses a row of the PCMLayersBlock. More...
 
subroutine layer_pcm_oct_m::parse_wave_vectors (reflection)
 Parses electric field wave vectors, asserting that they are perpendicular to the corresponding polarization vectors. More...
 
subroutine layer_pcm_oct_m::parse_other_reflection_parameters (reflection)
 Reparses time step and propagation time steps. More...
 
subroutine, public layer_pcm_oct_m::layer_pcm_substrate_end (substrate)
 
subroutine, public layer_pcm_oct_m::layer_pcm_add_image_term (n_tess, tess, substrate, delta, sigma)
 Adds substrate polarization terms to the IEF-PCM D_e (delta) and S_e (sigma) matrices. More...
 
real(real64) function, public layer_pcm_oct_m::layer_pcm_get_image_matrix_element (imatrix, tessi, tessj, substrate)
 Returns substrate image term M_ij^img to be added to the matrix element M_ij, where M = S_e or D_e. More...
 
subroutine layer_pcm_oct_m::substrate_check_distance_to_surface (this, point)
 Asserts that the PCM cavity and the surface do not intersect. More...
 
subroutine layer_pcm_oct_m::assign_epsilons (substrate, eps_solv, eps_1_para, eps_1_perp)
 Assigns the dielectric constants of the solvent and of the first layer to the arguments. More...
 
real(real64) function, dimension(3) layer_pcm_oct_m::get_dr_para (point_i, point_j, substrate)
 Returns in-plane component of the difference vector dr_ij = r_i - r_j. More...
 
real(real64) function layer_pcm_oct_m::get_prefactor (eps_solv, eps_1_para, eps_1_perp, laguerre_abscissa, normalization_factor, substrate)
 Returns prefactor multiplying the exponential in Eq. (22) More...
 
real(real64) function layer_pcm_oct_m::get_sigma_image (laguerre_abscissa, laguerre_weight, len_dr_para, prefactor, normalization_factor)
 Returns the contribution w_i * f(x_i) of a given abcissa x_i/weight w_i to the numerical S_e integration. More...
 
real(real64) function layer_pcm_oct_m::get_delta_image (laguerre_abscissa, laguerre_weight, len_dr_para, prefactor, normalization_factor, dr_para, normalj, substrate)
 Returns the contribution w_i * f(x_i) of a given abcissa x_i/weight w_i to the numerical D_e integration. More...
 
real(real64) function layer_pcm_oct_m::get_gamma_factor (q1, substrate)
 Returns the factor (T_11 - T_21) / (T_11 + T_21), which is proportional to eps_subs [Eq. (22)]. More...
 
subroutine layer_pcm_oct_m::get_reflected (ifield, polarization, substrate, phase_factor, w0, tdf_enve, tdf_phase)
 Calculates reflected field by forward-FFT-ing incoming field, multiplying it with reflectivity, then backward-FFT-ing. More...
 
subroutine layer_pcm_oct_m::write_field_to_array (tdf_enve, tdf_phase, w0, phase_factor, nvals_t, step_t, vals_t)
 Writes field from envelope (tdf_enve) and phase functions (tdf_phase) to numerical array (vals_t) More...
 
subroutine layer_pcm_oct_m::multiply_by_reflectivity (ifield, polarization, substrate, nvals_w, step_w, vals_w)
 Multiplies frequency-domain array vals_w by reflectivity array r(w), component-wise. More...
 
subroutine layer_pcm_oct_m::reflection_fft_init (nvals_t, nvals_w, fft, vals_t, vals_w)
 Initializes the FFT handler as well as corresponding time and frequency series. More...
 
subroutine layer_pcm_oct_m::reflection_fft_end (fft_handler, vals_t, vals_w)
 Terminates the FFT handler as well as corresponding time and frequency series. More...
 
subroutine layer_pcm_oct_m::write_lengths_and_steps (tdf, nvals_t, step_t, nvals_w, step_w)
 Extracts time and frequency array lengths and steps. More...
 
subroutine layer_pcm_oct_m::calculate_polarization_vector (direction, wave_vector_in, polarization, normal, perpendicular, polarization_vector)
 Calculates polarization vector of impinging or reflected (direction), s- or p-polarized field (polarization) More...
 
subroutine layer_pcm_oct_m::check_wave_vector (wave_vector, polarization_vector, normal_vector)
 This can be removed (together with the line where it is currently used), as the orthogonality is now checked during parsing. More...
 
subroutine, public layer_pcm_oct_m::layer_pcm_calculate_reflected_fields (polarizations_tot, frequencies_tot, envelopes_tot, phases_tot, polarizations_imp, frequencies_imp, envelopes_imp, phases_imp, substrate)
 Calculates parameters of reflected fields from those of the impinging fields, saving them in the corresponding arrays. More...
 
integer function layer_pcm_oct_m::get_nlasers (wave_vectors, polarization_vectors, normal)
 Returns the total number of lasers (incoming and reflected) More...
 
complex(real64) function, public layer_pcm_oct_m::layer_pcm_get_reflectivity (ifield, polarization, substrate, frequency)
 Returns the reflectivity r(w) of the substrate for a given frequency w (differs for s and p polarization) More...
 
complex(real64) function layer_pcm_oct_m::get_wave_vector_z (polarization, eps_para, eps_perp, ww, q1)
 Returns the out-of-plane component of the wave vector in an anisotropic dielectric layer (differs for s and p polarization) More...
 

Variables

integer, parameter, public layer_pcm_oct_m::lpcm_mode_eq = 0
 static More...
 
integer, parameter, public layer_pcm_oct_m::lpcm_mode_noneq = 1
 dynamic, where provided More...
 
integer, parameter, public layer_pcm_oct_m::lpcm_s_polarization = 1
 Polarization of a field with respect to the plane of incidence. More...
 
integer, parameter, public layer_pcm_oct_m::lpcm_p_polarization = 2
 
integer, parameter layer_pcm_oct_m::lpcm_impinging = 1
 Propagation direction of a field with respect to the surface. More...
 
integer, parameter layer_pcm_oct_m::lpcm_reflected = 2
 
logical, parameter, public layer_pcm_oct_m::lpcm_delta = .true.
 D_e. More...
 
logical, parameter, public layer_pcm_oct_m::lpcm_sigma = .false.
 S_e. More...