XGCa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
init_objects.cpp File Reference
#include <iostream>
#include <Kokkos_Core.hpp>
#include "NamelistReader.hpp"
#include "species.hpp"
#include "electric_field.hpp"
#include "pushe_diagnostics.hpp"
#include "heat_diagnostics.hpp"
#include "neutrals.hpp"
#include "sheath.hpp"
#include "domain_decomposition.hpp"
#include "charge.hpp"
#include "init_objects.hpp"
Include dependency graph for init_objects.cpp:

Functions

int get_spall_num (FortranPtr spall_fptr, int isp)
 
void get_sml_init (int *bounce_in, double *dt_in, int *ptb_3db_on_int_in, int *neutrals_int_in, int *nspecies_in, double *sml_bounce_buffer_in, int *deltaf_int_in, int *xz_00_up_int_in, int *exclude_private_int_in, int *nthreads_in, double *f0_1_Ln_in, double *f0_1_Lt_e_in)
 
void get_efield_init (int *turb_efield_int_in)
 
void get_ptb_3db_init (int *rampup_vac_int_in, int *num_ntor_in, int *rampup_interval_in, int *rampup_time_in, int *start_time_in, int **ntor_in)
 
void get_init_species (int spi, int *is_adiabatic_int_in, double *mass_in, double *charge_in, double *charge_eu_in, int *is_deltaf_int_in)
 
void get_init_eq_profs (int isp, int iprof, double **inx_in, double **iny_in, double **sv_in, double *p_min_in, double *p_max_in, int *shape, double **v_in)
 
void get_pol_decomp (int *interplanar_only_int_in, int *pe_per_plane_in, int *plane_totalpe_in, int *n_pids_in, int *my_pid_in, int *my_plane_pid_in)
 
void get_init_neutrals (int *use_ion_loss_int_in, int *nbins)
 
void get_init_grid (FortranPtr grid_fptr, int *ntriangle_in, int *nnode_in, int *nplanes_in, int *nwall_in, double *wedge_angle_in, double *eq_x_psi, double *delta_phi_in, int *nguess_in, int *guess_list_len_in, double *guess_min1_in, double *guess_min2_in, double *guess_max1_in, double *guess_max2_in, double *inv_guess_d1_in, double *inv_guess_d2_in, int *npsi_surf2_in, int *iphi_offset_in, int *npsi00_in, double *psi00min_in, double *psi00max_in, double *dpsi00_in, double **psi_in, int **basis_in, Vertex **nodes_in, VertexMap **mapping_in, int **guess_list_in, int **guess_xtable_in, int **guess_count_in, int **guess_list_1d_in, double **psi_surf2_in, double *minval_psi_surf2_in, double *maxval_psi_surf2_in, int **wall_nodes_in, int **node_to_wall_in, int **rgn_in, RZPair **gx_in, int *nrho_in, double *rhomax_in, double *phimax_in)
 
void get_init_magnetic_field (double *bt_sign, double *bp_sign, int *ff_step, int *ff_order, double *bd_min_r, double *bd_max_r, double *bd_min_z, double *bd_max_z, double *inpsi_in, double *outpsi_in, double **rc_in, double **zc_in, BicubCoeff **acoeff_in, int *nr_in, int *nz_in, double *rmin_in, double *zmin_in, double *dr_inv_in, double *dz_inv_in, OneDCoeff **one_d_cub_acoef_in, int *ncoeff_in, double *max_psi_in, double *min_psi_in, double *one_d_cub_dpsi_inv_in, double *eq_min_r, double *eq_max_r, double *eq_min_z, double *eq_max_z, double *eq_x_psi, double *epsil_psi, double *eq_x_r, double *eq_x_slope, double *eq_x_z, double *eq_x2_r, double *eq_x2_slope, double *eq_x2_z, double *eq_x2_psi, double *eq_axis_r, double *eq_axis_z, int *eq_mpsi)
 
void get_init_decay_factors (double *out_decay_factor_in, double *priv_flux_decay_factor_in, double *out_decay_width_in, double *priv_flux_decay_width_in, int *set_xpt2_int_in)
 
void get_init_diag (int *d1d_period_in, int *d1d_npsi_in, double *d1d_pin_in, double *d1d_dp_inv_in)
 
int get_heat_mode ()
 
void get_init_heat_diag1 (int *heat_nsection_in, int *heat_npsi_in, int *heat_nr_in, int *heat_nz_in, double **heat_rmin_in, double **heat_rmax_in, double **heat_dr_in, double **heat_zmin_in, double **heat_zmax_in, double **heat_dz_in, double **heat_pmin_in, double **heat_dp_in)
 
void get_init_heat_diag2 (int *heat_nseg_in, int *heat_nphi_in, double *heat_delta_phi_in, double **heat_r2_in, double **heat_z2_in)
 
int get_adjust_eden_toggle ()
 
void get_f0_grid_dims (int *nvp, int *nmu, int *f_source_period, double *vp_max, double *smu_max)
 
int get_nlarmor ()
 
void get_getf0_sml (int *initial_flow, int *update_poisson_solver, double *dpot_te_limit, int *f0_grid_alpha_start, int *no_fp_in_f, double *f0_grid_alpha)
 
void init_objects (NLReader::NamelistReader &nlr, FortranPtr grid_fptr, FortranPtr psn_fptr, Simulation< DeviceType > &sml, MagneticField< DeviceType > &magnetic_field, std::vector< Species< DeviceType >> &all_species, Neutrals< DeviceType > &neutrals, DomainDecomposition< DeviceType > &pol_decomp, Grid< DeviceType > &grid, Sheath< DeviceType > &sheath, ElectricField< DeviceType > &electric_field, PerturbedBField< DeviceType > &perturbed_B_field, Diagnostics< DeviceType > &diag, HeatDiagnostics< DeviceType > &heat_diag, Charge< DeviceType > &charge, VelocityGrid &vgrid)
 

Function Documentation

int get_adjust_eden_toggle ( )

Here is the caller graph for this function:

void get_efield_init ( int *  turb_efield_int_in)

Here is the caller graph for this function:

void get_f0_grid_dims ( int *  nvp,
int *  nmu,
int *  f_source_period,
double *  vp_max,
double *  smu_max 
)

Here is the caller graph for this function:

void get_getf0_sml ( int *  initial_flow,
int *  update_poisson_solver,
double *  dpot_te_limit,
int *  f0_grid_alpha_start,
int *  no_fp_in_f,
double *  f0_grid_alpha 
)

Here is the caller graph for this function:

int get_heat_mode ( )

Here is the caller graph for this function:

void get_init_decay_factors ( double *  out_decay_factor_in,
double *  priv_flux_decay_factor_in,
double *  out_decay_width_in,
double *  priv_flux_decay_width_in,
int *  set_xpt2_int_in 
)

Here is the caller graph for this function:

void get_init_diag ( int *  d1d_period_in,
int *  d1d_npsi_in,
double *  d1d_pin_in,
double *  d1d_dp_inv_in 
)

Here is the caller graph for this function:

void get_init_eq_profs ( int  isp,
int  iprof,
double **  inx_in,
double **  iny_in,
double **  sv_in,
double *  p_min_in,
double *  p_max_in,
int *  shape,
double **  v_in 
)

Here is the caller graph for this function:

void get_init_grid ( FortranPtr  grid_fptr,
int *  ntriangle_in,
int *  nnode_in,
int *  nplanes_in,
int *  nwall_in,
double *  wedge_angle_in,
double *  eq_x_psi,
double *  delta_phi_in,
int *  nguess_in,
int *  guess_list_len_in,
double *  guess_min1_in,
double *  guess_min2_in,
double *  guess_max1_in,
double *  guess_max2_in,
double *  inv_guess_d1_in,
double *  inv_guess_d2_in,
int *  npsi_surf2_in,
int *  iphi_offset_in,
int *  npsi00_in,
double *  psi00min_in,
double *  psi00max_in,
double *  dpsi00_in,
double **  psi_in,
int **  basis_in,
Vertex **  nodes_in,
VertexMap **  mapping_in,
int **  guess_list_in,
int **  guess_xtable_in,
int **  guess_count_in,
int **  guess_list_1d_in,
double **  psi_surf2_in,
double *  minval_psi_surf2_in,
double *  maxval_psi_surf2_in,
int **  wall_nodes_in,
int **  node_to_wall_in,
int **  rgn_in,
RZPair **  gx_in,
int *  nrho_in,
double *  rhomax_in,
double *  phimax_in 
)

