Semi-Lagrangian Library
Modular library for kinetic and gyrokinetic simulations of plasmas in fusion energy devices.
|
Kernel smoother for 2d with splines of arbitrary degree placed on a uniform mesh.
Spline with index i starts at point i
Derived types and interfaces | |
type | sll_t_particle_mesh_coupling_spline_cl_1d |
Spline kernel smoother in1d. More... | |
Functions/Subroutines | |
subroutine | add_charge_single_spline_cl_1d (self, position, marker_charge, rho_dofs) |
Destructor. More... | |
subroutine | add_particle_mass_spline_cl_1d (self, position, marker_charge, particle_mass) |
Add the contribution of one particle to the approximate mass matrix. More... | |
subroutine | add_particle_mass_spline_cl_1d_full (self, position, marker_charge, particle_mass) |
Add the contribution of one particle to the approximate mass matrix. More... | |
subroutine | evaluate_field_single_spline_cl_1d (self, position, field_dofs, field_value) |
Evaluate field at at position position. More... | |
subroutine | evaluate_multiple_spline_cl_1d (self, position, components, field_dofs, field_value) |
Evaluate several fields at position position. More... | |
subroutine | add_current_spline_cl_1d (self, position_old, position_new, marker_charge, j_dofs) |
Add current with integration over x. More... | |
subroutine | update_j (self, lower, upper, index, marker_charge, sign, j_dofs) |
Helper function for add_current. More... | |
subroutine | add_current_evaluate_spline_cl_1d (self, position_old, position_new, marker_charge, vbar, field_dofs, j_dofs, field) |
Combines add_current and evaluate_int. More... | |
subroutine | update_je (self, lower, upper, index, marker_charge, sign, j_dofs, field_dofs, field) |
Helper function for add_current_evaluate. More... | |
subroutine | add_current_update_v_spline_cl_1d (self, position_old, position_new, marker_charge, qoverm, bfield_dofs, vi, j_dofs) |
Add current for one particle and update v (according to H_p1 part in Hamiltonian splitting) More... | |
subroutine | update_jv (self, lower, upper, index, marker_charge, qoverm, sign, vi, j_dofs, bfield_dofs) |
Helper function for add_current_update_v. More... | |
subroutine | convert_x_to_xbox (self, position, xi, box) |
subroutine | sll_s_uniform_bsplines_eval_basis_clamped (spline, n_cells, degree, xi, box, spline_val) |
Helper function to evaluate uniform clamped basis splines. More... | |
subroutine | init_spline_cl_1d (self, domain, n_cells, no_particles, spline_degree, smoothing_type, boundary) |
Initializer. More... | |
subroutine | free_spline_cl_1d (self) |
Finalizer. More... | |
subroutine, public | sll_s_new_particle_mesh_coupling_spline_cl_1d_ptr (smoother, domain, n_cells, no_particles, spline_degree, smoothing_type, boundary) |
subroutine, public | sll_s_new_particle_mesh_coupling_spline_cl_1d (smoother, domain, n_cells, no_particles, spline_degree, smoothing_type, boundary) |
|
private |
Destructor.
Add charge of one particle
[in,out] | self | kernel smoother object |
[in] | position | Position of the particle |
[in] | marker_charge | Particle weights time charge |
[in,out] | rho_dofs | Coefficient vector of the charge distribution |
Definition at line 79 of file sll_m_particle_mesh_coupling_spline_cl_1d.F90.
|
private |
Combines add_current and evaluate_int.
[in,out] | self | kernel smoother object |
[in] | position_old | Position of the particle |
[in] | position_new | Position of the particle |
[in] | marker_charge | Particle weights time charge |
[in] | vbar | Particle weights time charge |
[in] | field_dofs | Coefficient vector of the current density |
[in,out] | j_dofs | Coefficient vector of the current density |
[out] | field | Efield |
Definition at line 303 of file sll_m_particle_mesh_coupling_spline_cl_1d.F90.
|
private |
Add current with integration over x.
[in,out] | self | kernel smoother object |
[in] | position_old | Position of the particle |
[in] | position_new | Position of the particle |
[in] | marker_charge | Particle weights time charge |
[in,out] | j_dofs | Coefficient vector of the current density |
Definition at line 224 of file sll_m_particle_mesh_coupling_spline_cl_1d.F90.
|
private |
Add current for one particle and update v (according to H_p1 part in Hamiltonian splitting)
[in,out] | self | kernel smoother object |
[in] | position_old | Position at time t |
[in] | position_new | Position at time t + \Delta t |
[in] | marker_charge | Particle weight time charge |
[in] | qoverm | charge to mass ration |
[in] | bfield_dofs | Coefficient of B-field expansion |
[in,out] | vi | Velocity of the particles |
[in,out] | j_dofs | Coefficients of current expansion |
Definition at line 392 of file sll_m_particle_mesh_coupling_spline_cl_1d.F90.
|
private |
Add the contribution of one particle to the approximate mass matrix.
[in,out] | self | kernel smoother object |
[in] | position | Position of the particle |
[in] | marker_charge | Particle weights time charge |
[in,out] | particle_mass | Coefficient vector of the charge distribution |
Definition at line 103 of file sll_m_particle_mesh_coupling_spline_cl_1d.F90.
|
private |
Add the contribution of one particle to the approximate mass matrix.
[in,out] | self | kernel smoother object |
[in] | position | Position of the particle |
[in] | marker_charge | Particle weights time charge |
[in,out] | particle_mass | Coefficient vector of the charge distribution |
Definition at line 134 of file sll_m_particle_mesh_coupling_spline_cl_1d.F90.
|
private |
[in,out] | self | kernel smoother object |
[in] | position | Position of the particle |
[out] | xi | Position of the particle |
[out] | box | Position of the particle |
Definition at line 478 of file sll_m_particle_mesh_coupling_spline_cl_1d.F90.
|
private |
Evaluate field at at position position.
[in,out] | self | Kernel smoother object |
[in] | position | Position of the particle |
[in] | field_dofs | Coefficient vector for the field DoFs |
[out] | field_value | Value(s) of the electric fields at given position |
Definition at line 165 of file sll_m_particle_mesh_coupling_spline_cl_1d.F90.
|
private |
Evaluate several fields at position position.
[in,out] | self | Kernel smoother object |
[in] | position | Position of the particle |
[in] | components | Components of field_dofs that shall be updated |
[in] | field_dofs | Coefficient vector for the field DoFs |
[out] | field_value | Value(s) of the electric fields at given position |
Definition at line 192 of file sll_m_particle_mesh_coupling_spline_cl_1d.F90.
|
private |
Finalizer.
[in,out] | self | Kernel smoother object |
Definition at line 601 of file sll_m_particle_mesh_coupling_spline_cl_1d.F90.
|
private |
Initializer.
[out] | self | kernel smoother object |
[in] | domain | x_min and x_max of the domain |
[in] | n_cells | number of DoFs (spline coefficients) |
[in] | no_particles | number of particles |
[in] | spline_degree | Degree of smoothing kernel spline |
[in] | smoothing_type | Define if Galerkin or collocation smoothing for right scaling in accumulation routines |
[in] | boundary | spline boundary conditions |
Definition at line 536 of file sll_m_particle_mesh_coupling_spline_cl_1d.F90.
subroutine, public sll_m_particle_mesh_coupling_spline_cl_1d::sll_s_new_particle_mesh_coupling_spline_cl_1d | ( | class( sll_c_particle_mesh_coupling_1d), intent(out), allocatable | smoother, |
real(kind=f64), dimension(2), intent(in) | domain, | ||
integer(kind=i32), intent(in) | n_cells, | ||
integer(kind=i32), intent(in) | no_particles, | ||
integer(kind=i32), intent(in) | spline_degree, | ||
integer(kind=i32), intent(in) | smoothing_type, | ||
integer(kind=i32), intent(in) | boundary | ||
) |
[out] | smoother | kernel smoother object |
[in] | n_cells | number of DoFs (spline coefficients) |
[in] | domain | x_min and x_max of the domain |
[in] | no_particles | number of particles |
[in] | spline_degree | Degree of smoothing kernel spline |
[in] | smoothing_type | Define if Galerkin or collocation smoothing for right scaling in accumulation routines |
[in] | boundary | spline boundary conditions |
Definition at line 637 of file sll_m_particle_mesh_coupling_spline_cl_1d.F90.
subroutine, public sll_m_particle_mesh_coupling_spline_cl_1d::sll_s_new_particle_mesh_coupling_spline_cl_1d_ptr | ( | class( sll_c_particle_mesh_coupling_1d), intent(out), pointer | smoother, |
real(kind=f64), dimension(2), intent(in) | domain, | ||
integer(kind=i32), intent(in) | n_cells, | ||
integer(kind=i32), intent(in) | no_particles, | ||
integer(kind=i32), intent(in) | spline_degree, | ||
integer(kind=i32), intent(in) | smoothing_type, | ||
integer(kind=i32), intent(in) | boundary | ||
) |
[out] | smoother | kernel smoother object |
[in] | n_cells | number of DoFs (spline coefficients) |
[in] | domain | x_min and x_max of the domain |
[in] | no_particles | number of particles |
[in] | spline_degree | Degree of smoothing kernel spline |
[in] | smoothing_type | Define if Galerkin or collocation smoothing for right scaling in accumulation routines |
[in] | boundary | spline boundary conditions |
Definition at line 612 of file sll_m_particle_mesh_coupling_spline_cl_1d.F90.
|
private |
Helper function to evaluate uniform clamped basis splines.
Definition at line 507 of file sll_m_particle_mesh_coupling_spline_cl_1d.F90.
|
private |
Helper function for add_current.
[in,out] | self | time splitting object |
Definition at line 269 of file sll_m_particle_mesh_coupling_spline_cl_1d.F90.
|
private |
Helper function for add_current_evaluate.
[in,out] | self | time splitting object |
Definition at line 354 of file sll_m_particle_mesh_coupling_spline_cl_1d.F90.
|
private |
Helper function for add_current_update_v.
[in,out] | self | time splitting object |
Definition at line 440 of file sll_m_particle_mesh_coupling_spline_cl_1d.F90.