Subroutine that returns the value of a uniform electric field.
This subroutie is used only when the simulation is ran for a 'UNIFORM' plasma. As a convention, in a uniform plasma we set .
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(FIELDS), | intent(in) | :: | F | An instance of the KORC derived type FIELDS. |
||
real(kind=rp), | intent(inout), | DIMENSION(:,:), ALLOCATABLE | :: | E | Electric field components in Cartesian coordinates; E(1,:) = , E(2,:) = , E(3,:) = |
subroutine uniform_electric_field(F,E)
!! @note Subroutine that returns the value of a uniform electric
!! field. @endnote
!! This subroutie is used only when the simulation is ran for a
!! 'UNIFORM' plasma. As a convention, in a uniform plasma we set
!! \(\mathbf{E} = E_0 \hat{x}\).
TYPE(FIELDS), INTENT(IN) :: F
!! An instance of the KORC derived type FIELDS.
REAL(rp), DIMENSION(:,:), ALLOCATABLE, INTENT(INOUT) :: E
!! Electric field components in Cartesian coordinates;
!! E(1,:) = \(E_x\), E(2,:) = \(E_y\), E(3,:) = \(E_z\)
E(:,1) = F%Eo
E(:,2:3) = 0.0_rp
end subroutine uniform_electric_field