Here is the caller graph for this function:

void get_init_heat_diag1 ( int *  heat_nsection_in,
int *  heat_npsi_in,
int *  heat_nr_in,
int *  heat_nz_in,
double **  heat_rmin_in,
double **  heat_rmax_in,
double **  heat_dr_in,
double **  heat_zmin_in,
double **  heat_zmax_in,
double **  heat_dz_in,
double **  heat_pmin_in,
double **  heat_dp_in 
)

Here is the caller graph for this function:

void get_init_heat_diag2 ( int *  heat_nseg_in,
int *  heat_nphi_in,
double *  heat_delta_phi_in,
double **  heat_r2_in,
double **  heat_z2_in 
)

Here is the caller graph for this function:

void get_init_magnetic_field ( double *  bt_sign,
double *  bp_sign,
int *  ff_step,
int *  ff_order,
double *  bd_min_r,
double *  bd_max_r,
double *  bd_min_z,
double *  bd_max_z,
double *  inpsi_in,
double *  outpsi_in,
double **  rc_in,
double **  zc_in,
BicubCoeff **  acoeff_in,
int *  nr_in,
int *  nz_in,
double *  rmin_in,
double *  zmin_in,
double *  dr_inv_in,
double *  dz_inv_in,
OneDCoeff **  one_d_cub_acoef_in,
int *  ncoeff_in,
double *  max_psi_in,
double *  min_psi_in,
double *  one_d_cub_dpsi_inv_in,
double *  eq_min_r,
double *  eq_max_r,
double *  eq_min_z,
double *  eq_max_z,
double *  eq_x_psi,
double *  epsil_psi,
double *  eq_x_r,
double *  eq_x_slope,
double *  eq_x_z,
double *  eq_x2_r,
double *  eq_x2_slope,
double *  eq_x2_z,
double *  eq_x2_psi,
double *  eq_axis_r,
double *  eq_axis_z,
int *  eq_mpsi 
)

Here is the caller graph for this function:

void get_init_neutrals ( int *  use_ion_loss_int_in,
int *  nbins 
)

Here is the caller graph for this function:

void get_init_species ( int  spi,
int *  is_adiabatic_int_in,
double *  mass_in,
double *  charge_in,
double *  charge_eu_in,
int *  is_deltaf_int_in 
)

Here is the caller graph for this function:

int get_nlarmor ( )

Here is the caller graph for this function:

void get_pol_decomp ( int *  interplanar_only_int_in,
int *  pe_per_plane_in,
int *  plane_totalpe_in,
int *  n_pids_in,
int *  my_pid_in,
int *  my_plane_pid_in 
)

Here is the caller graph for this function:

void get_ptb_3db_init ( int *  rampup_vac_int_in,
int *  num_ntor_in,
int *  rampup_interval_in,
int *  rampup_time_in,
int *  start_time_in,
int **  ntor_in 
)

Here is the caller graph for this function:

void get_sml_init ( int *  bounce_in,
double *  dt_in,
int *  ptb_3db_on_int_in,
int *  neutrals_int_in,
int *  nspecies_in,
double *  sml_bounce_buffer_in,
int *  deltaf_int_in,
int *  xz_00_up_int_in,
int *  exclude_private_int_in,
int *  nthreads_in,
double *  f0_1_Ln_in,
double *  f0_1_Lt_e_in 
)

Here is the caller graph for this function:

int get_spall_num ( FortranPtr  spall_fptr,
int  isp 
)
void init_objects ( NLReader::NamelistReader nlr,
FortranPtr  grid_fptr,
FortranPtr  psn_fptr,
Simulation< DeviceType > &  sml,
MagneticField< DeviceType > &  magnetic_field,
std::vector< Species< DeviceType >> &  all_species,
Neutrals< DeviceType > &  neutrals,
DomainDecomposition< DeviceType > &  pol_decomp,
Grid< DeviceType > &  grid,
Sheath< DeviceType > &  sheath,
ElectricField< DeviceType > &  electric_field,
PerturbedBField< DeviceType > &  perturbed_B_field,
Diagnostics< DeviceType > &  diag,
HeatDiagnostics< DeviceType > &  heat_diag,
Charge< DeviceType > &  charge,
VelocityGrid vgrid 
)

Here is the call graph for this function:

Here is the caller graph for this function: