WarpX
Functions | Variables
QedTableGenerator.cpp File Reference
#include "QedTableCommons.H"
#include "ArgParser/QedTablesArgParser.H"
#include <picsar_qed/physics/breit_wheeler/breit_wheeler_engine_tables.hpp>
#include <picsar_qed/physics/breit_wheeler/breit_wheeler_engine_tables_generator.hpp>
#include <picsar_qed/physics/quantum_sync/quantum_sync_engine_tables.hpp>
#include <picsar_qed/physics/quantum_sync/quantum_sync_engine_tables_generator.hpp>
#include <picsar_qed/utils/serialization.hpp>
#include <cstdint>
#include <fstream>
#include <iostream>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>

Functions

void GenerateTable (const ParsedArgs &args)
 
template<typename RealType >
void GenerateTableBW (const ParsedArgs &args, const string &outfile_name)
 
template<typename RealType >
void GenerateTableQS (const ParsedArgs &args, const string &outfile_name)
 
int main (int argc, char **argv)
 

Variables

const auto line_commands
 

Function Documentation

◆ GenerateTable()

void GenerateTable ( const ParsedArgs args)

◆ GenerateTableBW()

template<typename RealType >
void GenerateTableBW ( const ParsedArgs args,
const string &  outfile_name 
)

◆ GenerateTableQS()

template<typename RealType >
void GenerateTableQS ( const ParsedArgs args,
const string &  outfile_name 
)

◆ main()

int main ( int  argc,
char **  argv 
)

Variable Documentation

◆ line_commands

const auto line_commands
Initial value:
= vector<ArgParser::Key>{
{"-h" , ArgType::NoArg , "Prints all command line arguments"},
{"--table" , ArgType::String , "Either BW (Breit-Wheeler) or QS (Quantum Synchrotron)"},
{"--mode" , ArgType::String, "Precision of the calculations: either DP (double) or SP (single)"},
{"--dndt_chi_min" , ArgType::Double , "minimum chi parameter for the dNdt table"},
{"--dndt_chi_max" , ArgType::Double , "maximum chi parameter for the dNdt table"},
{"--dndt_how_many" , ArgType::Integer, "number of points in the dNdt table"},
{"--pair_chi_min" , ArgType::Double , "minimum chi for the pair production table (BW only)"},
{"--pair_chi_max" , ArgType::Double , "maximum chi for the pair production table (BW only)"},
{"--pair_chi_how_many" , ArgType::Integer, "number of chi points in the pair production table (BW only)"},
{"--pair_frac_how_many", ArgType::Integer, "number of frac points in the pair production table (BW only)"},
{"--em_chi_min" , ArgType::Double , "minimum chi for the photon emission table (QS only)"},
{"--em_chi_max" , ArgType::Double , "maximum chi for the photon emission production table (QS only)"},
{"--em_frac_min" , ArgType::Double , "minimum frac for the photon emission production table (QS only)"},
{"--em_chi_how_many" , ArgType::Integer, "number of chi points in the photon emission table (QS only)"},
{"--em_frac_how_many" , ArgType::Integer, "number of frac points in the photon emission table (QS only)"},
{"-o" , ArgType::String , "filename to save the lookup table"}
}