Graph Framework
Loading...
Searching...
No Matches
solver::split_simplextic< DISPERSION_FUNCTION > Class Template Reference

Predictor corrector that trys to minimize the dispersion residual. More...

#include <solver.hpp>

Inheritance diagram for solver::split_simplextic< DISPERSION_FUNCTION >:
solver::solver_interface< DISPERSION_FUNCTION >

Public Member Functions

 split_simplextic (graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > w, graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > kx, graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > ky, graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > kz, graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > x, graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > y, graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > z, graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > t, graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > dt, equilibrium::shared< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > &eq, const std::string &filename="", const size_t num_rays=0, const size_t index=0)
 Construct a split simplextic integrator.
Public Member Functions inherited from solver::solver_interface< DISPERSION_FUNCTION >
 solver_interface (graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > w, graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > kx, graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > ky, graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > kz, graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > x, graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > y, graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > z, graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > t, equilibrium::shared< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > &eq, const std::string &filename="", const size_t num_rays=0, const size_t index=0)
 Construct a new solver_interface with initial conditions.
 ~solver_interface ()
 Destructor.
virtual graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > init (graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > x, const typename DISPERSION_FUNCTION::base tolerance=1.0E-30, const size_t max_iterations=1000) final
 Method to initialize the rays.
virtual graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > init () final
 Method to initialize the rays.
virtual void compile ()
 Compile the solver function.
void sync_device ()
 Synchronize results from host to gpu.
void sync_host ()
 Synchronize results from gpu to host.
void step ()
 Method to step the rays.
DISPERSION_FUNCTION::base check_residual (const size_t index)
 Check the residual.
void print (const size_t index)
 Print out the results.
void write_step ()
 Write result step.
void print_dispersion ()
 Print out the latex expression for the dispersion relation.
void print_dkxdt ()
 Print out the latex expression for the dkxdt.
void print_dkydt ()
 Print out the latex expression for the dkydt.
void print_dkzdt ()
 Print out the latex expression for the dkzdt.
void print_dxdt ()
 Print out the latex expression for the dxdt.
void print_dydt ()
 Print out the latex expression for the dydt.
void print_dzdt ()
 Print out the latex expression for the dzdt.
void print_residual ()
 Print out the latex expression for the residual.
void print_x_next ()
 Print out the latex expression for the x_next.
void print_y_next ()
 Print out the latex expression for the y_next.
void print_z_next ()
 Print out the latex expression for the z_next.
void print_kx_next ()
 Print out the latex expression for the kx_next.
void print_ky_next ()
 Print out the latex expression for the ky_next.
void print_kz_next ()
 Print out the latex expression for the kz_next.

Protected Attributes

graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > x1
 Half step x.
graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > y1
 Half step y.
graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > z1
 Half step z.
Protected Attributes inherited from solver::solver_interface< DISPERSION_FUNCTION >
graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > w
 w variable.
graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > kx
 kx variable.
graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > ky
 ky variable.
graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > kz
 kz variable.
graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > x
 x variable.
graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > y
 y variable.
graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > z
 z variable.
graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > t
 t variable.
dispersion::dispersion_interface< DISPERSION_FUNCTION > D
 Dispersion function interface.
graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > kx_next
 Next kx value.
graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > ky_next
 Next ky value.
graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > kz_next
 Next kz value.
graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > x_next
 Next x value.
graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > y_next
 Next y value.
graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > z_next
 Next z value.
graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > t_next
 Next t value.
graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > residual
 Residual.
workflow::manager< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > work
 Workflow manager.
const size_t index
 Concurrent index.
output::result_file file
 Output file.
output::data_set< typename DISPERSION_FUNCTION::base > dataset
 Output dataset.
std::thread sync
 Async thread to write data files.

Additional Inherited Members

Public Types inherited from solver::solver_interface< DISPERSION_FUNCTION >
typedef DISPERSION_FUNCTION dispersion_function
 Type def to retrieve the dispersion function.
typedef DISPERSION_FUNCTION::base base
 Type def to retrieve the backend base type.
Static Public Attributes inherited from solver::solver_interface< DISPERSION_FUNCTION >
static constexpr bool safe_math = DISPERSION_FUNCTION::safe_math
 Retrieve template parameter of safe math.

Detailed Description

template<dispersion::function DISPERSION_FUNCTION>
class solver::split_simplextic< DISPERSION_FUNCTION >

Predictor corrector that trys to minimize the dispersion residual.

Template Parameters
DISPERSION_FUNCTIONClass of dispersion function to use.

Constructor & Destructor Documentation

◆ split_simplextic()

template<dispersion::function DISPERSION_FUNCTION>
solver::split_simplextic< DISPERSION_FUNCTION >::split_simplextic ( graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > w,
graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > kx,
graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > ky,
graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > kz,
graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > x,
graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > y,
graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > z,
graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > t,
graph::shared_leaf< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > dt,
equilibrium::shared< typename DISPERSION_FUNCTION::base, DISPERSION_FUNCTION::safe_math > & eq,
const std::string & filename = "",
const size_t num_rays = 0,
const size_t index = 0 )
inline

Construct a split simplextic integrator.

Parameters
[in]wInitial omega.
[in]kxInitial kx.
[in]kyInitial ky.
[in]kzInitial kz.
[in]xInitial x.
[in]yInitial y.
[in]zInitial z.
[in]tInitial t.
[in]dtInitial dt.
[in]eqEquilibrium object.
[in]filenameResult filename, empty names will be blank.
[in]num_raysNumber of rays to write.
[in]indexConcurrent index.

The documentation for this class was generated from the following file: