symmetric_vacuum_bottom_field Function

public pure function symmetric_vacuum_bottom_field(plan, charge) result(field)

Arguments

Type IntentOptional Attributes Name
type(periodic_zero_mode_plan_type), intent(in) :: plan
real(kind=dp), intent(in) :: charge(:)

Return Value real(kind=dp)


Called by

proc~~symmetric_vacuum_bottom_field~~CalledByGraph proc~symmetric_vacuum_bottom_field symmetric_vacuum_bottom_field none~init~6 electrostatic_snapshot_type%init none~init~6->proc~symmetric_vacuum_bottom_field proc~prepare_periodic_cache_and_stop prepare_periodic_cache_and_stop proc~prepare_periodic_cache_and_stop->none~init~6 program~main main program~main->proc~prepare_periodic_cache_and_stop

Source Code

  pure real(dp) function symmetric_vacuum_bottom_field(plan, charge) result(field)
    type(periodic_zero_mode_plan_type), intent(in) :: plan
    real(dp), intent(in) :: charge(:)

    field = -sum(charge)/(2.0_dp*eps0*plan%area_xy)
  end function symmetric_vacuum_bottom_field