afivo-streamer 1.1
1D/2D/3D streamer simulations with AMR
|
Fluid model module. More...
Functions/Subroutines | |
subroutine, public | forward_euler (tree, dt, dt_stiff, dt_lim, time, s_deriv, n_prev, s_prev, w_prev, s_out, i_step, n_steps) |
Advance fluid model using forward Euler step. If the equation is written as y' = f(y), the result is: y(s_out) = y(s_prev) + f(y(s_dt)), where the s_... refer to temporal states. | |
Fluid model module.
subroutine, public m_fluid::forward_euler | ( | type(af_t), intent(inout) | tree, |
real(dp), intent(in) | dt, | ||
real(dp), intent(in) | dt_stiff, | ||
real(dp), intent(inout) | dt_lim, | ||
real(dp), intent(in) | time, | ||
integer, intent(in) | s_deriv, | ||
integer, intent(in) | n_prev, | ||
integer, dimension(n_prev), intent(in) | s_prev, | ||
real(dp), dimension(n_prev), intent(in) | w_prev, | ||
integer, intent(in) | s_out, | ||
integer, intent(in) | i_step, | ||
integer, intent(in) | n_steps ) |
Advance fluid model using forward Euler step. If the equation is written as y' = f(y), the result is: y(s_out) = y(s_prev) + f(y(s_dt)), where the s_... refer to temporal states.
[in] | dt | Time step |
[in] | dt_stiff | Time step for stiff terms (IMEX) |
[in,out] | dt_lim | Computed time step limit |
[in] | time | Current time |
[in] | s_deriv | State to compute derivatives from |
[in] | n_prev | Number of previous states |
[in] | s_prev | Previous states |
[in] | w_prev | Weights of previous states |
[in] | s_out | Output state |
[in] | i_step | Step of the integrator |
[in] | n_steps | Total number of steps |
Definition at line 21 of file m_fluid.f90.