XGC1
|
#include <Kokkos_Core.hpp>
#include <string>
#include "space_settings.hpp"
#include "sml.hpp"
#include "plasma.hpp"
#include "electric_field.hpp"
#include "species.hpp"
#include "vgrid_distribution.hpp"
Go to the source code of this file.
Functions | |
void | add_f0_analytic (const Simulation< DeviceType > &sml, ElectricField< DeviceType > &electric_field, const DomainDecomposition< DeviceType > &pol_decomp, Plasma &plasma, VGridDistribution< HostType > &f0_f, bool subtract=false) |
void | f0_remove_negative (Plasma &plasma, VGridDistribution< HostType > &f0_f) |
void add_f0_analytic | ( | const Simulation< DeviceType > & | sml, |
ElectricField< DeviceType > & | electric_field, | ||
const DomainDecomposition< DeviceType > & | pol_decomp, | ||
Plasma & | plasma, | ||
VGridDistribution< HostType > & | f0_f, | ||
bool | subtract = false |
||
) |
Adds analytic contribution to a distribution on the velocity grid.
[in] | sml | contains simulation control parameters |
[in] | electric_field | is the electric field object |
[in] | pol_decomp | is the domain decomposition |
[in] | plasma | is the plasma object |
[in,out] | f0_f | is the VGridDistribution being added to |
[in] | subtract,set | to true if subtracting instead of adding |
#ifndef EXPLICIT_EM
#else pot=psndpot_n0(node)/(f0_t_ev(node,stype)+f0_delta_T(node,stype)) #endif
void f0_remove_negative | ( | Plasma & | plasma, |
VGridDistribution< HostType > & | f0_f | ||
) |
Removes negative values (and zero values to avoid density = 0) in a distribution on the velocity grid by replacing with a small number.
[in] | plasma | is the plasma object |
[in,out] | f0_f | is the VGridDistribution being added to |