initialize_particle_pusher Subroutine

public subroutine initialize_particle_pusher(params)

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.

Arguments

Type IntentOptional AttributesName
type(KORC_PARAMS), intent(in) :: params

Core KORC simulation parameters.


Called by

proc~~initialize_particle_pusher~~CalledByGraph proc~initialize_particle_pusher initialize_particle_pusher program~main main program~main->proc~initialize_particle_pusher

Contents


Source Code

  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