no_photo_current_balance Function

public function no_photo_current_balance(phi0_v, n_e_inf_m3, spec_e, inward_normal, gamma_i) result(balance)

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: phi0_v
real(kind=dp), intent(in) :: n_e_inf_m3
type(sheath_model_species), intent(in) :: spec_e
real(kind=dp), intent(in) :: inward_normal(3)
real(kind=dp), intent(in) :: gamma_i

Return Value real(kind=dp)


Calls

proc~~no_photo_current_balance~~CallsGraph proc~no_photo_current_balance no_photo_current_balance proc~compute_inflow_flux_from_drifting_maxwellian compute_inflow_flux_from_drifting_maxwellian proc~no_photo_current_balance->proc~compute_inflow_flux_from_drifting_maxwellian

Called by

proc~~no_photo_current_balance~~CalledByGraph proc~no_photo_current_balance no_photo_current_balance proc~solve_no_photo_floating_potential solve_no_photo_floating_potential proc~solve_no_photo_floating_potential->proc~no_photo_current_balance proc~resolve_sheath_injection_context resolve_sheath_injection_context proc~resolve_sheath_injection_context->proc~solve_no_photo_floating_potential proc~init_particle_batch_from_config init_particle_batch_from_config proc~init_particle_batch_from_config->proc~resolve_sheath_injection_context

Source Code

  real(dp) function no_photo_current_balance(phi0_v, n_e_inf_m3, spec_e, inward_normal, gamma_i) result(balance)
    real(dp), intent(in) :: phi0_v
    real(dp), intent(in) :: n_e_inf_m3
    type(sheath_model_species), intent(in) :: spec_e
    real(dp), intent(in) :: inward_normal(3)
    real(dp), intent(in) :: gamma_i
    real(dp) :: vmin_normal

    vmin_normal = sqrt(max(0.0d0, 2.0d0*qe*max(0.0d0, -phi0_v))/abs(spec_e%m_particle))
    balance = compute_inflow_flux_from_drifting_maxwellian( &
              n_e_inf_m3, spec_e%temperature_k, spec_e%m_particle, spec_e%drift_velocity, inward_normal, &
              vmin_normal=vmin_normal &
              ) - gamma_i
  end function no_photo_current_balance