This subroutine initializes all the variables needed for advancing the particles' position and velocity.
This subroutine is specially useful when we need to define or initialize values of parameters used to calculate derived quantities. The intent of this subroutine is to work as a constructor of the module.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(KORC_PARAMS), | intent(in) | :: | params | Core KORC simulation parameters. |
subroutine initialize_particle_pusher(params)
!! @note This subroutine initializes all the variables needed for advancing
!! the particles' position and velocity. @endnote
!! This subroutine is specially useful when we need to define or initialize
!! values of parameters used to calculate derived quantities.
!! The intent of this subroutine is to work as a constructor of the module.
TYPE(KORC_PARAMS), INTENT(IN) :: params
!! Core KORC simulation parameters.
E0 = C_E0*(params%cpp%mass**2*params%cpp%velocity**3)/ &
(params%cpp%charge**3*params%cpp%Bo)
end subroutine initialize_particle_pusher