Semi-Lagrangian Library
Modular library for kinetic and gyrokinetic simulations of plasmas in fusion energy devices.
|
Particle mesh coupling for 3d with splines of arbitrary degree placed on a uniform tensor product mesh.
Spline with index i starts at point i
Derived types and interfaces | |
type | sll_t_particle_mesh_coupling_spline_cl_3d_feec |
Particle mesh coupling in 3d based on (arbitrary degree) spline on a tensor product uniform mesh. More... | |
type | vector |
Destructor. More... | |
Functions/Subroutines | |
subroutine | add_charge_single_spline_cl_3d_feec (self, position, marker_charge, degree, rho_dofs) |
Add charge of one particle. More... | |
subroutine | add_particle_mass_spline_cl_3d_feec (self, position, marker_charge, degree, particle_mass) |
Add the contribution of one particle to the diagonal parts fo the approximate mass matrix. More... | |
subroutine | add_particle_mass_od_spline_cl_3d_feec (self, position, marker_charge, degree1, degree2, particle_mass) |
Add the contribution of one particle to the off-diagonal parts of the approximate mass matrix. More... | |
subroutine | evaluate_field_single_spline_cl_3d_feec (self, position, degree, field_dofs, field_value) |
Evaluate field at at position position. More... | |
subroutine | evaluate_multiple_spline_cl_3d_feec (self, position, components, field_dofs, field_value) |
Evaluate several fields at position position. More... | |
subroutine | add_current_evaluate (self, position_old, position_new, xdot, efield_dofs, j_dofs, efield_val) |
Add current with integration over x and evaluate the electric field. More... | |
subroutine | point_add_eval (self, box_in, xbox, field_dofs, weight, j_dofs, field_value) |
Helper function for add_current_evaluate. More... | |
subroutine | add_current_cl_3d (self, position_old, position_new, xdot, j_dofs) |
Add current with integration over x. More... | |
subroutine | integrate_spline_cl_3d (self, box_in, xbox, weight, j_dofs) |
Helper function for add_current. More... | |
subroutine | add_current_update_v_component1_spline_3d_feec (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 | add_current_update_v_component2_spline_3d_feec (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 | add_current_update_v_component3_spline_3d_feec (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 | add_current_1d (self, component, r_old, index_old, r_new, index_new, marker_charge, bfield_dofs, start1, start2, stride, vi, j_dofs) |
Helper function for add_current_update_v. More... | |
subroutine | update_jv (self, component, lower, upper, index, marker_charge, sign, bfield_dofs, start1, start2, stride, vi, j_dofs) |
Helper function for add_current_update_v. More... | |
integer(kind=i32) function | convert_index_3d_to_1d (index3d, n_cells, degree) |
subroutine | convert_x_to_xbox (self, position, xi, box) |
subroutine | convert_x_to_xbox_1d (self, component, position, xi, box) |
subroutine | box_index (self, box, comp) |
subroutine, public | 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_3d_feec (self, n_cells, domain, spline_degree, boundary, no_particles) |
Initializer. More... | |
subroutine | free_spline_cl_3d_feec (self) |
Finalizer. More... | |
|
private |
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] | degree | Spline degree along each dimension |
[in,out] | rho_dofs | Coefficient vector of the charge distribution |
Definition at line 98 of file sll_m_particle_mesh_coupling_spline_cl_3d_feec.F90.
|
private |
Helper function for add_current_update_v.
[in,out] | self | kernel smoother object |
Definition at line 970 of file sll_m_particle_mesh_coupling_spline_cl_3d_feec.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] | xdot | velocity |
[in,out] | j_dofs | current dofs |
Definition at line 543 of file sll_m_particle_mesh_coupling_spline_cl_3d_feec.F90.
|
private |
Add current with integration over x and evaluate the electric field.
[in,out] | self | kernel smoother object |
[in] | position_old | Position of the particle |
[in] | position_new | Position of the particle |
[in] | xdot | velocity |
[in] | efield_dofs | electric field dofs |
[in,out] | j_dofs | current dofs |
[out] | efield_val | electric field value |
Definition at line 361 of file sll_m_particle_mesh_coupling_spline_cl_3d_feec.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 702 of file sll_m_particle_mesh_coupling_spline_cl_3d_feec.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 782 of file sll_m_particle_mesh_coupling_spline_cl_3d_feec.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 878 of file sll_m_particle_mesh_coupling_spline_cl_3d_feec.F90.
|
private |
Add the contribution of one particle to the off-diagonal parts of the approximate mass matrix.
[in,out] | self | kernel smoother object |
[in] | position | Position of the particle |
[in] | marker_charge | Particle weights time charge |
[in] | degree2 | Spline degree along each dimension |
[in,out] | particle_mass | Coefficient vector of the charge distribution |
Definition at line 216 of file sll_m_particle_mesh_coupling_spline_cl_3d_feec.F90.
|
private |
Add the contribution of one particle to the diagonal parts fo the approximate mass matrix.
[in,out] | self | kernel smoother object |
[in] | position | Position of the particle |
[in] | marker_charge | Particle weights time charge |
[in] | degree | Spline degree along each dimension |
[in,out] | particle_mass | Coefficient vector of the charge distribution |
Definition at line 147 of file sll_m_particle_mesh_coupling_spline_cl_3d_feec.F90.
|
private |
[in,out] | self | kernel smoother object |
Definition at line 1160 of file sll_m_particle_mesh_coupling_spline_cl_3d_feec.F90.
|
private |
Definition at line 1096 of file sll_m_particle_mesh_coupling_spline_cl_3d_feec.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 1107 of file sll_m_particle_mesh_coupling_spline_cl_3d_feec.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 1136 of file sll_m_particle_mesh_coupling_spline_cl_3d_feec.F90.
|
private |
Evaluate field at at position position.
[in,out] | self | Kernel smoother object |
[in] | position | Position of the particle |
[in] | degree | Spline degree of the various components |
[in] | field_dofs | Coefficient vector for the field DoFs |
[out] | field_value | Value(s) of the electric fields at given position |
Definition at line 301 of file sll_m_particle_mesh_coupling_spline_cl_3d_feec.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 346 of file sll_m_particle_mesh_coupling_spline_cl_3d_feec.F90.
|
private |
Finalizer.
[in,out] | self | Kernel smoother object |
Definition at line 1269 of file sll_m_particle_mesh_coupling_spline_cl_3d_feec.F90.
|
private |
Initializer.
[out] | self | Kernel smoother object |
[in] | n_cells | number of DoFs (spline coefficients) |
[in] | domain | x_min and x_max of the domain |
[in] | spline_degree | Degree of smoothing kernel spline |
[in] | boundary | spline boundary conditions |
[in] | no_particles | number of particles |
Definition at line 1203 of file sll_m_particle_mesh_coupling_spline_cl_3d_feec.F90.
|
private |
Helper function for add_current.
[in,out] | self | kernel smoother object |
Definition at line 621 of file sll_m_particle_mesh_coupling_spline_cl_3d_feec.F90.
|
private |
Helper function for add_current_evaluate.
[in,out] | self | kernel smoother object |
Definition at line 448 of file sll_m_particle_mesh_coupling_spline_cl_3d_feec.F90.
subroutine, public sll_m_particle_mesh_coupling_spline_cl_3d_feec::sll_s_uniform_bsplines_eval_basis_clamped | ( | type(sll_t_spline_pp_1d), intent(in) | spline, |
integer(kind=i32), intent(in) | n_cells, | ||
integer(kind=i32), intent(in) | degree, | ||
real(kind=f64), intent(in) | xi, | ||
integer(kind=i32), intent(in) | box, | ||
real(kind=f64), dimension(:), intent(out) | spline_val | ||
) |
Helper function to evaluate uniform clamped basis splines.
Definition at line 1174 of file sll_m_particle_mesh_coupling_spline_cl_3d_feec.F90.
|
private |
Helper function for add_current_update_v.
[in,out] | self | time splitting object |
Definition at line 1020 of file sll_m_particle_mesh_coupling_spline_cl_3d_feec.F90.